Difference between revisions of "Transclusion: CL-SOM-iMX7: U-Boot: Boot from NAND"

From Compulab Mediawiki
Jump to: navigation, search
imported>Uri.mashiach
Line 1: Line 1:
 
* Use the following U-Boot commands to configure NAND as the main storage for both Linux kernel and root filesystem images:
 
* Use the following U-Boot commands to configure NAND as the main storage for both Linux kernel and root filesystem images:
 
<pre>
 
<pre>
setenv bootdelay 3
+
setenv bootcmd 'run nandboot'
setenv loadaddr 0x80800000
 
setenv fdtaddr 0x83000000
 
setenv nandroot "ubi0:rootfs rootfstype=ubifs ubi.mtd=rootfs rw"
 
setenv loadimage 'nand read ${loadaddr} 0 0x600000'
 
setenv loadfdt 'nand read ${fdtaddr} 0x980000 0x10000'
 
setenv bootargs "console=ttymxc0,115200 root=${nandroot}"
 
setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdtaddr}'
 
 
</pre>
 
</pre>
 
* To save this configuration:
 
* To save this configuration:

Revision as of 07:44, 23 June 2019

  • Use the following U-Boot commands to configure NAND as the main storage for both Linux kernel and root filesystem images:
setenv bootcmd 'run nandboot'
  • To save this configuration:
saveenv
  • To boot Linux type:
run bootcmd