Use rootfs on NFS

Booting the root filesystem on NFS make development easier: no need to write flash.

Setup NFS on build host

Install the nfs server:

sudo apt-get -y install nfs-kernel-server

To use /srv/rootfs/ok6410 to hold the root filesystem, add this to /etc/exports:

/srv/rootfs/ok6410  192.168.0.0/24(rw,no_root_squash,no_all_squash,no_subtree_check)

To make changes effective:

exportfs -a

Extract the root filesystem to the export folder, example:

mkdir -p /srv/rootfs/ok6410
cd /oe/build/ok6410-tmp/deploy/eglibc/images/mini6410
tar xvf x11-gpe-image-mini6410.tar -C /srv/rootfs/ok6410/

Setup kernel on target to use rootfs on nfs

Change the bootargs at the u-boot prompt. Suppose the ip of the build host is 192.168.0.24:

setenv bootargs "console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.0.24:/srv/rootfs/ok6410 ip=dhcp rw"
saveenv
oe/use_rootfs_on_nfs.txt · Last modified: 2010-10-22 20:31 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0