All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Can't compile NSF mounts
       [not found] <005601c89afa$bdfe24b0$ad289e86@LPSC0173W>
@ 2008-04-15 10:56 ` Guillaume Dargaud
  2008-04-15 11:07   ` Joe
       [not found]   ` <4804B462.3050109@bfs.de>
  0 siblings, 2 replies; 6+ messages in thread
From: Guillaume Dargaud @ 2008-04-15 10:56 UTC (permalink / raw)
  To: buildroot

> mount.c:(.text.singlemount+0xf14): undefined reference to `clnt_sperror'
[...]

The solution was a simple "rm -rf toolchain_build_powerpc" when compiling 
from buildroot.

But I still have NFS woes, a bit off-topic for the busybox mailing list, so 
I'll crosspost to buildroot at uclibc.org, I hope it's OK.

Briefly put: I can't mount mount my root filesystem off NFS and I can't 
event do a normal mount.

/etc/exports on the host contains:
/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root 
*(rw,async,no_all_squash,no_root_squash)
(note that some of the path is a "ln -s", don't know if it can be a problem)

I can mount it fine on a different PC with this in the /etc/fstab:
192.168.1.185:/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root 
/media/loop nfs wsize=1024,rsize=1024,hard,intr,rw 0 0

When I try to mount it on my target board:
$ mount /media/loop
[  922.797996] rpcbind: server localhost not responding, timed out
[  922.853581] RPC: failed to contact local rpcbind server (errno 5).
[  957.926565] rpcbind: server localhost not responding, timed out
[  957.982067] RPC: failed to contact local rpcbind server (errno 5).
[  993.055133] rpcbind: server localhost not responding, timed out
[  993.110661] RPC: failed to contact local rpcbind server (errno 5).
mount: mounting 
192.168.1.185:/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root 
on /media/
loop failed: Input/output error

And in the meanwhile I see this in the log of my host:
Apr 15 12:40:58 lpsc6185x mountd[6261]: authenticated mount request from 
192.168.1.200:804 for 
/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/root 
(/home/guinevere/Min_UartLite_NetLite_Ace/buildroot/project_build_powerpc/genepy/root)

I've enabled every RPC related stuff in buildroot/kernel (I don't know if 
all are necessary):
$ egrep "RPC|NFS" `find -name .config`
linux-2.6.24-xlnx/.config:# CONFIG_AF_RXRPC is not set
linux-2.6.24-xlnx/.config:CONFIG_NFS_FS=y
linux-2.6.24-xlnx/.config:CONFIG_NFS_V3=y
linux-2.6.24-xlnx/.config:# CONFIG_NFS_V3_ACL is not set
linux-2.6.24-xlnx/.config:# CONFIG_NFS_V4 is not set
linux-2.6.24-xlnx/.config:# CONFIG_NFS_DIRECTIO is not set
linux-2.6.24-xlnx/.config:# CONFIG_NFSD is not set
linux-2.6.24-xlnx/.config:CONFIG_ROOT_NFS=y
linux-2.6.24-xlnx/.config:CONFIG_NFS_COMMON=y
linux-2.6.24-xlnx/.config:CONFIG_SUNRPC=y
linux-2.6.24-xlnx/.config:# CONFIG_SUNRPC_BIND34 is not set
linux-2.6.24-xlnx/.config:# CONFIG_RPCSEC_GSS_KRB5 is not set
linux-2.6.24-xlnx/.config:# CONFIG_RPCSEC_GSS_SPKM3 is not set
buildroot/project_build_powerpc/genepy/busybox-1.10.0/.config:CONFIG_FEATURE_HAVE_RPC=y
buildroot/project_build_powerpc/genepy/busybox-1.10.0/.config:CONFIG_FEATURE_MOUNT_NFS=y
buildroot/project_build_powerpc/genepy/busybox-1.10.0/.config:CONFIG_FEATURE_INETD_RPC=y
buildroot/.config:BR2_INET_RPC=y
buildroot/.config:# BR2_PACKAGE_NFS_UTILS is not set
buildroot/toolchain_build_powerpc/uClibc-0.9.29/.config:UCLIBC_HAS_RPC=y
buildroot/toolchain_build_powerpc/uClibc-0.9.29/.config:UCLIBC_HAS_FULL_RPC=y
buildroot/toolchain_build_powerpc/uClibc-0.9.29/.config:UCLIBC_HAS_REENTRANT_RPC=y


Thanks
-- 
Guillaume Dargaud
http://www.gdargaud.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Can't compile NSF mounts
  2008-04-15 10:56 ` [Buildroot] Can't compile NSF mounts Guillaume Dargaud
@ 2008-04-15 11:07   ` Joe
  2008-04-15 12:30     ` Guillaume Dargaud
       [not found]   ` <4804B462.3050109@bfs.de>
  1 sibling, 1 reply; 6+ messages in thread
From: Joe @ 2008-04-15 11:07 UTC (permalink / raw)
  To: buildroot

Have you installed/enabled portmap and friends?

Greetz

-- 
Sepp "ZaP" Holzmayr

please reply to: zentrale.at.work at gmail.com
"Never underestimate the bandwidth of a freight train full of DAT tapes. 
Only the round-trip is a little suboptimal."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Can't compile NSF mounts
  2008-04-15 11:07   ` Joe
@ 2008-04-15 12:30     ` Guillaume Dargaud
  2008-04-15 12:32       ` Joe
  0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Dargaud @ 2008-04-15 12:30 UTC (permalink / raw)
  To: buildroot

> Have you installed/enabled portmap and friends?

On the host I have
$ cat /etc/hosts.allow
portmap: 192.168.1.200


On the target board:
# cat /etc/hosts.allow
portmap: 192.168.1.185

# ps
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    4 root     [watchdog/0]
    5 root     [events/0]
    6 root     [khelper]
   27 root     [kblockd/0]
   47 root     [pdflush]
   48 root     [pdflush]
   49 root     [kswapd0]
   50 root     [aio/0]
  157 root     [rpciod/0]
  169 daemon   portmap
  188 root     /usr/sbin/dropbear
  191 root     -sh
  192 root     /sbin/syslogd -n -m 0
  193 root     /sbin/klogd -n
  197 root     ps

# ll /etc/init.d
drwxr-xr-x    3 root     root         1024 Apr 15  2008 ./
drwxr-xr-x    7 root     root         1024 Dec 31 17:02 ../
drwxr-xr-x    6 root     root         1024 Apr 11  2008 .svn/
-rwxr-xr-x    1 root     root          532 Apr 15  2008 S13portmap*
-rwxr-xr-x    1 root     root         1365 Apr 11  2008 S20urandom*
-rwxr-xr-x    1 root     root          340 Apr 11  2008 S40network*
-rwxr-xr-x    1 root     root         1092 Apr 11  2008 S50dropbear*
-rwxr-xr-x    1 root     root          969 Apr 11  2008 S99at*
-rwxr-xr-x    1 root     root          408 Apr 11  2008 rcS*



If I try to mount it as / during boot:
Linux/PPC load: console=ttyUL0,9600 root=/dev/nfs rw ip=on 
nfsroot=192.168.1.185:/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root
Uncompressing Linux...done.
[...]
[    4.089232] TCP cubic registered
[    4.126816] NET: Registered protocol family 1
[    4.178834] NET: Registered protocol family 17
[    4.232919] RPC: Registered udp transport module.
[    4.288086] RPC: Registered tcp transport module.
[    5.851503] Sending DHCP requests ..,. OK
[   12.450875] IP-Config: Got DHCP answer from 0.0.0.0, my address is 
192.168.1.200
[   12.524428] IP-Config: Complete:
[   12.560324]       device=eth0, addr=192.168.1.200, mask=255.255.255.0, 
gw=192.168.1.185,
[   12.656078]      host=genepy, domain=, nis-domain=(none),
[   12.720738]      bootserver=0.0.0.0, rootserver=192.168.1.185, 
rootpath=/home/guinevere/prj/buildroot
/project_build_powerpc/genepy/root/dev
[   12.875318] Looking up port of RPC 100003/2 on 192.168.1.185
[   17.939272] Looking up port of RPC 100005/1 on 192.168.1.185
[   40.724135] nfs: server 192.168.1.185 not responding, timed out
[   40.779925] VFS: Unable to mount root fs via NFS, trying floppy.
[   40.853703] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[   40.927506] Please append a correct "root=" boot option; here are the 
available partitions:
[   41.027535] fe00     507024 xsa (driver?)
[   41.075230]   fe01      98248 xsa1
[   41.115914]   fe02     402192 xsa2
[   41.156546] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(2,0)
[   41.255578] Rebooting in 180 seconds..
equests ..,. OK
[   12.450875] IP-Config: Got DHCP answer from 0.0.0.0, my address is 
192.168.1.200
[   12.524428] IP-Config: Complete:
[   12.560324]       device=eth0, addr=192.168.1.200, mask=255.255.255.0, 
gw=192.168.1.185,
[   12.656078]      host=genepy, domain=, nis-domain=(none),
[   12.720738]      bootserver=0.0.0.0, rootserver=192.168.1.185, 
rootpath=/home/guinevere/prj/buildroot
/project_build_powerpc/genepy/root/dev
[   12.875318] Looking up port of RPC 100003/2 on 192.168.1.185
[   17.939272] Looking up port of RPC 100005/1 on 192.168.1.185
[   40.724135] nfs: server 192.168.1.185 not responding, timed out
[   40.779925] VFS: Unable to mount root fs via NFS, trying floppy.
[   40.853703] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[   40.927506] Please append a correct "root=" boot option; here are the 
available partitions:
[   41.027535] fe00     507024 xsa (driver?)
[   41.075230]   fe01      98248 xsa1
[   41.115914]   fe02     402192 xsa2
[   41.156546] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(2,0)
[   41.255578] Rebooting in 180 seconds..
-- 
Guillaume Dargaud
http://www.gdargaud.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Can't compile NSF mounts
  2008-04-15 12:30     ` Guillaume Dargaud
@ 2008-04-15 12:32       ` Joe
  2008-04-15 13:17         ` Guillaume Dargaud
  0 siblings, 1 reply; 6+ messages in thread
From: Joe @ 2008-04-15 12:32 UTC (permalink / raw)
  To: buildroot

Have you tried mounting the NFS filesystem from another box?
To narrow it down if it's a server or a client issue..

-- 
Sepp "ZaP" Holzmayr

please reply to: zentrale.at.work at gmail.com
"Never underestimate the bandwidth of a freight train full of DAT tapes. 
Only the round-trip is a little suboptimal."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Can't compile NSF mounts
  2008-04-15 12:32       ` Joe
@ 2008-04-15 13:17         ` Guillaume Dargaud
  0 siblings, 0 replies; 6+ messages in thread
From: Guillaume Dargaud @ 2008-04-15 13:17 UTC (permalink / raw)
  To: buildroot

> Have you tried mounting the NFS filesystem from another box?
> To narrow it down if it's a server or a client issue..

Yes, and it works fine.

I just managed to mount it on my target board... but it goes incredibly 
slowly (about one byte per second, so maybe there's something wrong with my 
network configuration or my design, I'm using XILINX_EMACLITE):

# cat >>/etc/fstab
192.168.1.185:/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root 
/media/loop nfs wsize=1024,rsize=1024,hard,intr,rw 0 0

# mount /media/loop

# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
192.168.1.185:/home/guinevere/prj/buildroot/project_build_powerpc/genepy/root 
on /media/loop type nfs 
(rw,vers=3,rsize=1024,wsize=1024,hard,intr,proto=udp,timeo=7,retrans=3,sec=sys,addr=192.168.1.185)

# time cat /media/loop/etc/inittab
one minute !!!

I have to see if all protocols are as slow...
-- 
Guillaume Dargaud
http://www.gdargaud.net/ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Can't compile NSF mounts
       [not found]   ` <4804B462.3050109@bfs.de>
@ 2008-04-16  8:36     ` Guillaume Dargaud
  0 siblings, 0 replies; 6+ messages in thread
From: Guillaume Dargaud @ 2008-04-16  8:36 UTC (permalink / raw)
  To: buildroot

> did you try -o nolock,noatime ?
> 1. prevent locking can be an issue
> 2. noatime speeds up file access

Well, apparently I have deeper issues:
ping from the target to the host gives a 500ms avg with 50% packet loss
ping from the host to the target gives a 300ms avg with 80% packet loss
And that's over a crossover cable on 100Mbps configuration !


Digging in the archive here, I saw that some people complained recently 
about the EMAC_LITE IP and/or driver being buggy. Could this be the case ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-16  8:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <005601c89afa$bdfe24b0$ad289e86@LPSC0173W>
2008-04-15 10:56 ` [Buildroot] Can't compile NSF mounts Guillaume Dargaud
2008-04-15 11:07   ` Joe
2008-04-15 12:30     ` Guillaume Dargaud
2008-04-15 12:32       ` Joe
2008-04-15 13:17         ` Guillaume Dargaud
     [not found]   ` <4804B462.3050109@bfs.de>
2008-04-16  8:36     ` Guillaume Dargaud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.