summaryrefslogtreecommitdiff
path: root/board/k+p
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2018-08-31 13:58:27 +0200
committerStefano Babic <sbabic@denx.de>2018-09-14 15:22:52 +0200
commit7e6bba20f5d80b07574d317c4b62d89bd36c400f (patch)
treed7778f6950c8ce6a10045a3d51eb39c62deb1156 /board/k+p
parent2d558da0d73af7329592a072bfe2c912af413f74 (diff)
ARM: bootscript: Fix the nfsargs and addip in K+P's tpcboot.cmd
The quotes around ${bootargs} were missing as we elaborate those variables twice - once when we "setenv" the command and secondly when we "run" it. Without quotes we have just empty string in the second call. Moreover there is an issue with line breaks - as the original commands got truncated. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'board/k+p')
-rw-r--r--board/k+p/bootscripts/tpcboot.cmd9
1 files changed, 3 insertions, 6 deletions
diff --git a/board/k+p/bootscripts/tpcboot.cmd b/board/k+p/bootscripts/tpcboot.cmd
index ebd2d4ec2a..e26fd72825 100644
--- a/board/k+p/bootscripts/tpcboot.cmd
+++ b/board/k+p/bootscripts/tpcboot.cmd
@@ -65,17 +65,14 @@ fi"
#
# Provide 'boot_nfs' command
#------------------------------------------------------------
-setenv nfsargs "setenv bootargs root=/dev/nfs rw \
- nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
-setenv addip "setenv bootargs ${bootargs} \
- ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:\
- ${hostname}:eth0:on"
+setenv nfsargs "setenv bootargs root=/dev/nfs rw nfsroot='${serverip}':'${rootpath}',nolock,nfsvers=3"
+setenv addip "setenv bootargs '${bootargs}' ip='${ipaddr}':'${serverip}':'${gatewayip}':'${netmask}':'${hostname}':eth0:on"
setenv boot_nfs "
if run download_kernel; then
run nfsargs;
run addip;
- setenv bootargs ${bootargs} console=${console};
+ setenv bootargs '${bootargs}' console=${console};
run boot_fitImage;
fi"