Difference between revisions of "Transclusion: CL-SOM-iMX7: U-Boot: Boot from eMMC"
(New page: * Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images: <pre> CL-SOM-iMX7 # env default -a CL-SOM-iMX7 # setenv bootdela...) |
|||
Line 1: | Line 1: | ||
* Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images: | * Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images: | ||
<pre> | <pre> | ||
− | + | env default -a | |
− | + | setenv bootdelay 3 | |
− | + | setenv kernel zImage | |
− | + | setenv loadaddr 0x80800000 | |
− | + | setenv fdtfile imx7d-sbc-imx7.dtb | |
− | + | setenv fdtaddr 0x83000000 | |
− | + | setenv mmcroot "/dev/mmcblk2p2 rootwait rw" | |
− | + | setenv loadimage 'load mmc 1:1 ${loadaddr} ${kernel}' | |
− | + | setenv loadfdt 'load mmc 1:1 ${fdtaddr} ${fdtfile}' | |
− | + | setenv bootargs "console=ttymxc0,115200 root=${mmcroot}" | |
− | + | setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdtaddr}' | |
</pre> | </pre> | ||
* To save this configuration: | * To save this configuration: | ||
<pre> | <pre> | ||
− | + | saveenv | |
</pre> | </pre> | ||
* To boot Linux type: | * To boot Linux type: | ||
<pre> | <pre> | ||
− | + | run bootcmd | |
</pre> | </pre> |
Latest revision as of 12:37, 22 August 2017
- Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images:
env default -a setenv bootdelay 3 setenv kernel zImage setenv loadaddr 0x80800000 setenv fdtfile imx7d-sbc-imx7.dtb setenv fdtaddr 0x83000000 setenv mmcroot "/dev/mmcblk2p2 rootwait rw" setenv loadimage 'load mmc 1:1 ${loadaddr} ${kernel}' setenv loadfdt 'load mmc 1:1 ${fdtaddr} ${fdtfile}' setenv bootargs "console=ttymxc0,115200 root=${mmcroot}" setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdtaddr}'
- To save this configuration:
saveenv
- To boot Linux type:
run bootcmd