Using NFS on the uCsimm
Training the GNU generation
Look at current Classes
How do you make NFS Mount work on the uCsimm ( and your development host) .
There are four (maybe more) stages to this process:
This example will use the 2.4 distribution from www.uclinux.org.
This driven from a make menuconfig or a
make
xconfig.
The defaults provide the correct kernel settings.
Again the defaults provide the correct user settings.
I am discussion RH 7.2 here your system may vary.
There is a file called /etc/exports that needs to be present this file needs to contain an entry like this
/home/train (rw,no_root_squash) |
Again browsing the man page on the exports file will explain more details (man exports)
Once this is in place the NFS system on the host needs to be turned on. There are better ways to do this but we'll do it the quick way for now. Under RH 7.2 (and others ymmv !) you can manually turn system features on and off by directly running the start-stop scripts in
/etc/rc.d/init.d |
So we'll do this (as root)
/etc/rc.d/init.d/nfs stop ( ignore any errors ) followed by ( this should have no errors ) /etc/rc.d/init.d/nfs start |
The startup file is in
uClinux-dist/vendors/Arcturus/uCsimm/rc |
The make process will insert this into your rom file system image (romfs.img).
The target must be set up to use your selected network address so adjust the 192.168.1.2 entry and the default route entry .
route add -net 127.0.0.0 netmask 255.0.0.0 lo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 route add 192.168.1.2 eth0 route add default gw 192.168.1.1 portmap & |
Now you need to and an entry to NFS mount your host. Try doing this from the target system command line prompt before adding it to the rc file.
/bin/mount -o rsize=1024,wsize=1024 192.168.1.106:/home/train /usr |
The system should mount the host file system. If this works then add the line to the rc file.
NOTE:The use of /bin/mount is important. It uses the busybox version of mount.
route add -net 127.0.0.0 netmask 255.0.0.0 lo ifconfig eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 route add 192.168.1.2 eth0 route add default gw 192.168.1.1 portmap & /bin/mount -o rsize=1024,wsize=1024 192.168.1.106:/home/train /usr |
Contact for more information