[ELDK] Portmap and NFS mount problems

Chris Alfred c.alfred at internode.on.net
Mon Apr 14 16:05:17 CEST 2008


We have a custom MPC5200B board with an LXT972. We are having problems 
with the network. When we try to mount the root via NFS, we get:

-------------------
Linux version 2.6.19.2 (nw5200 at kythera) (gcc version 4.0.0 (DENX ELDK 
4.1 4.0.0)) #38 Thu Apr 10 22:18:08 EST 2008
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->     4096
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists.  Total pages: 4064
Kernel command line: console=ttyPSC0,115200 root=/dev/nfs rw 
nfsroot=192.168.1.103:/opt/eldk/ppc_82xx,rsize=4096,wsize=4096,v3 
ip=192.168.1.10:192.168.1.103:192.168.1.100:255.255.255.0:nw5200k5_2:eth0:off 
panic=1
PID hash table entries: 64 (order: 6, 256 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13564k available (1892k kernel code, 676k data, 104k init, 0k 
highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16

DMA: MPC52xx BestComm driver
MPC52xx BestComm inited
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 128 (order: -3, 512 bytes)
TCP established hash table entries: 512 (order: -1, 2048 bytes)
TCP bind hash table entries: 256 (order: -2, 1024 bytes)
TCP: Hash tables configured (established 512 bind 256)
TCP reno registered
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: MPC52xx PSC driver
ttyPSC0 at MMIO 0xf0002000 (irq = 40) is a MPC52xx PSC
ttyPSC1 at MMIO 0xf0002200 (irq = 41) is a MPC52xx PSC
ttyPSC5 at MMIO 0xf0002c00 (irq = 43) is a MPC52xx PSC
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
mpc52xx-fec: probe
mpc52xx-fec: probe done
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
usbmon: debugfs is not available
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: config: auto-negotiation on, 100FDX.
IP-Config: Complete:
      device=eth0, addr=192.168.1.10, mask=255.255.255.0, 
gw=192.168.1.100,
     host=nw5200k5_2, domain=, nis-domain=(none),
     bootserver=192.168.1.103, rootserver=192.168.1.103, rootpath=
Looking up port of RPC 100003/3 on 192.168.1.103
portmap: server 192.168.1.103 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/3 on 192.168.1.103
portmap: server 192.168.1.103 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.1.103 not responding, timed out
Root-NFS: Server returned error -5 while mounting /opt/eldk/ppc_82xx
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(2,0)

-------------------

If we boot from USB, we can prove the NFS server is operational, but 
we do get 'server: about do a switch' errors.

-------------------
Kernel command line: root=/dev/sda2 rw init=init 
console=ttyPSC0,115200 rootdelay=5 
ip=192.168.1.10:192.168.1.103:192.168.1.100:255.255.255.0:nw5200k5_2:eth0:off 
panic=1
PID hash table entries: 64 (order: 6, 256 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13504k available (1936k kernel code, 688k data, 108k init, 0k 
highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
DMA: MPC52xx BestComm driver
MPC52xx BestComm inited
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 128 (order: -3, 512 bytes)
TCP established hash table entries: 512 (order: -1, 2048 bytes)
TCP bind hash table entries: 256 (order: -2, 1024 bytes)
TCP: Hash tables configured (established 512 bind 256)
TCP reno registered
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
nw5200_ds2401: initialise
Serial: MPC52xx PSC driver
ttyPSC0 at MMIO 0xf0002000 (irq = 40) is a MPC52xx PSC
ttyPSC1 at MMIO 0xf0002200 (irq = 41) is a MPC52xx PSC
ttyPSC5 at MMIO 0xf0002c00 (irq = 43) is a MPC52xx PSC
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
mpc52xx-fec: probe
mpc52xx-fec: probe done
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
SCSI Media Changer driver v0.25
usbmon: debugfs is not available
ppc-soc-ohci ppc-soc-ohci: USB Host Controller
ppc-soc-ohci ppc-soc-ohci: new USB bus registered, assigned bus number 
1
ppc-soc-ohci ppc-soc-ohci: irq 45, io mem 0xf0001000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using ppc-soc-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: config: auto-negotiation on, 100FDX.
IP-Config: Complete:
      device=eth0, addr=192.168.1.10, mask=255.255.255.0, 
gw=192.168.1.100,
     host=nw5200k5_2, domain=, nis-domain=(none),
     bootserver=192.168.1.103, rootserver=192.168.1.103, rootpath=
Waiting 5sec before mounting root device...
scsi 0:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  3.21 PQ: 0 
ANSI: 2
SCSI device sda: 4001425 512-byte hdwr sectors (2049 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 4001425 512-byte hdwr sectors (2049 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
 sda: sda1 sda2
sd 0:0:0:0: Attached scsi removable disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 108k init
Failed to execute init.  Attempting defaults...
INIT: version 2.85 booting
                Welcome to DENX Embedded Linux Environment
                Press 'I' to enter interactive startup.
Building the cache [  OK  ]
 storage network audio done[  OK  ]
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access 
method.
Setting clock : Thu Jan  1 00:00:24 UTC 1970 [  OK  ]
Setting hostname nw5200k5_2:  [  OK  ]
Your system appears to have shut down uncleanly
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Bringing up loopback interface:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting httpd: httpd: Could not determine the server's fully 
qualified domain name, using 127.0.0.1 for ServerName
[  OK  ]
Starting portmap:
Mounting NFS filesystems:  [  OK  ]
Mounting other filesystems:  [  OK  ]
portmap[916]: user rpc not found, reverting to user bin
Starting xinetd: [  OK  ]

DENX ELDK version 4.1 build 2007-01-19
Linux 2.6.19.2 on a ppc

nw5200k5_2 login: root
Last login: Thu Jan  1 00:00:39 on console
bash-3.00# mount -t nfs 192.168.1.103:/opt/eldk /mnt
server: about do a switch
server: about do a switch
server: about do a switch
server: about do a switch
server: about do a switch
server: about do a switch
bash-3.00# ls /mnt
bin        etc      ppc_6xx_usr_src  ppc_82xx  var
eldk_init  ppc_6xx  ppc_7xx          usr       version
bash-3.00#
-------------------

Using iperf, we have found the network to be really slow (1Mbps). 
iperf between 2 linux PCs on the same network is fine.

Any help would be appreciated.
Thanks,
Chris Alfred



More information about the eldk mailing list