mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix default environment 'boot' script
@ 2011-01-19 13:16 Juergen Beisert
  2011-01-20  8:35 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Beisert @ 2011-01-19 13:16 UTC (permalink / raw)
  To: barebox

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@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/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix default environment 'boot' script
  2011-01-19 13:16 [PATCH] Fix default environment 'boot' script Juergen Beisert
@ 2011-01-20  8:35 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2011-01-20  8:35 UTC (permalink / raw)
  To: Juergen Beisert; +Cc: barebox

On Wed, Jan 19, 2011 at 02:16:24PM +0100, Juergen Beisert wrote:
> 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@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

Normally $nfsroot already contains the serverip, so no need to add it
here.

Sascha

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-20  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 13:16 [PATCH] Fix default environment 'boot' script Juergen Beisert
2011-01-20  8:35 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox