On Fri, Feb 24, 2012 at 11:25 AM, Christian Gagneraud
<ch...@techworks.ie> wrote:
> Hi there,
>
> I'm currently trying to add a new device (based on a ATSAM9G20), and during
> development I  would like to boot it on a NFS root.
> Unfortunately I noticed that a couple of firstboot/preinit/init scripts are
> messing up with either the rootfs and/or the network configuration.
> Does anyone has any tricks for using a NFS root?

You need init=/etc/preinit on the kernel command line in uboot.

nfsargs=setenv bootargs console=ttyS0,115200n8 root=/dev/nfs rw
nfsroot=${serverip}:${rootpath} ip=:::::eth0:dhcp loglevel=7
init=/etc/preinit


> Especially I would like to:
> - Avoid root remounting (or make openwrt aware onf the NFS root)
> - Avoid mtd checking and stuff
> - Avoid network interface reconfiguration (especially the hotplug call on
> eth0 in /etc/rc.d/S10boot)
>
> Regards,
> Chris
>
>
> --
> Christian Gagneraud,
> Embedded systems engineer.
> Techworks Marine
> 1 Harbour road
> Dun Laoghaire
> Co. Dublin
> Ireland
> Tel: + 353 (0) 1 236 5990
> Web: http://www.techworks.ie/
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



-- 
Jon Smirl
jonsm...@gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to