Discussion:
[U-Boot-Users] nfs root issue
Seingier François-Xavier
2004-08-11 15:45:33 UTC
Permalink
hello,

now that u-boot works perfeclty alright on my EP405 board, I am testing some Linux features and am having problem with booting with a nfs root file system. I've googled around for hours now (and read the DULG manual too ;) and although this is not u-boot related, I guess some of you embedded guys may have encountered the same problem. If I use a ramdisk, I can mount the nfs partition (with -o nolock,nfsvers=2); so I'm running out of clues for now. The bootargs variable is set to: root=/dev/nfs IP=192.168.1.15:::::255.255.255.0::eth0 nfsroot=192.168.1.10:/opt/embedded/tools/ppc_4xx,v2 rw
Any hint would be greatly appreciated. (and forgive me for sending this message on the u-boot list Wolfgang, but other mailing lists did not point me to working clues)

During the boot process, I get:

Looking up port of RPC 100003/2 on 192.168.1.10
RPC: rpc_getport_external(192.168.1.10, 100003, 2, 17)
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.10
RPC: rpc_getport_external(192.168.1.10, 100005, 1, 17)
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
mount: RPC call returned error 101

Here are some information about the host:

**** rpcinfo -p ****

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 949 rquotad
100011 2 udp 949 rquotad
100011 1 tcp 952 rquotad
100011 2 tcp 952 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32773 nlockmgr
100021 3 udp 32773 nlockmgr
100021 4 udp 32773 nlockmgr
100005 1 udp 32774 mountd
100005 1 tcp 32789 mountd
100005 2 udp 32774 mountd
100005 2 tcp 32789 mountd
100005 3 udp 32774 mountd
100005 3 tcp 32789 mountd

**** /etc/export ****

/opt/embedded/tools/ppc_4xx *(rw,no_root_squash)

**** /etc/hosts.allow ****

#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

ALL:ALL



Regards,

Fran?ois-Xavier SEINGIER
Wolfgang Denk
2004-08-11 16:20:22 UTC
Permalink
Dear Fran?ois-Xavier,
Post by Seingier François-Xavier
now that u-boot works perfeclty alright on my EP405 board, I am testing
some Linux features and am having problem with booting with a nfs root
file system. I've googled around for hours now (and read the DULG manual
too ;) and although this is not u-boot related, I guess some of you
Indeed, this _is_ off topic here.
Post by Seingier François-Xavier
embedded guys may have encountered the same problem. If I use a ramdisk,
I can mount the nfs partition (with -o nolock,nfsvers=2); so I'm
root=/dev/nfs IP=192.168.1.15:::::255.255.255.0::eth0
nfsroot=192.168.1.10:/opt/embedded/tools/ppc_4xx,v2 rw
Any hint would be greatly appreciated. (and forgive me for sending this
Well, I think that the DULG shows this a bit differently, doesn't it?

Why are you writing "IP=" when all available documentation has "ip=" ?
Why are there so many colons in your argument?

Documentation/nfsroot.txt says:

ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>

Will you please compare this with your string?
Post by Seingier François-Xavier
message on the u-boot list Wolfgang, but other mailing lists did not
point me to working clues)
Looking up port of RPC 100003/2 on 192.168.1.10
RPC: rpc_getport_external(192.168.1.10, 100003, 2, 17)
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.10
RPC: rpc_getport_external(192.168.1.10, 100005, 1, 17)
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: xprt_sendmsg(0) = -101
RPC: sendmsg returned error 101
mount: RPC call returned error 101
-> grep 101 /usr/include/*/errno.h
/usr/include/asm/errno.h:#define ENETUNREACH 101 /* Network is unreachable */

Read: Network is unreachable

Blame it on yourself for being unable to copy and paste from the
available documentation.

Best regards,

Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
It is dangerous to be right on a subject on which the established
authorities are wrong. -- Voltaire
Loading...