| uenvcmd=run mybootcmd |
| mybootcmd=echo Loading custom boot command; \ |
| echo Loading kernel; \ |
| afs load ${kernel_name} ${kernel_addr_r} ; \ |
| if test $? -eq 1; then echo Loading ${kernel_alt_name} instead of ${kernel_name}; afs load ${kernel_alt_name} ${kernel_addr_r}; fi; \ |
| echo Loading device tree; \ |
| afs load ${fdtfile} ${fdt_addr_r}; \ |
| if test $? -eq 1; then echo Loading ${fdt_alt_name} instead of ${fdtfile}; \ |
| afs load ${fdt_alt_name} ${fdt_addr_r}; fi; fdt addr ${fdt_addr_r}; fdt resize; \ |
| booti ${kernel_addr_r} - ${fdt_addr_r}; |
| |