最近在做nfs文件系统移植,出现了问题一直挂载不上去,启动情况如下:StartingkernelUncompressingLinux.
最近在做nfs文件系统移植,出现了问题一直挂载不上去,启动情况如下:
Starting kernel ...
Uncompressing Linux......................................................................................................... done, booting the kernel.
Linux version 2.6.22.6 (root@linux-virtual-machine) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #61 Fri May 4 14:46:07 CST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: Embest EDUKIT-III
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
MM: CPU does not support supersection mapping for 0x19000000000 at 0xe0000000
MM: CPU does not support supersection mapping for 0x55000000000 at 0xf0d00000
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: noinitrd root=/dev/nfs nfsroot=192.168.1.109:/huangjin/rootfs,proto=tcp,nfsvers=3,nolock ip=192.168.1.150:192.168.1.109:192.168.1.1:255.255.255.0 cOnsole=ttySAC0,115200 mem=64M
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61440KB available (3012K code, 339K data, 116K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
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: 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
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
yaffs May 4 2012 14:43:57 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 80x30
fb0: s3c2410fb frame buffer device
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO map 0x50000000 mem 0xf0400000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO map 0x50004000 mem 0xf0404000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO map 0x50008000 mem 0xf04080S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 760 at 0x00be0000
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00060000 : "param"
0x00060000-0x00560000 : "kernel"
0x00560000-0x02d60000 : "rootfs"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
usb 1-2: new full speed USB device using s3c2410-ohci and address 2
usb 1-2: device descriptor read/64, error -62
eth0: using half-duplex 10Base-T (RJ-45)
usb 1-2: device descriptor read/64, error -62
usb 1-2: new full speed USB device using s3c2410-ohci and address 3
usb 1-2: device descriptor read/64, error -62
usb 1-2: device descriptor read/64, error -62
usb 1-2: new full speed USB device using s3c2410-ohci and address 4
IP-Config: Complete:
device=eth0, addr=192.168.1.150, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.150, domain=, nis-domain=(none),
bootserver=192.168.1.109, rootserver=192.168.1.109, rootpath=
Looking up port of RPC 100003/3 on 192.168.1.109
Looking up port of RPC 100005/3 on 192.168.1.109
call_verify: unknown auth error: 7
Root-NFS: Server returned error -5 while mounting /huangjin/rootfs
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 256 mtdblock0 (driver?)
1f01 128 mtdblock1 (driver?)
1f02 5120 mtdblock2 (driver?)
1f03 40960 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
4 个解决方案
我的启动参数是:
bootargs=noinitrd root=/dev/nfs nfsroot=192.168.1.109:/huangjin/rootfs,proto=tcp,nfsvers=3,nolock ip=192.168.1.150:192.168.1.109:192.168.1.1:255.255.255.0 cOnsole=ttySAC0,115200 mem=64M
我的nfs网络配置没有问题,本机上能够挂载nfs文件系统的,防火墙,360之类的能关的都关了……现在十分纠结这个问题啊,求助大下帮忙……
1、看你的export配置 可能限制了客户端ip
2、内核启动参数里增加 rootdelay=10
3、实在不行,不必一步到位搞nfs启动,先用其他文件系统起,然后尝试挂nfs,
排除其他障碍后再试nfs boot
host=192.168.1.150, domain=, nis-domain=(none),
bootserver=192.168.1.109, rootserver=192.168.1.109, rootpath=
Looking up port of RPC 100003/3 on 192.168.1.109
Looking up port of RPC 100005/3 on 192.168.1.109
call_verify: unknown auth error: 7
Root-NFS: Server returned error -5 while mounting /huangjin/rootfs
把/ect/export 文件中的NFS client的限制放大、不要限制IP 试一试
如果可能的话,把NFS SERVER 的 Iptables service 关掉试试