Andreas Huber | 28c63c7 | 2011-09-13 23:06:11 +0000 | [diff] [blame] | 1 | addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}" |
Andreas Huber | e0d1111 | 2013-07-04 15:37:34 +0200 | [diff] [blame] | 2 | boot_bank=-1 |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 3 | altbootcmd=run ${subbootcmds} |
| 4 | bootcmd=run ${subbootcmds} |
Holger Brunck | 83ce745 | 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 |
Aleksandar Gerasimovski | 1eb7347 | 2021-06-08 14:20:13 +0000 | [diff] [blame] | 6 | save_and_reset_once=setenv save_and_reset_once true && saveenv && reset |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 7 | nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} |
Holger Brunck | 83ce745 | 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 | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 9 | setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value} |
Holger Brunck | fb379f7 | 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 | 2ffe111 | 2013-01-21 03:55:21 +0000 | [diff] [blame] | 13 | set_uimage=printenv uimage || setenv uimage uImage |
Holger Brunck | fb379f7 | 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 | 35de032 | 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 |