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