Adam Ford | 54bbfd7 | 2023-05-28 14:18:02 -0500 | [diff] [blame] | 1 | boot_fdt=try |
| 2 | bootdelay=2 |
| 3 | bootscript=echo Running bootscript from mmc ...; source |
| 4 | console=ttymxc1 |
| 5 | fdt_addr=0x45000000 |
| 6 | fdt_file=imx8mn-beacon-kit.dtb |
| 7 | finduuid=part uuid mmc ${mmcdev}:2 uuid |
| 8 | image=Image |
| 9 | initrd_addr=0x46000000 |
| 10 | loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script}; |
| 11 | loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file} |
| 12 | loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} |
| 13 | loadramdisk=load mmc ${mmcdev} ${ramdisk_addr} ${ramdiskimage} |
| 14 | mmcargs=setenv bootargs console=${console},${baudrate} root=PARTUUID=${uuid} rootwait rw ${mtdparts} ${optargs} |
| 15 | mmcautodetect=yes |
| 16 | mmcboot=echo Booting from mmc ...; run finduuid; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then booti ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi; else echo wait for boot; fi; |
| 17 | mmcdev=1 |
| 18 | mmcpart=1 |
| 19 | netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp |
| 20 | 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_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then booti ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi; else booti; fi; |
| 21 | ramargs=setenv bootargs console=${console},${baudrate} root=/dev/ram rw ${optargs} |
| 22 | ramboot=echo Booting from RAMdisk...; run loadimage; run loadfdt; fdt addr $fdt_addr; run loadramdisk; run ramargs; booti ${loadaddr} ${ramdisk_addr} ${fdt_addr} ${optargs} |
| 23 | ramdisk_addr=0x46000000 |
| 24 | ramdiskimage=rootfs.cpio.uboot |
| 25 | script=boot.scr |