blob: 00bf67edd5b2bb0d866fe99ffe11701afecd1f16 [file] [log] [blame]
Adam Fordea06d7a2023-05-28 14:18:00 -05001boot_fit=try
2bootscript=echo Running bootscript from mmc ...; source
3console=ttymxc1
4fdt_addr=0x45000000
5fdt_file=imx8mm-beacon-kit.dtb
6finduuid=part uuid mmc ${mmcdev}:2 uuid
7image=Image
8initrd_addr=0x46000000
9loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
10loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
11loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
12mmcargs=setenv bootargs console=${console},${baudrate} root=PARTUUID=${uuid} rootwait rw ${mtdparts} ${optargs}
13mmcautodetect=yes
14mmcboot=echo Booting from mmc ...; run finduuid; run mmcargs; if run loadfdt; then booti ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi;
15netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
16mmcdev=1
17mmcpart=1
18netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${loadaddr} ${image}; if test ${boot_fit} = yes || test ${boot_fit} = try; then bootm ${loadaddr}; else if ${get_cmd} ${fdt_addr} ${fdt_file}; then booti ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi; fi;
19script=boot.scr