This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Root-NFS: Unable to get nfsd port number from server, using default




I am using SEED's DM6446 EVM board,and i run the mv4.01 with 2.6.10 kernel from SEED DVSDK_1_20. Everything is running well.
but I down the DVSDK2.0 and mv5.0 form the TI site,I can't mount the root file system from my server(The error message in the bottom , ip is set static).

If I boot back the 2.6.10 , with the exactly same hardware and cables setup,(USE ip = dhcp, not try it with static ip) I could mount the root nfs. So definitely something changed in the 2.6.18.

I tried pinging - the pings work fine to several local hosts, also the kernel load via TFTP works fine, however the mount stage fails。


Following is the entire output messages:

TI UBL Version: 1.13, Flash type: NAND
Booting PSP Boot Loader
PSPBootMode = NAND
Starting NAND Copy...
Initializing NAND flash...
Manufacturer ID = 0x00000020
Device ID = 0x000000A1
Pages Per Block = 0x00000040
Number of Blocks = 0x00000400
Bytes Per Page = 0x00000800
Valid MagicNum found.
NAND Boot success.
DONE

U-Boot 1.2.0 (May 11 2011 - 11:22:33)

DRAM: 128 MB
NAND: NAND Manufacturer id: 20
NAND Device id: a1
NAND device: Manufacturer ID: 0x20, Chip ID: 0xa1 (ST Micro NAND 128MiB 1,8V 8-bit)
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock : 297MHz
DDR Clock : 162MHz
ETH PHY : BroadCom PHY Chip
Hit any key to stop autoboot: 0

//1.ping windows主机和linux虚拟机都是通的

SEED_DVS6446_v1.2 # ping 192.168.1.124
host 192.168.1.124 is alive
SEED_DVS6446_v1.2 # ping 192.168.1.119
host 192.168.1.119 is alive

//2.下面是打印的变量值

SEED_DVS6446_v1.2 # printenv
bootargs=mem=60M console=ttyS0,115200n8 init=/linuxrc root=/dev/mtdblock0 rw noinitrd rootfstype=yaffs2 ip=dhcp video=dm64xxfb:output=pal
bootcmd=nboot 0x80800000 0 0x200000
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=00:0e:99:02:50:18
serverip=192.168.1.124
rootpath=/opt/workdir/filesys
nfshost=192.168.1.124
ipaddr=192.168.1.188
IP=192.168.1.188:192.168.1.124:192.168.1.1:255.255.255.0::eth0:off
ip=192.168.1.188:192.168.1.124:192.168.1.1:255.255.255.0::eth0:off
stdin=serial
stdout=serial
stderr=serial
autostart=yes
videostd=pal
ver=U-Boot 1.2.0 (May 11 2011 - 11:22:33)

Environment size: 586/131068 bytes

//3.下面是输入启动参数,下载uImage并启动后的输出信息
//用的是静态IP,最后挂载nfs的时候出错了

SEED_DVS6446_v1.2 # setenv bootargs video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_mode=PAL console=ttyS0,115200n8 noinitrd rw ip=192.168.1.188:192.168.1.124:::::::off root=/dev/nfs nfsroot=$(nfshost):$(rootpath) mem=118M
SEED_DVS6446_v1.2 # tftp 0x80800000 uImage;bootm 0x80800000
TFTP from server 192.168.1.124; our IP address is 192.168.1.188
Filename 'uImage'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
########
done
Bytes transferred = 2017344 (1ec840 hex)
Automatic boot of image at addr 0x80800000 ...
## Booting image at 80800000 ...
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2017280 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................................... done, booting the kernel.
Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (root@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Fri Nov 15 15:16:05 CST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci DM6443 variant 0x1
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists. Total pages: 30208
Kernel command line: video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_mode=PAL console=ttyS0,115200n8 noinitrd rw ip=192.168.1.188:192.168.1.124:::::::off root=/dev/nfs nfsroot=$(nfshost):$(rootpath) mem=118M
PID hash table entries: 512 (order: 9, 2048 bytes)
Clock event device timer0_0 configured with caps set: 03
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 118MB = 118MB total
Memory: 115328KB available (3457K code, 689K data, 172K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
DaVinci: 71 gpio irqs
WARNING: both IDE and NOR flash are enabled, but share pins.
Disable IDE for NOR support.
ch0 default output "COMPOSITE", mode "PAL"
MUX: initialized LOEEN
MUX: initialized LFLDEN
VPBE Encoder Initialized
LogicPD encoder initialized
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
davinci_spi_board_init: NO spi support
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.1 (2006/08/19) Phillip Lougher
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Nov 15 2013 15:10:02 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
davincifb davincifb: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 2025KB
davincifb davincifb: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 2500KB
davincifb davincifb: dm_osd1_fb: 720x576x4@0,0 with framebuffer size 810KB
davincifb davincifb: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 2500KB
davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfec20000 (irq = 40) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
netconsole: not configured, aborting
TI DaVinci EMAC: MAC address is 57:c0:48:7d:57:c0
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
Linux video capture interface: v2.00
vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
Trying to register davinci display video device.
layer=c0be3600,layer->video_dev=c0be3760
Trying to register davinci display video device.
layer=c0be3400,layer->video_dev=c0be3560
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

Davici AEW Driver cannot be loaded
VIDEO PORT is not enabledData Flow path from CCDC is disabled

Davinci AF driver cannot be loaded
VIDEO PORT is not enabled
CCDC needs to be configured<6>i2c /dev entries driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
MUX: initialized HDIREN
MUX: initialized ATAEN
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
Palm Chip BK3710 IDE Register Fail
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Host mode controller at c785e000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
rtc_davinci_evm rtc_davinci_evm: rtc intf: proc
rtc_davinci_evm rtc_davinci_evm: rtc intf: dev (254:0)
rtc_davinci_evm rtc_davinci_evm: rtc core: registered rtc_davinci_evm as rtc0
rtc0: hours 12-23 are misreported as duplicate hours 00-11
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
MUX: initialized MCBSP
AIC3X Audio Codec 0.1
ALSA device list:
No soundcards found.
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Time: timer0_1 clocksource has been installed.
Clock event device timer0_0 configured with caps set: 08
Switched to high resolution mode on CPU 0
rtc_davinci_evm rtc_davinci_evm: hctosys: invalid date/time
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.188, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.188, domain=, nis-domain=(none),
bootserver=192.168.1.124, rootserver=192.168.1.124, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.124
portmap: server 192.168.1.124 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.124
portmap: server 192.168.1.124 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.1.124 not responding, timed out
Root-NFS: Server returned error -5 while mounting /tftpboot/$(nfshost):$(rootpath)
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)

//4.我在linux虚拟机上测试挂载目标nfs是可以的

[root@localhost opt]# ls /mnt/
hgfs
[root@localhost opt]# mount -t nfs 192.168.1.124:/opt/workdir/filesys /mnt/
[root@localhost opt]# ls /mnt/
bin dev home media opt root srv tmp var
boot etc lib mnt proc sbin sys usr

//5.Linux下文件/etc/exports内容为
[root@localhost opt]# cat /etc/exports
/opt/workdir/filesys/ *(rw,no_root_squash,no_all_squash,sync)

6.防火墙状态一直处于关闭状态的
[root@localhost opt]# /etc/init.d/iptables status
iptables: Firewall is not running.


7.我用了
service portmap restart
service nfs restart
重启端口和nfs


//8.我遇到的问题跟
e2e.ti.com/.../28113.aspx
上说的十分相似
到现在还没有解决……各位专家帮我分析一下吧 谢谢

  • 先在host上做一下

    #exports -rav

    将板子参数设置如下试试

    setenv bootargs 'console=ttyS0,115200n8 mem=120M root=/dev/nfs nfsroot=192.168.1.124:/opt/workdir/filesys,nolock ip=192.168.1.188:192.168.1.124:192.168.253.1:255.255.255.0::eth0:off'

    或者

    setenv bootargs 'console=ttyS0,115200n8 mem=120M root=/dev/nfs nfsroot=192.168.1.124:/opt/workdir/filesys,nolock ip=192.168.1.188:192.168.1.124:192.168.253.1:255.255.255.0'

  • 感谢您的回答。我按照您给你的方法试了一下,但出现了如下错误:

    IP-Config: Gateway not on directly connected network.
    Looking up port of RPC 100003/2 on 192.168.1.124
    portmap: server 192.168.1.124 not responding, timed out
    Root-NFS: Unable to get nfsd port number from server, using default
    Looking up port of RPC 100005/1 on 192.168.1.124
    portmap: server 192.168.1.124 not responding, timed out
    Root-NFS: Unable to get mountd port number from server, using default
    mount: server 192.168.1.124 not responding, timed out
    Root-NFS: Server returned error -5 while mounting /opt/workdir/filesys
    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)

    这个问题实在是很奇怪

  • 感觉像是Host的环境没有配置好,换一个可以正常挂载的Host机器试试

  • 192.168.253.1这个是什么?

    (1)改成192.168.1.1试试

    (2)断开外网试试

    (3)千兆网改百兆网试试

  • 不好意思,输入错误,应该是:

    192.168.1.188:192.168.1.124:192.168.1.1:255.255.255.0

  • 谢谢您的回答。你说的Host,指的是windows主机,还是虚拟机下的Linux系统呢?

  • 多谢您的回答。我一开始就是使用的192.168.1.1,但行不通。如果我用mv4.01,内核版本2.6.10 from SEED DVSDK_1_20,同样采用 ip=192.168.1.188:192.168.1.124:192.168.1.1:255.255.255.0::eth0:off 是可行的,ip=dhcp也是可行的。但一旦换成mv5.0,内核版本2.6.18 from SEED DVSDK_2.0,无论设置ip=dhcp(这样设置动态ip的话,IP配置都不成功),还是静态ip=ip=192.168.1.188:192.168.1.124:192.168.1.1:255.255.255.0::eth0:off(不能挂载nfs),都会出现错误。

    我用别的linux机器,或者虚拟机下的自身linux,去挂载这个nfs,都是可以正常挂载的。这说明无论是网络,tftp,还是nfs,都是正常的。

    我试过直接将板子和主机通过一根网线相连接,使用静态ip时仍然出现上述错误。 崩溃了~

  • 多谢您的回答。我尝试了这种方式,不过还是不行,实在是非常奇怪

  • 请问您的问题解决了吗?我遇到了和你一样的问题?能否告诉我怎么解决的?

  • 跟我的问题很像,建议:先从nand启动,在板子用 mount -t nfs -o nolock 192.168.1.124:/opt/workdir/filesys /mnt/ 挂载试试,如果成功,才说明你linux虚拟机nfs是可通的,在虚拟机上直接mount说明不了问题,如果提示什么refuse具体忘了 ,就看下虚拟机里/etc/hosts.allow  /etc/hosts.deny这两个文件 ,我的是之前把他改了导致nfs启动不了。