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.

VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0)

Other Parts Discussed in Thread: TVP5146, TSC2004, THS7303

大家好!遇到的问题好久了都没解决,希望大家帮帮忙!我使用的是DM36X EVM开发板,软件版本为IPNC V5.1,所使用的配置是

# Select Hardware Platform: EVM or IPNC
SYSTEM_PLATFORM := EVM
#SYSTEM_PLATFORM := IPNC

# IPNC Platform Device needs to selected
IPNC_DEVICE := DM365
#IPNC_DEVICE := DM368
#IPNC_DEVICE := DM369
#IPNC_DEVICE := DMVA1
#IPNC_DEVICE := DMVA2

# Filesystem mode to selected: NAND or NFS
FILESYS_MODE := NFS
#FILESYS_MODE := UBIFS

# Build configuration : debug or release
#APP_BUILD_CFG    := debug
APP_BUILD_CFG   := release

# UBIFS mtd-utils mode
MTD_UTILS_MODE := 64bit
#MTD_UTILS_MODE := 32bit

编译出内核,和根文件系统,通过NFS挂载根文件系统的时候出现VFS: Unable to mount root fs via NFS, trying floppy.  VFS: Cannot open root device "nfs" or unknown-block(2,0) 错误,bootargs设置为setenv bootargs 'console=ttyS0,115200n8 noinitrd rw mem=48M root=/dev/nfs nfsroot=192.168.1.100:/share/luotong/old/rootfs,nolock,nfsvers=3 mem=48M cmemk.phys_start="0x83000000" cmemk.phys_end="0x88000000" cmemk.phys_start_1="0x00001000" cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28672" cmemk.allowOverlap=1 eth=00:0e:99:02:c0:cf nohz=off highres=off clocksource=acpi_pm lpj=739328'

启动信息如下所示

'console=ttyS0,115200n8 init=/linuxrc noinitrd ip=192.168.1.74:192.168.1.100:192.168.1.1:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.100:/share/luotong/old/rootfs,nolock,nfsvers=3'
 
 
File transfer via NFS from server 192.168.1.100; our IP address is 192.168.1.74
Filename '/share/longwei/uImage'.
Load address: 0x80700000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################################
done
Bytes transferred = 4845632 (49f040 hex)
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.37_IPNC_DM365EVM_5.1.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4845568 Bytes =  4.6 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
 
Starting kernel ...
 
Linux version 2.6.37_IPNC_DM365EVM_5.1.0 (longwei@123456) (gcc version 4.3.3 (GC
C) ) #3 PREEMPT Thu Jun 25 10:52:56 CST 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
Kernel command line: console=ttyS0,115200n8 noinitrd rw mem=48M root=/dev/nfs nf
sroot=192.168.1.100:/share/luotong/old/rootfs,nolock,nfsvers=3 mem=48M cmemk.phy
s_start="0x83000000" cmemk.phys_end="0x88000000" cmemk.phys_start_1="0x00001000"
 cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28672" cmemk.allowOverlap=1 eth=
00:0e:99:02:c0:cf nohz=off highres=off clocksource=acpi_pm lpj=739328 mac=00:0e:
99:02:c0:cf
TI DaVinci EMAC: kernel boot params Ethernet address: 00:0e:99:02:c0:cf
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 43740k/87480k available, 10824k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff000000 - 0xffe00000   (  14 MB)
    vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)
    lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002d000   ( 148 kB)
      .text : 0xc002d000 - 0xc0475000   (4384 kB)
      .data : 0xc0476000 - 0xc04a7000   ( 196 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop (skipped) preset value.. 147.86 BogoMIPS (lpj=739328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
EVM: HD imager video input
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
Advanced Linux Sound Architecture Driver Version 1.0.23.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timer0_1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 85
io scheduler noop registered (default)
CSL: Module install successful, device major num = 254
CSL: Module version 0.10.00, built on Jun 23 2015 15:59:09
I2C: Module install successful, device major num = 253
DMA: Module install successful, device major num = 252
EVM: switch to tvp5146 SD video input
DRV: Sensor interface selected on DM365 EVM
DRV: Module install successful
DRV: Module built on Jun 23 2015 15:59:10
DRV: EDMACC.QUEPRI  = 00002777
DRV: SYSTEM.MSTPRI0 = 00440011
DRV: SYSTEM.MSTPRI1 = 00000444
DRV: ISP.BCR        = 00000002
DRV: SYSTEM.MISC    = 00000399
EDMAK module: built on Jun 23 2015 at 15:58:46
  Reference Linux version 2.6.37
  File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxu
tils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jun 23 2015 at 15:58:45
  Reference Linux version 2.6.37
  File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxu
tils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
CMEMK module: built on Jun 23 2015 at 15:58:43
  Reference Linux version 2.6.37
  File /home/longwei/working/IPNC_RDK_DM36x_V5.1.0/Source/dvsdk_ipnctools/linuxu
tils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1d06000 IRQ4
1): -22
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: 00:0e:99:02:cf:a8
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron )
2 NAND chips detected
Creating 12 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000700000 : "bootloader"
0x000000700000-0x000000780000 : "descriptions"
0x000000780000-0x000000800000 : "parameters"
0x000000800000-0x000000a00000 : "system_file"
0x000000a00000-0x000000e00000 : "safe_kernel"
0x000000e00000-0x000002e00000 : "safe_rootfs"
0x000002e00000-0x000003200000 : "kernel"
0x000003200000-0x000005200000 : "rootfs"
0x000005200000-0x000005a00000 : "opt"
0x000005a00000-0x000005e00000 : "log"
0x000005e00000-0x000006000000 : "cfg"
0x000006000000-0x000008000000 : "data"
davinci_nand davinci_nand.0: controller rev. 2.3
spi_davinci spi_davinci.0: Controller at 0xfec66000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
davinci_mdio davinci_mdio.0: detected phy mask fffffffc
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
console [netcon0] enabled
netconsole: network logging started
mice: PS/2 mouse device common for all mice
tsc2004: probe of 1-0049 failed with error -121
input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input/
input0
i2c /dev entries driver
Linux media interface: v0.10
lirc_dev: IR Remote Control driver registered, major 246
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
vpbe-osd vpbe-osd: OSD sub device probe success
vpbe-venc vpbe-venc: VENC sub device probe success
vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
write byte data failed
vpbe-v4l2 vpbe-v4l2: v4l2 sub device ths7303 registered
Setting default output to Composite
Setting default mode to ntsc
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c29cf800,layer->video_dev=c29cf8f4
vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
vpbe-v4l2 vpbe-v4l2: layer=c29cfa00,layer->video_dev=c29cfaf4
watchdog watchdog: heartbeat 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: tlv320aic3x-hifi <-> davinci-mcbsp mapping ok
ALSA device list:
  #0: DaVinci DM365 EVM
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
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; here are the available partitions:
1f00            7168 mtdblock0  (driver?)
1f01             512 mtdblock1  (driver?)
1f02             512 mtdblock2  (driver?)
1f03            2048 mtdblock3  (driver?)
1f04            4096 mtdblock4  (driver?)
1f05           32768 mtdblock5  (driver?)
1f05           32768 mtdblock5  (driver?)
1f07           32768 mtdblock7  (driver?)
1f08            8192 mtdblock8  (driver?)
1f09            4096 mtdblock9  (driver?)
1f0a            2048 mtdblock10  (driver?)
1f0b           32768 mtdblock11  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c00314fc>] (dump_backtrace+0x0/0x10c) from [<c036e564>] (dump_stack+0x18/0x1c)
 
 r7:00008000 r6:c2ab8000 r5:c0027204 r4:c04a7818
[<c036e54c>] (dump_stack+0x0/0x1c) from [<c036e5c4>] (panic+0x5c/0x190)
[<c036e568>] (panic+0x0/0x190) from [<c0009010>] (mount_block_root+0x1e4/0x22c)
 r3:00000000 r2:c2824000 r1:c2825f58 r0:c040fe5c
[<c0008e2c>] (mount_block_root+0x0/0x22c) from [<c0009104>] (mount_root+0xac/0xd
0)
[<c0009058>] (mount_root+0x0/0xd0) from [<c0009294>] (prepare_namespace+0x16c/0x
1d0)
 r4:c04a7064
[<c0009128>] (prepare_namespace+0x0/0x1d0) from [<c00084b4>] (kernel_init+0x110/
0x150)
 r5:c0026798 r4:c04a7018
[<c00083a4>] (kernel_init+0x0/0x150) from [<c0046a24>] (do_exit+0x0/0x688)
 r5:c00083a4 r4:00000000

NFS配置没有错误,其他PC能挂载共享的文件!



x 出现错误。请重试或与管理员联系。