km/scripts: replace hardcoded uImage
Replace uImage with ${uimage}. If uimage is not set, default it to uImage. Signed-off-by: Andreas Huber <andreas.huber@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
This commit is contained in:
parent
dacc109c41
commit
d42a3b7498
@ -1,8 +1,9 @@
|
||||
altbootcmd=run ${subbootcmds}
|
||||
bootcmd=run ${subbootcmds}
|
||||
configure=km_setboardid && saveenv && reset
|
||||
configure=run set_uimage; km_setboardid && saveenv && reset
|
||||
subbootcmds=tftpfdt tftpkernel nfsargs add_default boot
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${toolchain}/${arch}
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage}
|
||||
toolchain=/opt/eldk
|
||||
rootfssize=0
|
||||
set_uimage=printenv uimage || setenv uimage uImage
|
||||
|
@ -4,8 +4,9 @@ altbootcmd=run ${subbootcmds}
|
||||
bootcmd=run ${subbootcmds}
|
||||
subbootcmds=tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
|
||||
configure=km_setboardid && saveenv && reset
|
||||
configure=run set_uimage; km_setboardid && saveenv && reset
|
||||
rootfsfile=${hostname}/rootfsImage
|
||||
setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage}
|
||||
tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
|
||||
set_uimage=printenv uimage || setenv uimage uImage
|
||||
|
Loading…
Reference in New Issue
Block a user