blob: d79ad2e21b2c83863ca5eb476e5b07e9dbc95b65 [file] [log] [blame]
Andreas Huber2a7714c2011-09-13 23:06:11 +00001addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}"
Andreas Huberd3379e22013-07-04 15:37:34 +02002boot_bank=-1
Holger Brunckb648bfc2011-07-04 21:52:52 +00003altbootcmd=run ${subbootcmds}
4bootcmd=run ${subbootcmds}
5subbootcmds=tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot
6nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
Andreas Huberd42a3b72013-01-21 03:55:21 +00007configure=run set_uimage; km_setboardid && saveenv && reset
Holger Brunckb648bfc2011-07-04 21:52:52 +00008rootfsfile=${hostname}/rootfsImage
9setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
Gerlando Falautob1c2a7a2014-01-27 16:58:28 +010010tftpfdt=if run set_fdthigh || test ${arch} != arm; then tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb; else true; fi
Andreas Huberd42a3b72013-01-21 03:55:21 +000011tftpkernel=tftpboot ${load_addr_r} ${hostname}/${uimage}
Holger Brunckb648bfc2011-07-04 21:52:52 +000012tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
Andreas Huberd42a3b72013-01-21 03:55:21 +000013set_uimage=printenv uimage || setenv uimage uImage