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