Booting the root filesystem on NFS make development easier: no need to write flash.
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/
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