- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I creat a Nios II Linux application project and want to run it in cyclone1c20 borad through NFS.
I use command mount -t nfs 192.168.0.7:/mnt/nfs /mnt/nfs -n 192.168.0.7 is my Linux host IP .But my NFS not work rightly . The information tell me time out ,why?Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have to make sure you have allowed access to your nfs directory on the host machine by specifying it in /etc/exports.
Normally you export a different directory other than /mnt/nfs. If you want to export /home/user from your host machine and your nios2 IP address is "w.x.y.z", then try the following in etc exports. /home/user w.x.y.z(rw,no_root_squash) You then might have to restart the nfs server on your host machine. On the nios2, try using the following line in your /etc/rc script, or manually type it in after logging in. /bin/mount -t nfs 192.168.0.7:/home/user /mnt/nfs -n -o nolock & Hopefully this helps.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do it as you tell me ,but my NFS still not work ,why?
The Nios information as follows:# nfs warning :mount version older than Kernel# NFS: NFSv3 not supported# mount:PRC:Time out- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi su-30mk,
> The Nios information as follows: ># nfs warning :mount version older than Kernel ># NFS: NFSv3 not supported ># mount:PRC:Time out This looks like portmap is not running. Make sure you have RPC and the portmapper started prior to running the mount. Regards, --Scott BTW: if you need to do simple NFS testing (file download), you can use the u-boot boot monitor.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You said portmap is not running.What can i do?Can you give me some example and tell me how let portmap runing,thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also make sure NFS is enabled in your kernel configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi su-30mk,
> an you give me some example and tell me how let portmap runing You can simply enter the command: $ portmap I haven't used NFS with the Nios-II uClinux yet. I'm assuming that it is indeed available with the other network apps (it should be if the nfs server is available). Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes i do it ,but system not support portmap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> but system not support portmap
You can try building portmap using the sources from uClinux.org. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a related problem. I have a uKit board with a Cyclone running uClinux.
I am using the configuration stated in the first reply: <div class='quotetop'>QUOTE </div> --- Quote Start --- /bin/mount -t nfs 192.168.0.7:/home/user /mnt/nfs -n -o nolock &[/b] --- Quote End --- When I run this, I get the warning: <div class='quotetop'>QUOTE </div> --- Quote Start --- # nfs warning :mount version older than Kernel[/b] --- Quote End --- I am able to browse through the mounted directory to a point, but if I try to copy "cp" anything from the /mnt/nfs over to my ramdisk at /tmp, then it hangs with no error messages. This also occurs if I try to run something directly from the nfs mounted directory. My kernel that is on my host machine is older, it is a 2.4.20 kernel. I'm guessing that is why I get the warning. However, should this really be a problem? I am hoping that I can use nfs to speed up my development cycle, but so far it hasn't worked out for me. Does anyone have any ideas on why it would be unstable?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page