blob: f77a26abe8d82351972dda36176a2b7013714152 [file] [log] [blame]
Holger Bruncke7bec9b2011-07-04 21:52:52 +00001altbootcmd=run ${subbootcmds}
2bootcmd=run ${subbootcmds}
Holger Brunck83ce7452020-01-10 12:55:42 +01003configure=run set_uimage; run set_tftppath; km_setboardid && run try_import_nfs_path && saveenv && reset
Holger Bruncke7bec9b2011-07-04 21:52:52 +00004subbootcmds=tftpfdt tftpkernel nfsargs add_default boot
Holger Brunck1649df02011-12-14 06:11:50 +00005nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${toolchain}/${arch}
Tobias Müllerc8072a02015-11-13 16:15:22 +01006tftpfdt=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
7tftpkernel=tftpboot ${load_addr_r} ${tftppath}/${uimage}
Holger Brunck1649df02011-12-14 06:11:50 +00008toolchain=/opt/eldk
Andreas Huber28c63c72011-09-13 23:06:11 +00009rootfssize=0
Andreas Huber2ffe1112013-01-21 03:55:21 +000010set_uimage=printenv uimage || setenv uimage uImage
Holger Brunckfb379f72020-01-10 12:55:41 +010011set_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 +010012try_import_nfs_path=if tftpboot 0x200000 ${tftppath}/nfs-path.txt; then env import -t 0x200000 ${filesize}; else echo no auto nfs path imported; echo you can set nfsargs in /tftpboot/${tftppath}/nfs-path.txt and rerun develop; fi