1.IP-Config: Complete:
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option; here are the available partitions:
1f00
1024 mtdblock0 (driver?)
1f01
4096 mtdblock1 (driver?)
1f02
257024 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
解答:编译内核时:
[*] Root file system on NFS 必须选上
更改nfs要重启nfs服务:
使用showmount -e查看挂载的nfs目录是否正确!
2.nfs: server 192.168.0.104 not responding, still trying
nfs: server 192.168.0.104 OK
nfs: server 192.168.0.104 OK
根据linux doc下的nfsroot.txt:
nfsroot=[:][,]
The default address is determined by the `ip' parameter
(see below). This parameter allows the use of different
servers for IP autoconfiguration and NFS.
If there is a "%s" token in the string, it will be
replaced by the ASCII-representation of the client's
IP address.
The following defaults are used:
port = as given by server portmap daemon
rsize = 4096
wsize = 4096
timeo = 7
retrans = 3
acregmin = 3
acregmax = 60
acdirmin = 30
acdirmax = 60
flags = hard, nointr, noposix, cto, ac
设置ubboot参数bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/csb/code/rootfs,rsize=512,wsize=512 ip=192.168.1.110:192.168.1.101:192.168.1.1:255.255.255.0:xxx:eth0:off
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 host:/path/to/export /client/to/mount
方法不成功!
目前所知道只有使用交叉线