LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   loading module through NFS (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/loading-module-through-nfs-724623/)

cmrnaidu 05-08-2009 04:22 AM

loading module through NFS
 
Hi all,

I'm trying to load the module using the NFS, I can mount using the NFS without any problem, but I couldn't load the module.


uclibc[/]# mount -o nolock 192.168.0.104:/tango /tango
uclibc[/]# cd /tango/
uclibc[tango]# ls
llad.ko* sdk.tgz*
uclibc[tango]# insmod llad.ko
nfs: server 192.168.0.104 not responding, still trying
nfs: server 192.168.0.104 not responding, still trying

and the system hanged.


vi /etc/exports
/tango 192.168.0.10(rw)

Please say me the solution about this.

irishbitte 05-08-2009 10:00 AM

Change this:
Quote:

/tango 192.168.0.10(defaults)
to this:
Quote:

/tango 192.168.0.10(defaults)
Also, have you setup the hosts.allow and hosts.deny files correctly?

cmrnaidu 05-10-2009 07:22 PM

HI Irishbitte,

I can't understand, what do you mean in changing.
Change this:
Quote:
/tango 192.168.0.10(defaults)

to this:
Quote:
/tango 192.168.0.10(defaults)
as both looks same !!

irishbitte 05-11-2009 01:29 AM

My apologies. I meant, change this
Quote:

/tango 192.168.0.10(rw)
to this:
Code:

/tango 192.168.0.10(defaults)
You really should look in more detail how to setup your NFS exports, and you need to make sure your hosts.allow and hosts.deny files are setup correctly. If you do some reading, you will find that setting up NFS takes about ten minutes! This is a good Howto: http://nfs.sourceforge.net/nfs-howto/ar01s03.html, enjoy!

kirany 05-13-2009 06:14 AM

Hi,

I am working on a embedded linux project which doesn't have any in-built tools for debugging my application. I read plenty of options and got interest in NFS setup. can anyone put some light on this how and in what manner NFS can be used for embedded application debugging?

thanks and regards
kiran

irishbitte 05-14-2009 05:43 AM

The way I would do it is mount a filesystem like for example: /srv/bin on the embedded unit as /usr/bin on the server, then add /srv/bin to the PATH variable on the embedded application. That way, you can install all tools/utilities/apps for debugging on the server path /usr/bin, and you will have access to them on the embedded application. Just a thought?

schneidz 05-14-2009 09:32 AM

can you copy stuff via nfs ?

maybe sshfs will play more nicely.

cmrnaidu 05-14-2009 07:27 PM

NFS Load module fixed but ..
 
Hi All,

I have fixed this loading module with NFS by connecting my client directly to the server,but previously both are connected in LAN.when i connect my client with another person server through LAN it works fine, but i can't understand why its not working with mine server, may be vmware setting problem ??

Thanks alot,
Naidu

kirany 05-15-2009 01:20 AM

Hi,
Can you give more details on this. how tools installed in /usr/bin in server will be accessable to /srv/bin in embedded unit?

regards
kiran

irishbitte 05-15-2009 08:47 PM

kirany, it's only an idea. I would propose mounting server:/usr/bin on unit:/srv/bin. On unit, add /srv/bin to the system path. That way, when the NFS mount is in place, the tools in server:/usr/bin are accessible, and when the unit is off network, there are no diagnostic tools available. I haven't done this myself, it's only one idea of a possible route to take.

irishbitte 05-15-2009 08:48 PM

cmrnaidu: I doubt it's anything to do with vmware settings, more likely your NFS /etc/exports file is set up incorrectly.


All times are GMT -5. The time now is 11:41 AM.