summaryrefslogtreecommitdiff
path: root/board/freescale/imx8mp_evk/boot.cmd
blob: 10bcced774bc195112bc105a584b344a49d47ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
setenv bootargs console=${console} root=${mmcroot};

for boot_target in ${boot_targets};
do
        if test "${boot_target}" = "mmc1" ; then
                if fatload mmc 1:${mmcpart} ${kernel_addr_r} ${image}; then
                        if fatload mmc 1:${mmcpart} ${fdt_addr} ${fdt_file}; then
                                echo Load image and .dtb from SD card(mmc1);
                                booti ${kernel_addr_r} - ${fdt_addr};
                                exit;
                        fi
                fi
        fi

        if test "${boot_target}" = "mmc2" ; then
                if fatload mmc 2:${mmcpart} ${kernel_addr_r} ${image}; then
                        if fatload mmc 2:${mmcpart} ${fdt_addr} ${fdt_file}; then
                                echo Load image and .dtb from eMMC(mmc2);
                                booti ${kernel_addr_r} - ${fdt_addr};
                                exit;
                        fi
                fi
        fi

done