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