当前位置: 技术问答>linux和unix
nfs根文件系统启动Linux问题
来源: 互联网 发布时间:2017-01-16
本文导语: 设置后启动不了 0x00000000-0x00040000 : "boot" 0x00040000-0x00120000 : "uImage" 0x00120000-0x00f00000 : "rootfs" 0x00f00000-0x01000000 : "config" NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP establis...
设置后启动不了
0x00000000-0x00040000 : "boot"
0x00040000-0x00120000 : "uImage"
0x00120000-0x00f00000 : "rootfs"
0x00f00000-0x01000000 : "config"
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
平台为海思3512
uboot环境变量设置为
setenv bootargs mmz=sdram,1,0x60cM, 20M mem=128M root=/dev/nfs nfsroot=192.168.13.253:/source/rootfs console=ttyAMA0,115200 mtdparts=phys_mapped_flash:256k(boot),896k(uImage),14208k(rootfs),1M(config) pcimod=host
0x00000000-0x00040000 : "boot"
0x00040000-0x00120000 : "uImage"
0x00120000-0x00f00000 : "rootfs"
0x00f00000-0x01000000 : "config"
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
TCP bic registered
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
平台为海思3512
uboot环境变量设置为
setenv bootargs mmz=sdram,1,0x60cM, 20M mem=128M root=/dev/nfs nfsroot=192.168.13.253:/source/rootfs console=ttyAMA0,115200 mtdparts=phys_mapped_flash:256k(boot),896k(uImage),14208k(rootfs),1M(config) pcimod=host
|
bootargs参数不对, 要把本机的IP地址,子网掩码加上,
例如:
#setenv bootargs 'mmz=sdram,1,0x60cM, 20M mem=128M root=/dev/nfs nfsroot=192.168.13.253:/source/rootfs ip=192.168.13.2:192.168.13.253::255.255.255.0 console=ttyAMA0,115200'
#saveenv
#reset
或者
#boot
例如:
#setenv bootargs 'mmz=sdram,1,0x60cM, 20M mem=128M root=/dev/nfs nfsroot=192.168.13.253:/source/rootfs ip=192.168.13.2:192.168.13.253::255.255.255.0 console=ttyAMA0,115200'
#saveenv
#reset
或者
#boot
|
原因有如下:
1. 重启192.168.13.253上的nfs服务。
2. 检查板子和192.168.13.253之间的网络是否通畅。
3. 重新设置bootargs
给你个参考“setenv bootargs "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.3.189:/tftpboot/pb9x ip=192.168.3.31"”
1. 重启192.168.13.253上的nfs服务。
2. 检查板子和192.168.13.253之间的网络是否通畅。
3. 重新设置bootargs
给你个参考“setenv bootargs "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.3.189:/tftpboot/pb9x ip=192.168.3.31"”
|
启动参数对不?
|
或者NFS服务没有配置对.