[PATCH] Fix default environment 'boot' script

Juergen Beisert jbe at pengutronix.de
Wed Jan 19 08:16:24 EST 2011


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 <jbe at pengutronix.de>

diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index fa68748..0f3a6cc 100644
--- a/defaultenv/bin/boot
+++ b/defaultenv/bin/boot
@@ -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/  |



More information about the barebox mailing list