blob: 77c02e3677c0f250edee0477a853ed76d7fb4f95 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001uenvcmd=run mybootcmd
2mybootcmd=echo Loading custom boot command; \
3echo Loading kernel; \
4afs load ${kernel_name} ${kernel_addr_r} ; \
5if test $? -eq 1; then echo Loading ${kernel_alt_name} instead of ${kernel_name}; afs load ${kernel_alt_name} ${kernel_addr_r}; fi; \
6echo Loading device tree; \
7afs load ${fdtfile} ${fdt_addr_r}; \
8if test $? -eq 1; then echo Loading ${fdt_alt_name} instead of ${fdtfile}; \
9afs load ${fdt_alt_name} ${fdt_addr_r}; fi; fdt addr ${fdt_addr_r}; fdt resize; \
10booti ${kernel_addr_r} - ${fdt_addr_r};
11