blob: 290c602aabc2b3d0782d4a5bb86f8310ac63e6db [file] [log] [blame]
Andreas Huber28c63c72011-09-13 23:06:11 +00001addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}"
Andreas Hubere0d11112013-07-04 15:37:34 +02002boot_bank=-1
Holger Bruncke7bec9b2011-07-04 21:52:52 +00003altbootcmd=run ${subbootcmds}
4bootcmd=run ${subbootcmds}
Holger Brunck83ce7452020-01-10 12:55:42 +01005subbootcmds=save_and_reset_once tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot
6save_and_reset_once=setenv save_and_reset_once true && save && reset
Holger Bruncke7bec9b2011-07-04 21:52:52 +00007nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
Holger Brunck83ce7452020-01-10 12:55:42 +01008configure=run set_uimage; run set_tftppath; km_setboardid && run try_import_rootfssize && saveenv && reset
Holger Bruncke7bec9b2011-07-04 21:52:52 +00009setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
Holger Brunckfb379f72020-01-10 12:55:41 +010010tftpfdt=if run set_fdthigh || test ${arch} != arm; then if tftpboot ${fdt_addr_r} ${tftppath}/fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb; then; else tftpboot ${fdt_addr_r} ${tftppath}/${hostname}.dtb; fi; else true; fi
11tftpkernel=tftpboot ${load_addr_r} ${tftppath}/${uimage}
12tftpramfs=tftpboot ${rootfsaddr} ${tftppath}/rootfsImage
Andreas Huber2ffe1112013-01-21 03:55:21 +000013set_uimage=printenv uimage || setenv uimage uImage
Holger Brunckfb379f72020-01-10 12:55:41 +010014set_tftppath=if test ${hostname} = kmcoge5un; then setenv tftppath CI5UN; else if test ${hostname} = kmcoge5ne; then setenv tftppath CI5NE; else setenv tftppath ${IVM_Symbol}; fi; fi
Holger Brunck83ce7452020-01-10 12:55:42 +010015try_import_rootfssize=if tftpboot 0x200000 ${tftppath}/rootfssize.txt; then env import -t 0x200000 ${filesize}; else echo no auto rootfs size; echo you can set rootfssize in /tftpboot/${tftppath}/rootfssize.txt and rerun ramfs; fi