Hi,
I am having trouble using NFS on my i.MX28 board. I am using custom hardware, so I do not know if the issue is with my board or with software.
My setup: I have static IP addresses assigned to the host and target so that I don't have to mess with DHCP. I plug the host and device directly into eachother, no hub/switch/router. I am running Ubuntu 10.10 on the host, and the ethernet port on the host is set to auto-detect settings.
First I set up u-boot to do a network boot. The FTP always works great, but usually the NFS fails. I have a pretty poor success rate. But I do notice, if I cycle the power to the board quickly, I am more likely to fail then if I wait a minute before turning power back on.
Another interesting thing, when I was trying to use the u-boot NFS feature, the target would broadcast a "whois" to see where the host was, and the host would reply right away with its MAC address, and then the whole process repeated for a total of 6 times before giving up. It didn't even start the NFS stuff. So it seems like the Rx on the target was not working for some reason, or else why would it ask 6 times where the host was? (I think it was 6, but don't quote me on that).
I next did a SD card boot, and once everything loaded, I logged in and tried
mount -t nfs 192.168.0.10:/tftpboot/rootfs /mnt/nfs"
...but I get this...
svc: failed to register lockdv1 RPC service (errno 111).
mount: mounting 192.168.0.10:/tftpboot/rootfs on /mnt/nfs failed: Connection refused
This is really all the diagnostics I have done so far...
The biggest confusion I have is that the FTP always works (both in u-boot and when running Linux after an SD boot), and that NFS actually works on a rare occasion when done with u-boot.
Has anyone else had problems like this? Any suggestions on what I can do to further troubleshoot?
Thanks!
- Matt
In case of a 'Connection Refused' error, the following additional mount parameters may help:
mount -o port=2049,nolock,proto=tcp nfs_server:/server/mount/point /mnt/nfs
This solved my problem!
Have you checked your kernel configuration? ("make menuconfig" in your kernel source directory)
Check File Systems -> Network File Systems
It's possible NFS support is not compiled into your kernel.
I always use this http://www.imxdev.org/wiki/index.php?title=All_Boards_NFS_on_Ubuntu
to config my system. Can you, please, take a look if it´s ok for you?
you can also try to mount your exported folder into your PC (like /mnt) using your PC IP address. If you could not mount it even on your PC, that´s you have a disconfigured NFS server.
Hi Matt,
first make sure that the NFS server is really running, then try to restart it :-)
You can post your NFS configuration file here so we can see if there's something wrong there as well.
vladan
Hi Matt,
first make sure that the NFS server is really running, then try to restart it :-)
You can post your NFS configuration file here so we can see if there's something wrong there as well.
vladan