Difference between revisions of "Transclusion: IOT-GATE-iMX7 and SBC-IOT-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 3: | Line 3: | ||
CL-SOM-iMX7 # env default -a | CL-SOM-iMX7 # env default -a | ||
CL-SOM-iMX7 # setenv bootdelay 3 | CL-SOM-iMX7 # setenv bootdelay 3 | ||
− | CL-SOM-iMX7 # setenv image zImage | + | CL-SOM-iMX7 # setenv image zImage |
CL-SOM-iMX7 # setenv loadaddr 0x80800000 | CL-SOM-iMX7 # setenv loadaddr 0x80800000 | ||
CL-SOM-iMX7 # setenv fdt_file imx7d-sbc-iot-imx7.dtb | CL-SOM-iMX7 # setenv fdt_file imx7d-sbc-iot-imx7.dtb |
Revision as of 12:33, 23 April 2017
- Use the following U-Boot commands to configure eMMC as the main storage for both Linux kernel and root filesystem images:
CL-SOM-iMX7 # env default -a CL-SOM-iMX7 # setenv bootdelay 3 CL-SOM-iMX7 # setenv image zImage CL-SOM-iMX7 # setenv loadaddr 0x80800000 CL-SOM-iMX7 # setenv fdt_file imx7d-sbc-iot-imx7.dtb CL-SOM-iMX7 # setenv fdt_addr 0x83000000 CL-SOM-iMX7 # setenv mmcroot "/dev/mmcblk2p2 rootwait rw" CL-SOM-iMX7 # setenv loadimage 'load mmc 1:1 ${loadaddr} ${image}' CL-SOM-iMX7 # setenv loadfdt 'load mmc 1:1 ${fdt_addr} ${fdt_file}' CL-SOM-iMX7 # setenv bootargs "console=ttymxc0,115200 root=${mmcroot}" CL-SOM-iMX7 # setenv bootcmd 'run loadimage; run loadfdt; bootz ${loadaddr} - ${fdt_addr}'
- To save this configuration:
CL-SOM-iMX7 # saveenv
- To boot Linux type:
CL-SOM-iMX7 # run bootcmd