diff options
| author | Holger Brunck <[email protected]> | 2020-01-10 12:55:41 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-01-23 07:29:58 -0500 |
| commit | 27a5f833ff0cc84103e97df207f8bc3c0dd03e6f (patch) | |
| tree | 89f1268e0fb435cf9c3f3fa5c323741f24a2bec7 /board/keymile/scripts/develop-common.txt | |
| parent | db4256f60d6b5bb093b6e0e1ac758914797a7934 (diff) | |
km/scripts: fix run ramfs and COGE5 tftppath problem
The tftppath was not set in case of run ramfs. It worked only by chance
if was already set before.
Also check the boardname before setting the tftppath for COGE5.
Signed-off-by: Holger Brunck <[email protected]>
CC: Tom Rini <[email protected]>
Diffstat (limited to 'board/keymile/scripts/develop-common.txt')
| -rw-r--r-- | board/keymile/scripts/develop-common.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/keymile/scripts/develop-common.txt b/board/keymile/scripts/develop-common.txt index 265f02f4ecd..ba15323a5ba 100644 --- a/board/keymile/scripts/develop-common.txt +++ b/board/keymile/scripts/develop-common.txt @@ -1,6 +1,6 @@ altbootcmd=run ${subbootcmds} bootcmd=run ${subbootcmds} -configure=run set_uimage; setenv tftppath ${IVM_Symbol} ; km_setboardid && saveenv && reset +configure=run set_uimage; run set_tftppath; km_setboardid && saveenv && reset subbootcmds=tftpfdt tftpkernel nfsargs add_default boot nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${toolchain}/${arch} 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 @@ -8,3 +8,4 @@ tftpkernel=tftpboot ${load_addr_r} ${tftppath}/${uimage} toolchain=/opt/eldk rootfssize=0 set_uimage=printenv uimage || setenv uimage uImage +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 |
