blob: 0c9f9c4178a39f9754070775a655f8ad030961d8 [file] [log] [blame]
Oliver Grauteabf0e7b2023-04-21 12:11:50 +02001script=boot.scr
2image=Image
3panel=NULL
4console=ttyLP0
5earlycon=lpuart32,0x5a060000
6fdt_addr=0x83000000
7boot_fdt=try
8fdt_file=imx8qm-dmsse20-a1.dtb
9mmcdev= __stringify(CONFIG_SYS_MMC_ENV_DEV)
10mmcpart= __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART)
11mmcroot=/dev/mmcblk1p2 rootwait rw
12mmcautodetect=yes
13mmcargs=setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate} root=${mmcroot}
14loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
15bootscript=echo Running bootscript from mmc ...; source
16loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
17loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
18mmcboot=echo Booting from mmc ...;
19 run mmcargs;
20 if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
21 if run loadfdt; then
22 booti ${loadaddr} - ${fdt_addr};
23 else
24 echo WARN: Cannot load the DT;
25 fi;
26 else
27 echo wait for boot;
28 fi;
29netargs=setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate}
30 root=/dev/nfs
31 ip=dhcp mac=${ethaddr} nfsroot=${serverip}:${nfsroot},v3,tcp rw
32netboot=echo Booting from net ...;
33 run netargs;
34 if test ${ip_dyn} = yes; then
35 setenv get_cmd dhcp;
36 else
37 setenv get_cmd tftp;
38 fi;
39 ${get_cmd} ${loadaddr} ${image};
40 if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
41 if ${get_cmd} ${fdt_addr} ${fdt_file}; then
42 booti ${loadaddr} - ${fdt_addr};
43 else
44 echo WARN: Cannot load the DT;
45 fi;
46 else
47 booti;
48 fi;