主题 : NFS无法启动系统,是什么原因?急~ 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3866
精华: 0
发帖: 13
金钱: 110 两
威望: 94 点
综合积分: 26 分
注册时间: 2009-02-13
最后登录: 2017-09-13
楼主  发表于: 2009-02-16 18:45

 NFS无法启动系统,是什么原因?急~

我用的VM+rh,用的桥接。NFS设置应该没有问题,能够mount上,启动时终端现实也能mount上。
我rh的ip是:192.168.1.111,网关是192.168.1.1,xp下ip是:192.168.1.102.
下面是我的终端输出的内容:
NET: Registered protocol family 1
NET: Registered protocol family 17
enable_irq(51) unbalanced from c0173b50
IP-Config: Complete:
      device=eth0, addr=192.168.1.70, mask=255.255.255.0, gw=192.168.1.111,
     host=sbc2440, domain=, nis-domain=arm9.net,
     bootserver=192.168.1.111, rootserver=192.168.1.111, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.111
Looking up port of RPC 100005/1 on 192.168.1.111
VFS: Mounted root (nfs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 144K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
我这两天查资料好像是因为:没有指定好文件系统,好像需要需要更改配置文件,可是还是不是很明白,怎么改啊?求救~~~
级别: 新手上路
UID: 3866
精华: 0
发帖: 13
金钱: 110 两
威望: 94 点
综合积分: 26 分
注册时间: 2009-02-13
最后登录: 2017-09-13
1楼  发表于: 2009-02-16 18:53
我在论坛里也查了,遇到一个问题一样的,版主说是因为:没有devfs,文件系统就无法操作设备,后续的初始化当然就会无法进行。需要在PC的/opt/FriendlyARM/QQ2440/root_nfs /mnt目录下建一个dev目录让devfs挂载到那里。
只要建一个dev目录?我建了好像不行啊??那怎么增加devfs啊?不好意思,本人新手,不太懂。
级别: 新手上路
UID: 3866
精华: 0
发帖: 13
金钱: 110 两
威望: 94 点
综合积分: 26 分
注册时间: 2009-02-13
最后登录: 2017-09-13
2楼  发表于: 2009-02-16 19:12
没人啊~~自己顶吧~
级别: 新手上路
UID: 3831
精华: 0
发帖: 9
金钱: 90 两
威望: 90 点
综合积分: 18 分
注册时间: 2009-02-11
最后登录: 2011-10-15
3楼  发表于: 2009-02-17 00:04
兄弟们~~我的nfs启动连网卡都出问题了,能帮下忙么~~
Supervivi> param set linux_cmd_line "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Change linux command line to "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Supervivi> param save
Found block size = 0x0000c000
Erasing...    ... done
Writing...    ... done
Written 49152 bytes
Saved vivi private data
Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.................................................................................................. done, booting the kernel.
Linux version 2.6.22.6 (root@localhost.localdomain) (gcc version 3.4.5) #24 Thu Feb 5 02:11:19 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 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/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
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: 61628KB available (2804K code, 296K 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
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
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)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
yaffs Feb  5 2009 00:38:04 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: invalid bpp 16
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
dm9000 Ethernet Driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1898 at 0x01da8000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "bootloader"
0x00040000-0x00240000 : "kernel"
0x00250000-0x03ffc000 : "root"
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
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
IP-Config: No network devices available.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "169.254.22.100:/mnt/share" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00        256 mtdblock0 (driver?)
1f01      2048 mtdblock1 (driver?)
1f02      63152 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
好像是网卡没有,但是已经加了驱动了啊,没太明白这块~~~尴尬
级别: 新手上路
UID: 3923
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-02-16
最后登录: 2009-02-17
4楼  发表于: 2009-02-17 11:17
引用第1楼060103010163于2009-02-16 18:53发表的  :
我在论坛里也查了,遇到一个问题一样的,版主说是因为:没有devfs,文件系统就无法操作设备,后续的初始化当然就会无法进行。需要在PC的/opt/FriendlyARM/QQ2440/root_nfs /mnt目录下建一个dev目录让devfs挂载到那里。
只要建一个dev目录?我建了好像不行啊??那怎么增加devfs啊?不好意思,本人新手,不太懂。

每个人的具体问题都不一样, 把完整的串口输出信息贴出来分析吧
级别: 新手上路
UID: 3923
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-02-16
最后登录: 2009-02-17
5楼  发表于: 2009-02-17 11:54
引用第3楼sharp99827于2009-02-17 00:04发表的  :
兄弟们~~我的nfs启动连网卡都出问题了,能帮下忙么~~
Supervivi> param set linux_cmd_line "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Change linux command line to "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Supervivi> param save
Found block size = 0x0000c000
.......

从串口输出的信息看, 内核里有DM9000的网卡驱动, 但似乎是加载并不成功。 你最好找到对应的源代码文件, 在里面加上Debug信息看看
Happy your life, healthy on the road...
级别: 新手上路
UID: 3725
精华: 0
发帖: 25
金钱: 260 两
威望: 260 点
综合积分: 50 分
注册时间: 2009-02-04
最后登录: 2009-05-06
6楼  发表于: 2009-02-17 13:00
引用第3楼sharp99827于2009-02-17 00:04发表的  :
兄弟们~~我的nfs启动连网卡都出问题了,能帮下忙么~~
Supervivi> param set linux_cmd_line "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Change linux command line to "noinitrd root=/dev/nfsnfs root=169.254.22.100:/mnt/share ip=169.254.22.222:192.168.0.1:225.255.255.0 init=/linuxrc console=ttySAC0"
Supervivi> param save
Found block size = 0x0000c000
.......


你的linux command line中,
疑问1:是root=/dev/nfsnfs root=... 还是root=/dev/nfs nfsroot=...?
疑问2:ip=参数格式对不对啊,我查的资料好像不止这么点:ip=<ipaddr>:<serverip>:<gwip>:<netmask>:……。
级别: 新手上路
UID: 3866
精华: 0
发帖: 13
金钱: 110 两
威望: 94 点
综合积分: 26 分
注册时间: 2009-02-13
最后登录: 2017-09-13
7楼  发表于: 2009-02-17 21:59
又查了一些资料,说是要建立devfs设备节点,可是不会建啊~怎么弄~~版主能给讲讲嘛?给个提示也行啊~~
级别: 新手上路
UID: 4080
精华: 0
发帖: 3
金钱: 30 两
威望: 30 点
综合积分: 6 分
注册时间: 2009-02-24
最后登录: 2009-06-27
8楼  发表于: 2009-03-09 15:10
喔,昨天終于搞定了NFS,估計是你的/opt/FriendlyARM/QQ2440/root_nfs引起的,改為/opt/FriendlyARM/QQ2440/root_nfs/root_nfs就好了