User Tools

Site Tools


do_gentoo_on_usd_for_iot-gate-imx7

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
do_gentoo_on_usd_for_iot-gate-imx7 [2017/11/05 00:22]
admin
do_gentoo_on_usd_for_iot-gate-imx7 [2017/11/21 17:49]
admin
Line 1: Line 1:
 +== Parted ==
 +  parted /dev/sdX
 +  mklabel msdos
 +  mkpart primary fat32 2048s 150M
 +  mkpart primary ext4 150M -1
 +  ​
 +  mkfs.vfat -F 32 /dev/sdX1
 +  mkfs.ext4 -L root -m 0.1 /dev/sdX2
 +
 == Understand the firmware == == Understand the firmware ==
 When I open the folder **install/​** into **cl-som-imx7-linux.zip**,​ I scan with ''​file''​ command to understand what I have, usually ARM hardware use uboot, then I hope uboot system + linux kernel + ramdisk. When I open the folder **install/​** into **cl-som-imx7-linux.zip**,​ I scan with ''​file''​ command to understand what I have, usually ARM hardware use uboot, then I hope uboot system + linux kernel + ramdisk.
Line 34: Line 43:
 I change into: I change into:
   #System for CL-SOM-iMX7   #System for CL-SOM-iMX7
-  ​ 
-  # Next run parameters 
-  setenv bootcmd_next ${bootcmd} 
-  setenv bootcmd '​setenv bootcmd $bootcmd_next;​ setenv bootcmd_next "";​ saveenv; run emmcboot; run nandboot; run defaultboot'​ 
-  saveenv 
   ​   ​
   # Parameters   # Parameters
Line 62: Line 66:
   echo "​Starting uSD system ..."   echo "​Starting uSD system ..."
   bootz ${loadaddr} ${fdtaddr}   bootz ${loadaddr} ${fdtaddr}
 +  ​
 +After install the package **dev-embedded/​u-boot-tools** I do:
 +  mkimage -C none -A arm -T script -d boot.script boot.scr
  
-After I do my ext4 part with rootfs.tar.bz2 content into my second uSD partition. Or other system keeping the **/​lib/​modules/​** at the first time util I do my own kernel.+After I do my ext4 part with rootfs.tar.bz2 content into my second uSD partition. Or other system keeping the **/​lib/​modules/​** at the first time util I do my own kernel. ​FAT32 on first part with: 
 +  * boot.scr 
 +  * kernel.img 
 +  * imx7d-sbc-iot-imx7.dtb
do_gentoo_on_usd_for_iot-gate-imx7.txt · Last modified: 2017/11/21 17:49 by admin