Skip to contentSkip to conversation

Fix default environment 'boot' script

PATCH In review Juergen Beisert 2 participants 2 messages Jan 19, 2011 – Jan 20, 2011

lore
Share & tools
lore
#0 lore raw

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.

defaultenv/bin/boot +1 -2
index fa68748..0f3a6cc 100644
@@ -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

#1 lore raw
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.

defaultenv/bin/boot +0 -0
index fa68748..0f3a6cc 100644

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