blob: 0a4a9c80b7e34e11a40274596e1039f83a4ff7ca [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
Aleksandar Gerasimovski1eb73472021-06-08 14:20:13 +00006save_and_reset_once=setenv save_and_reset_once true && saveenv && 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
Matteo Ghidoni35de0322020-10-29 13:48:01 +010015try_import_rootfssize=if tftpboot ${load_addr_r} ${tftppath}/rootfssize.txt; then env import -t ${load_addr_r} ${filesize}; else echo no auto rootfs size; echo you can set rootfssize in /tftpboot/${tftppath}/rootfssize.txt and rerun ramfs; fi