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 16b93ebe3f778acad9142370cb1163e2e561aa86..9290317730e05053f4b8e80ea648fb6ab182025f 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} \