[PATCH] Fix default environment 'boot' script
Sascha Hauer
s.hauer at pengutronix.de
Thu Jan 20 03:35:14 EST 2011
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 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
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 |
More information about the barebox
mailing list