389 | | setenv bootargs "console=\${console},\${baudrate} root=ubi0:rootfs rootfstype=ubifs rootwait \${video} \${extra}" |
390 | | ubifsload \$fdt_addr boot/\$fdt_file || |
391 | | ubifsload \$fdt_addr boot/\$fdt_file1 || |
392 | | ubifsload \$fdt_addr boot/\$fdt_file2 |
393 | | test -n "\$fixfdt" && run fixfdt |
394 | | ubifsload \$linux_addr boot/uImage |
395 | | ubifsload \$rd_addr boot/uramdisk |
| 399 | setenv root "root=ubi0:rootfs rootfstype=ubifs rootwait" |
| 400 | setenv fsload "ubifsload" |
| 401 | elif itest.s "x\${dtype}" == "xmmc" ; then |
| 402 | echo "Booting from MMC..." |
| 403 | setenv root "root=/dev/mmcblk0p1 rootwait" |
| 404 | setenv fsload "ext4load \$dtype 0:1" |
| 405 | setenv rd_addr # ramdisk not needed for IMX6 MMC |
| 406 | elif itest.s "x\${dtype}" == "xusb" ; then |
| 407 | echo "Booting from USB Mass Storage..." |
| 408 | setenv root "root=/dev/sda1 rootwait" |
| 409 | setenv fsload "ext4load \$dtype 0:1" |
| 410 | elif itest.s "x\${dtype}" == "xsata" ; then |
| 411 | echo "Booting from SATA..." |
| 412 | setenv root "root=/dev/sda1 rootwait" |
| 413 | setenv fsload "ext4load \$dtype 0:1" |
| 414 | setenv rd_addr # ramdisk not needed for IMX6 AHCI SATA |
| 415 | fi |
| 416 | |
| 417 | # setup bootargs |
| 418 | setenv bootargs "console=\${console},\${baudrate} \${root} \${video} \${extra}" |
| 419 | |
| 420 | # load fdt/kernel/ramdisk |
| 421 | echo "Loading FDT..." |
| 422 | \$fsload \$fdt_addr boot/\$fdt_file || |
| 423 | \$fsload \$fdt_addr boot/\$fdt_file1 || |
| 424 | \$fsload \$fdt_addr boot/\$fdt_file2 |
| 425 | echo "Loading Kernel..." |
| 426 | \$fsload \$linux_addr boot/uImage |
| 427 | if itest.s "x\${rd_addr}" != "x" ; then |
| 428 | echo "Loading Ramdisk..." |
| 429 | \$fsload \$rd_addr boot/uramdisk |
| 430 | fi |
| 431 | if itest.s "x\${dtype}" == "xnand" ; then |
398 | | elif itest.s "x\${dtype}" == "xusb" ; then |
399 | | echo "Booting from usb..." |
400 | | setenv bootargs "console=\${console},\${baudrate} root=/dev/sda1 rootwait \${video} \${extra}" |
401 | | ext4load usb 0:1 \$fdt_addr boot/\$fdt_file || |
402 | | ext4load usb 0:1 \$fdt_addr boot/\$fdt_file1 || |
403 | | ext4load usb 0:1 \$fdt_addr boot/\$fdt_file2 |
404 | | test -n "\$fixfdt" && run fixfdt |
405 | | ext4load usb 0:1 \$linux_addr boot/uImage |
406 | | ext4load usb 0:1 \$rd_addr boot/uramdisk |
407 | | bootm \$linux_addr \$rd_addr \$fdt_addr |
| 442 | else |
| 443 | echo "Booting with "\$bootargs"..." |
| 444 | bootm \$linux_addr - \$fdt_addr |