Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ass:laboratoare:04:tasks:01 [2024/08/09 17:44]
florin.stancu [01. Preparation]
ass:laboratoare:04:tasks:01 [2024/08/09 18:48] (current)
florin.stancu [01. Preparation]
Line 28: Line 28:
 +++ w/​arch/​arm64/​boot/​dts/​freescale/​imx8mq-pico-pi.dts +++ w/​arch/​arm64/​boot/​dts/​freescale/​imx8mq-pico-pi.dts
 @@ -35,6 +35,13 @@ reg_usb_otg_vbus:​ regulator-usb-otg-vbus { @@ -35,6 +35,13 @@ reg_usb_otg_vbus:​ regulator-usb-otg-vbus {
-                ​regulator-max-microvolt = <​5000000>;​ +  regulator-max-microvolt = <​5000000>;​ 
-                gpio = <&​gpio3 14 GPIO_ACTIVE_LOW>;​ +  gpio = <&​gpio3 14 GPIO_ACTIVE_LOW>;​ 
-        };+  };
 + +
-      ​firmware { ++ firmware { 
-              ​optee { ++ optee { 
-                      ​compatible = "​linaro,​optee-tz";​ ++ compatible = "​linaro,​optee-tz";​ 
-                      ​method = "​smc";​ ++ method = "​smc";​ 
-              ​}; ++ }; 
-      ​};++ };
  };  };
 + 
  &​fec1 {  &​fec1 {
 @@ -80,6 +87,7 @@ buck1: BUCK1 { @@ -80,6 +87,7 @@ buck1: BUCK1 {
-                                ​regulator-min-microvolt = <​700000>;​ +  regulator-min-microvolt = <​700000>;​ 
-                                regulator-max-microvolt = <​1300000>;​ +  regulator-max-microvolt = <​1300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                                regulator-ramp-delay = <​1250>;​ +  regulator-ramp-delay = <​1250>;​ 
-                                rohm,​dvs-run-voltage = <​900000>;​ +  rohm,​dvs-run-voltage = <​900000>;​ 
-                                rohm,​dvs-idle-voltage = <​850000>;​+  rohm,​dvs-idle-voltage = <​850000>;​
 @@ -91,6 +99,7 @@ buck2: BUCK2 { @@ -91,6 +99,7 @@ buck2: BUCK2 {
-                                ​regulator-min-microvolt = <​700000>;​ +  regulator-min-microvolt = <​700000>;​ 
-                                regulator-max-microvolt = <​1300000>;​ +  regulator-max-microvolt = <​1300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                                regulator-ramp-delay = <​1250>;​ +  regulator-ramp-delay = <​1250>;​ 
-                                rohm,​dvs-run-voltage = <​1000000>;​ +  rohm,​dvs-run-voltage = <​1000000>;​ 
-                                rohm,​dvs-idle-voltage = <​900000>;​+  rohm,​dvs-idle-voltage = <​900000>;​
 @@ -101,6 +110,7 @@ buck3: BUCK3 { @@ -101,6 +110,7 @@ buck3: BUCK3 {
-                                ​regulator-min-microvolt = <​700000>;​ +  regulator-min-microvolt = <​700000>;​ 
-                                regulator-max-microvolt = <​1300000>;​ +  regulator-max-microvolt = <​1300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                                rohm,​dvs-run-voltage = <​1000000>;​ +  rohm,​dvs-run-voltage = <​1000000>;​ 
-                        }; +  }; 
 + 
 @@ -109,6 +119,7 @@ buck4: BUCK4 { @@ -109,6 +119,7 @@ buck4: BUCK4 {
-                                ​regulator-min-microvolt = <​700000>;​ +  regulator-min-microvolt = <​700000>;​ 
-                                regulator-max-microvolt = <​1300000>;​ +  regulator-max-microvolt = <​1300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                                rohm,​dvs-run-voltage = <​1000000>;​ +  rohm,​dvs-run-voltage = <​1000000>;​ 
-                        }; +  }; 
 + 
 @@ -117,6 +128,7 @@ buck5: BUCK5 { @@ -117,6 +128,7 @@ buck5: BUCK5 {
-                                ​regulator-min-microvolt = <​700000>;​ +  regulator-min-microvolt = <​700000>;​ 
-                                regulator-max-microvolt = <​1350000>;​ +  regulator-max-microvolt = <​1350000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        buck6: BUCK6 {+  buck6: BUCK6 {
 @@ -124,6 +136,7 @@ buck6: BUCK6 { @@ -124,6 +136,7 @@ buck6: BUCK6 {
-                                ​regulator-min-microvolt = <​3000000>;​ +  regulator-min-microvolt = <​3000000>;​ 
-                                regulator-max-microvolt = <​3300000>;​ +  regulator-max-microvolt = <​3300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        buck7: BUCK7 {+  buck7: BUCK7 {
 @@ -131,6 +144,7 @@ buck7: BUCK7 { @@ -131,6 +144,7 @@ buck7: BUCK7 {
-                                ​regulator-min-microvolt = <​1605000>;​ +  regulator-min-microvolt = <​1605000>;​ 
-                                regulator-max-microvolt = <​1995000>;​ +  regulator-max-microvolt = <​1995000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        buck8: BUCK8 {+  buck8: BUCK8 {
 @@ -138,6 +152,7 @@ buck8: BUCK8 { @@ -138,6 +152,7 @@ buck8: BUCK8 {
-                                ​regulator-min-microvolt = <​800000>;​ +  regulator-min-microvolt = <​800000>;​ 
-                                regulator-max-microvolt = <​1400000>;​ +  regulator-max-microvolt = <​1400000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        ldo1: LDO1 {+  ldo1: LDO1 {
 @@ -161,6 +176,7 @@ ldo3: LDO3 { @@ -161,6 +176,7 @@ ldo3: LDO3 {
-                                ​regulator-min-microvolt = <​1800000>;​ +  regulator-min-microvolt = <​1800000>;​ 
-                                regulator-max-microvolt = <​3300000>;​ +  regulator-max-microvolt = <​3300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        ldo4: LDO4 {+  ldo4: LDO4 {
 @@ -168,6 +184,7 @@ ldo4: LDO4 { @@ -168,6 +184,7 @@ ldo4: LDO4 {
-                                ​regulator-min-microvolt = <​900000>;​ +  regulator-min-microvolt = <​900000>;​ 
-                                regulator-max-microvolt = <​1800000>;​ +  regulator-max-microvolt = <​1800000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        ldo5: LDO5 {+  ldo5: LDO5 {
 @@ -175,6 +192,7 @@ ldo5: LDO5 { @@ -175,6 +192,7 @@ ldo5: LDO5 {
-                                ​regulator-min-microvolt = <​1800000>;​ +  regulator-min-microvolt = <​1800000>;​ 
-                                regulator-max-microvolt = <​3300000>;​ +  regulator-max-microvolt = <​3300000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        }; +  }; 
- +  
-                        ldo6: LDO6 {+  ldo6: LDO6 {
 @@ -182,6 +200,7 @@ ldo6: LDO6 { @@ -182,6 +200,7 @@ ldo6: LDO6 {
-                                ​regulator-min-microvolt = <​900000>;​ +  regulator-min-microvolt = <​900000>;​ 
-                                regulator-max-microvolt = <​1800000>;​ +  regulator-max-microvolt = <​1800000>;​ 
-                                regulator-boot-on;​ +  regulator-boot-on;​ 
-                              ​regulator-always-on;​ ++ regulator-always-on;​ 
-                        };+  }; 
 +  
 + ​ ldo7:​ LDO7 { 
 +@@ -189,6 +208,7 @@ ldo7: LDO7 { 
 + ​ regulator-min-microvolt = <​1800000>;​ 
 + ​ regulator-max-microvolt = <​3300000>;​ 
 + ​ regulator-boot-on;​ 
 ++ regulator-always-on;​ 
 + ​ };​ 
 + ​ };​ 
 +  };
  
-                        ldo7: LDO7 { 
-@@ -189,6 +208,7 @@ ldo7: LDO7 { 
-                                regulator-min-microvolt = <​1800000>;​ 
-                                regulator-max-microvolt = <​3300000>;​ 
-                                regulator-boot-on;​ 
-+                               ​regulator-always-on;​ 
-                        }; 
-                }; 
-        }; 
 </​code>​ </​code>​
 </​spoiler>​ </​spoiler>​
Line 244: Line 245:
  
 # format partition 1 as FAT32 & partition 2 as ext4 # format partition 1 as FAT32 & partition 2 as ext4
-[student@host ~]$ mkimage.fat -F 32 /dev/sdb1 +[student@host ~]$ sudo mkfs.fat -F 32 /dev/sdb1 
-[student@host ~]$ mkimage.ext4 /dev/sdb2+[student@host ~]$ sudo mkfs.ext4 /dev/sdb2
  
 # copy FIT image (without ramdisk!) to FAT32 partition # copy FIT image (without ramdisk!) to FAT32 partition
-[student@host ~/staging]$ mount /dev/sdb1 /mnt +[student@host ~/​staging]$ ​sudo mount /dev/sdb1 /mnt 
-[student@host ~/staging]$ cp linux.itb +[student@host ~/​staging]$ ​sudo cp linux.itb ​/mnt 
-[student@host ~/staging]$ umount /mnt+[student@host ~/​staging]$ ​sudo umount /mnt
  
 # extract rootfs CPIO contents onto ext4 partition # extract rootfs CPIO contents onto ext4 partition
 # NOTE: ext4 required in order to support symlinks # NOTE: ext4 required in order to support symlinks
-[student@host ~/​buildroot]$ mount /dev/sdb2 /mnt +[student@host ~/​buildroot]$ ​sudo mount /dev/sdb2 /mnt 
-[student@host ~/​buildroot]$ cpio -i -D /mnt -F output/​images/​rootfs.cpio +[student@host ~/​buildroot]$ ​sudo cpio -i -D /mnt -F output/​images/​rootfs.cpio 
-[student@host ~/staging]$ umount /mnt+[student@host ~/​staging]$ ​sudo umount /mnt
 </​code>​ </​code>​
  
Line 272: Line 273:
  
 <code bash> <code bash>
-# place the FIP onto the eMMC at 33KB offset from the start +# place the FIP onto the eMMC at 32KB offset from the start 
-[student@host ~/​imx-mkimage/​iMX8M]$ dd if=flash.bin of=/dev/sda bs=1024 seek=33 conv=fsync oflag=direct status=progress+# NOTE: for other ARMv8 platforms, this offset could be 33KB; check the datasheet 
 +[student@host ~/​imx-mkimage/​iMX8M]$ dd if=flash.bin of=/dev/sda bs=1024 seek=32 conv=fsync oflag=direct status=progress
 </​code>​ </​code>​
  
ass/laboratoare/04/tasks/01.1723214644.txt.gz · Last modified: 2024/08/09 17:44 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0