Andreas Huber | 2a7714c | 2011-09-13 23:06:11 +0000 | [diff] [blame] | 1 | addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}" |
Andreas Huber | d3379e2 | 2013-07-04 15:37:34 +0200 | [diff] [blame] | 2 | boot_bank=-1 |
Holger Brunck | b648bfc | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 3 | altbootcmd=run ${subbootcmds} |
| 4 | bootcmd=run ${subbootcmds} |
Holger Brunck | d4348a8 | 2020-01-10 12:55:42 +0100 | [diff] [blame] | 5 | subbootcmds=save_and_reset_once tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot |
| 6 | save_and_reset_once=setenv save_and_reset_once true && save && reset |
Holger Brunck | b648bfc | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 7 | nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} |
Holger Brunck | d4348a8 | 2020-01-10 12:55:42 +0100 | [diff] [blame] | 8 | configure=run set_uimage; run set_tftppath; km_setboardid && run try_import_rootfssize && saveenv && reset |
Holger Brunck | b648bfc | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 9 | setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value} |
Holger Brunck | 27a5f83 | 2020-01-10 12:55:41 +0100 | [diff] [blame] | 10 | tftpfdt=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 |
| 11 | tftpkernel=tftpboot ${load_addr_r} ${tftppath}/${uimage} |
| 12 | tftpramfs=tftpboot ${rootfsaddr} ${tftppath}/rootfsImage |
Andreas Huber | d42a3b7 | 2013-01-21 03:55:21 +0000 | [diff] [blame] | 13 | set_uimage=printenv uimage || setenv uimage uImage |
Holger Brunck | 27a5f83 | 2020-01-10 12:55:41 +0100 | [diff] [blame] | 14 | set_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 Ghidoni | aef04a8 | 2020-10-29 13:48:01 +0100 | [diff] [blame^] | 15 | try_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 |