blob: 10bcced774bc195112bc105a584b344a49d47ef0 [file] [log] [blame]
Alice Guo10a394b2020-12-18 15:19:27 +08001setenv bootargs console=${console} root=${mmcroot};
2
3for boot_target in ${boot_targets};
4do
5 if test "${boot_target}" = "mmc1" ; then
6 if fatload mmc 1:${mmcpart} ${kernel_addr_r} ${image}; then
7 if fatload mmc 1:${mmcpart} ${fdt_addr} ${fdt_file}; then
8 echo Load image and .dtb from SD card(mmc1);
9 booti ${kernel_addr_r} - ${fdt_addr};
10 exit;
11 fi
12 fi
13 fi
14
15 if test "${boot_target}" = "mmc2" ; then
16 if fatload mmc 2:${mmcpart} ${kernel_addr_r} ${image}; then
17 if fatload mmc 2:${mmcpart} ${fdt_addr} ${fdt_file}; then
18 echo Load image and .dtb from eMMC(mmc2);
19 booti ${kernel_addr_r} - ${fdt_addr};
20 exit;
21 fi
22 fi
23 fi
24
25done