[yocto] Network booting

Rudolf Streif rstreif at linuxfoundation.org
Wed Jul 31 14:29:47 PDT 2013


> Is there an easy way to have a system boot and load the rootfs from a
> network server?
>
> The classic way is to serve the root file system from an NFS server. You
will have to pass the root=/dev/nfs and
nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
to your kernel via boot loader.

Every system you want to boot this way will need to have its own root file
system on the NFS server. However, there is the nfsroot project [1] that
reportedly allows booting entire clusters sharing one root file system. I
have not used that though.



> I'm using an x86 system and can have the kernel and an initrd on it. I
> would use bootp, but a lot of end users either don't have this or will not
> allow it to be used. I think it needs to go something like:
>
> 1) Kernel loads the initrd and bring the network up (static or DHCP);
> 2) The rootfs image can then be download;
> 3) Some magic then makes this run...
>
> This looks like you want to start up the system, download a root file
system tarball, extract it to somewhere and then use that as the root file
system by chroot'ing to it.


>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130731/c8c0b4ae/attachment.html>


More information about the yocto mailing list