ARM: bootscript: Remove hard-coded rootpath from K+P's tpcboot.cmd
authorLukasz Majewski <lukma@denx.de>
Fri, 31 Aug 2018 11:58:25 +0000 (13:58 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 14 Sep 2018 13:22:52 +0000 (15:22 +0200)
The 'rootpath' can be provided by DHCP server. Removing this line prevents
from overwriting it.

To do that on the DHCP server side (isc-dhcp-server) modify dhcpd.conf
and add 'option root-path "192.168.X.Y:/srv/tftp/rootfs";'

Signed-off-by: Lukasz Majewski <lukma@denx.de>
board/k+p/bootscripts/tpcboot.cmd

index 16b93eb..9290317 100644 (file)
@@ -65,7 +65,6 @@ fi"
 #
 # Provide 'boot_nfs' command
 #------------------------------------------------------------
-setenv rootpath "/srv/tftp/KP/rootfs"
 setenv nfsargs "setenv bootargs root=/dev/nfs rw \
        nfsroot=${serverip}:${rootpath},nolock,nfsvers=3"
 setenv addip "setenv bootargs ${bootargs} \