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:50]
florin.stancu [01. Preparation]
ass:laboratoare:04:tasks:01 [2024/08/09 18:48] (current)
florin.stancu [01. Preparation]
Line 245: 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 273: 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.1723215047.txt.gz · Last modified: 2024/08/09 17:50 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