Or you could add these lines in [/nios2-linux]/uClinux-dist/vendors/Altera/nios2/rc to mount it automatically at startup
Then Nios II client can access files on /home/nios2 of server through /mnt/nfs mount point.
The mount command in sash does not support nfs mount.
You may use the busybox "mount", and enable the "nfs support" in busybox "mount". You may enable "cp" in busybox, which can support recursive copy. You need to clean up busybox, with "make -C user/busybox clean" , "make" "make romfs" and "make linux image" to rebuild kernel image.
Rootfs for NFS setup
To create a rootfs for NFS, login as a root on your PC host,
cp -a /home/hippo/uClinux-dist/romfs/* /home/nios2
on your Nios2, mount /home/nios2 as /mnt/nfs as above.
cp -a /dev/* /mnt/nfs/dev
NFS root, read kernel Documentation/nfsroot.txt
Before you try NFS root, you should start with initramfs and test a nfs mount. If the nfs mount works without problem, then you can disable initramfs by empty the initfamfs path in kernel config. There is a bug in SYSFS, so you must disable SYSFS.
Networking --> Networking options -->
[*] TCP/IP networking
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[ ] IP: BOOTP support
[ ] IP: RARP support
File systems -> Network File Systems -->
[*] Root file system on NFS
File systems -> Pseudo filesystems -->
[ ] sysfs file system support
You need to add a command line in kernel config. ( eg, server ip = 192.168.1.2 , nios2 client ip 192.168.1.10/255.255.255.0 , gateway 192.168.1.254, hostname nios2 )