Fix default environment 'boot' script
PATCH 1/1 Fix default environment 'boot' script
Maybe this patch is wrong and instead the "nfsroot=$nfsroot,v3,tcp" line must be fixed. But at first this patch makes my target again booting with NFS root and static IP configuration.
Signed-off-by Juergen Beisert <[email protected]>
defaultenv/bin/boot +1 -2
@@ -18,7 +18,7 @@ if [ x$ip = xdhcp ]; then elif [ x$ip = xnone ]; then bootargs="$bootargs ip=none" else - bootargs="$bootargs ip=$eth0.ipaddr::$eth0.gateway:$eth0.netmask:::" + bootargs="$bootargs ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:::" fi --
Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-8766-939 228 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 11 lines · Juergen Beisert
Maybe this patch is wrong and instead the "nfsroot=$nfsroot,v3,tcp" line must be fixed. But at first this patch makes my target again booting with NFS root and static IP configuration.
Signed-off-by Juergen Beisert <[email protected]>defaultenv/bin/boot +0
-0
defaultenv/bin/boot if [ x$ip = xdhcp ]; then · line 22
Quoted 6 lines
defaultenv/bin/boot +1
-1@@ -18,7 +18,7 @@ if [ x$ip = xdhcp ]; then elif [ x$ip = xnone ]; then bootargs="$bootargs ip=none" else - bootargs="$bootargs ip=$eth0.ipaddr::$eth0.gateway:$eth0.netmask:::" + bootargs="$bootargs ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:::" fi
Normally $nfsroot already contains the serverip, so no need to add it here.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox