当前位置: 技术问答>linux和unix
挂载NFS根文件系统出错
来源: 互联网 发布时间:2016-09-18
本文导语: linux宿主机端已经配置OK exports设置都是rw的,网段也是统一的 在linux主机上测试成功,mount -t nfs 。。。。 在目标上挂载不成功。启动信息如下: inux version 2.6.24.2-uc0 (root@localhost.localdomain) (gcc version 3.4.4) #192 W...
linux宿主机端已经配置OK
exports设置都是rw的,网段也是统一的
在linux主机上测试成功,mount -t nfs 。。。。
在目标上挂载不成功。启动信息如下:
inux version 2.6.24.2-uc0 (root@localhost.localdomain) (gcc version 3.4.4) #192 Wed Aug 4 17:52:43 CST 2010
CPU: NXP-LPC2468 [24680000] revision 0 (ARMvundefined/unknown), cr=a020f1e0
Machine: Olimex LPC-2478-STK
Warning: bad configuration page, trying to continue
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,19200N8 mem=32M root=/dev/nfs rw nfsroot=192.168.0.8:/opt/work/nfsroot -o nolock nfsaddrs=192.168.0.9:192.168.0.8:192.168.0.252:255.255.255.0:LPC22XX:eth0:on
PID hash table entries: 128 (order: 7, 512 bytes)
LPC22XX Clocking Fin=12000000Hz Fcco=288000000Hz M=11 N=0
Fcclk=57600000 PCLKSEL=55515555 11555455
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30304KB available (1896K code, 182K data, 92K init)
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
lpc22xx_set_periph(P0.2,1,0) => already configured
lpc22xx_set_periph e002c000=00000050 e002c040=00000000
lpc22xx_set_periph(P0.3,1,0) => already configured
lpc22xx_set_periph e002c000=00000050 e002c040=00000000
lpc22xx_set_periph(P3.16,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.17,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.18,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.19,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.20,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.21,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.22,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.30,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
io scheduler noop registered (default)
lpc2478fb_alloc_videomem - enter
fb_log_addres = 0xa1d10000
fb_phys_address = 0xa1d10000
fb_size = 40960
lpc2478fb_alloc_videomem - exit
fb0: lpc2478 framebuffer initialized
0xffe08100 = 0x80680
lpc2478_fbmem:
0xe01fc1b8 = 0x5
0xffe10000 = 0x404024c
0xffe10004 = 0xef
0xffe10008 = 0x4f0304
0xffe1000c = 0x0
0xffe10010 = 0xa1d10000
0xffe10014 = 0xa1d10000
0xffe10018 = 0xc15
0xffe1001c = 0x0
0xffe10020 = 0xc
0xffe10024 = 0x0
0xffe10028 = 0x0
0xffe1002c = 0xa1d100f8
0xffe10030 = 0xa1d0fff8
lpc2xxx_can init
CANAFMR = 00000003
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe000c000 (irq = 6) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xe0010000 (irq = 7) is a 16550A
nbd: registered device at major 43
lpc22xx_eth_probe
lpc22xx_eth_setup
get_mac_address ethaddr=00:de:ad:b0:05:02
eth0: Link down.
eth0: LPC22XX ethernet at 0xffe00000 int=21 10-FullDuplex (00:de:ad:b0:05:02)
LPC24XX-MTD probing 16bit FLASH
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: Link down.
IP-Config: Complete:
device=eth0, addr=192.168.0.9, mask=255.255.255.0, gw=192.168.0.252,
host=LPC22XX, domain=, nis-domain=(none),
bootserver=192.168.0.8, rootserver=192.168.0.8, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.8
rpcbind: server 192.168.0.8 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.0.8
rpcbind: server 192.168.0.8 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.0.8 not responding, timed out
Root-NFS: Server returned error -5 while mounting /opt/work/nfsroot
VFS: Unable to mount root fs via NFS, trying floppy.
Chow-> imajor=2 MTD_MAJOR=31
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
内核配置该配的都配了,问题大概会出现在哪里啊?
exports设置都是rw的,网段也是统一的
在linux主机上测试成功,mount -t nfs 。。。。
在目标上挂载不成功。启动信息如下:
inux version 2.6.24.2-uc0 (root@localhost.localdomain) (gcc version 3.4.4) #192 Wed Aug 4 17:52:43 CST 2010
CPU: NXP-LPC2468 [24680000] revision 0 (ARMvundefined/unknown), cr=a020f1e0
Machine: Olimex LPC-2478-STK
Warning: bad configuration page, trying to continue
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,19200N8 mem=32M root=/dev/nfs rw nfsroot=192.168.0.8:/opt/work/nfsroot -o nolock nfsaddrs=192.168.0.9:192.168.0.8:192.168.0.252:255.255.255.0:LPC22XX:eth0:on
PID hash table entries: 128 (order: 7, 512 bytes)
LPC22XX Clocking Fin=12000000Hz Fcco=288000000Hz M=11 N=0
Fcclk=57600000 PCLKSEL=55515555 11555455
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30304KB available (1896K code, 182K data, 92K init)
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
lpc22xx_set_periph(P0.2,1,0) => already configured
lpc22xx_set_periph e002c000=00000050 e002c040=00000000
lpc22xx_set_periph(P0.3,1,0) => already configured
lpc22xx_set_periph e002c000=00000050 e002c040=00000000
lpc22xx_set_periph(P3.16,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.17,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.18,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.19,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.20,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.21,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.22,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.30,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
io scheduler noop registered (default)
lpc2478fb_alloc_videomem - enter
fb_log_addres = 0xa1d10000
fb_phys_address = 0xa1d10000
fb_size = 40960
lpc2478fb_alloc_videomem - exit
fb0: lpc2478 framebuffer initialized
0xffe08100 = 0x80680
lpc2478_fbmem:
0xe01fc1b8 = 0x5
0xffe10000 = 0x404024c
0xffe10004 = 0xef
0xffe10008 = 0x4f0304
0xffe1000c = 0x0
0xffe10010 = 0xa1d10000
0xffe10014 = 0xa1d10000
0xffe10018 = 0xc15
0xffe1001c = 0x0
0xffe10020 = 0xc
0xffe10024 = 0x0
0xffe10028 = 0x0
0xffe1002c = 0xa1d100f8
0xffe10030 = 0xa1d0fff8
lpc2xxx_can init
CANAFMR = 00000003
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe000c000 (irq = 6) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xe0010000 (irq = 7) is a 16550A
nbd: registered device at major 43
lpc22xx_eth_probe
lpc22xx_eth_setup
get_mac_address ethaddr=00:de:ad:b0:05:02
eth0: Link down.
eth0: LPC22XX ethernet at 0xffe00000 int=21 10-FullDuplex (00:de:ad:b0:05:02)
LPC24XX-MTD probing 16bit FLASH
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: Link down.
IP-Config: Complete:
device=eth0, addr=192.168.0.9, mask=255.255.255.0, gw=192.168.0.252,
host=LPC22XX, domain=, nis-domain=(none),
bootserver=192.168.0.8, rootserver=192.168.0.8, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.8
rpcbind: server 192.168.0.8 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.0.8
rpcbind: server 192.168.0.8 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.0.8 not responding, timed out
Root-NFS: Server returned error -5 while mounting /opt/work/nfsroot
VFS: Unable to mount root fs via NFS, trying floppy.
Chow-> imajor=2 MTD_MAJOR=31
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
内核配置该配的都配了,问题大概会出现在哪里啊?
|
nfsaddrs=192.168.0.9:192.168.0.8:192.168.0.252:255.255.255.0:LPC22XX:eth0:on
--------------------------------
改成
ip=192.168.0.9:192.168.0.8:192.168.0.252:255.255.255.0:LPC22XX:eth0:on
--------------------------------
改成
ip=192.168.0.9:192.168.0.8:192.168.0.252:255.255.255.0:LPC22XX:eth0:on
|
lpc22xx_eth_probe
lpc22xx_eth_setup
get_mac_address ethaddr=00:de:ad:b0:05:02
eth0: Link down.
eth0: LPC22XX ethernet at 0xffe00000 int=21 10-FullDuplex (00:de:ad:b0:05:02)
LPC24XX-MTD probing 16bit FLASH
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: Link down.
IP-Config: Complete:
device=eth0, addr=192.168.0.9, mask=255.255.255.0, gw=192.168.0.252,
host=LPC22XX, domain=, nis-domain=(none),
bootserver=192.168.0.8, rootserver=192.168.0.8, rootpath=
1. 首先检查网线和开发板的连接是否结好,注意串口提示:eth0: Link down.
2. 试试楼上说的,改Kernel command line.
lpc22xx_eth_setup
get_mac_address ethaddr=00:de:ad:b0:05:02
eth0: Link down.
eth0: LPC22XX ethernet at 0xffe00000 int=21 10-FullDuplex (00:de:ad:b0:05:02)
LPC24XX-MTD probing 16bit FLASH
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
eth0: Link down.
IP-Config: Complete:
device=eth0, addr=192.168.0.9, mask=255.255.255.0, gw=192.168.0.252,
host=LPC22XX, domain=, nis-domain=(none),
bootserver=192.168.0.8, rootserver=192.168.0.8, rootpath=
1. 首先检查网线和开发板的连接是否结好,注意串口提示:eth0: Link down.
2. 试试楼上说的,改Kernel command line.