NFS

Adding NFS support to the gumstix
see also Root filesystems

Below are the steps required to generate a root filesystem with NFS support.

Adding RPC support into uClibc
First you need to add RPC support to uClibc cd /toolchain_build_arm_nofpu/uClibc make menuconfig make clean
 * Under Networking Support, enable Remote Procedure Call (RPC) support, Full RPC support, and Reentrant RPC support.
 * Hit Escape twice, then select Yes to save.

Adding NFS support into the kernel
Now add NFS support into the gumstix kernel cd /build_arm_nofpu/linux-2.6.20gum make ARCH=arm menuconfig And remove the old kernel image so it gets remade later when we regenerate the root filesystem rm build_arm_nofpu/linux-2.6.20gum/arch/arm/boot/compressed/vmlinux
 * Under File systems, under Network File Systems, enable NFS file system support and Provide NFSv3 client support.
 * Hit Escape three times, then select Yes to save.

Adding NFS mount support to busybox
Now we have to enable the option in busybox so we can mount NFS filesystems cd /build_arm_nofpu/busybox-1.1.2/ make menuconfig cd ../.. make busybox-clean
 * Under Linux System Utilities select Support mounting NFS file systems
 * Hit Escape twice, then select Yes to save.

Create the root filesystem image
Now we can create our new root filesystem image to flash onto the gumstix cd  make This should give you an image with NFS client support.

Troubleshooting
If you have trouble mounting a NFS share and see errors like this to dmesg: RPC error to dmesg: portmap: server localhost not responding, timed out RPC: failed to contact portmap (errno -5). lockd_up: makesock failed, error=-5 try adding the -o nolock to your mount command mount -t nfs -o nolock 10.1.1.1:/mnt/share /mnt/share