[ 109.925015] VFS: Unable to mount root fs via NFS, trying floppy.
[ 109.931869] VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
[ 109.939215] Please append a correct "root=" boot option; here are the available partitions:
[ 109.947607] b300 15558144 mmcblk0
[ 109.947614] driver: mmcblk
[ 109.954439] b301 32768 mmcblk0p1 d85b0d94-01
[ 109.954441]
[ 109.961244] b302 15523840 mmcblk0p2 d85b0d94-02
[ 109.961246]
[ 109.968066] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 109.976332] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.14-licheepi-zero+ #1
[ 109.983637] Hardware name: Allwinner sun8i Family
[ 109.988380] [<c010e894>] (unwind_backtrace) from [<c010b548>] (show_stack+0x10/0x14)
[ 109.996135] [<c010b548>] (show_stack) from [<c06732e8>] (dump_stack+0x88/0x9c)
[ 110.003367] [<c06732e8>] (dump_stack) from [<c011b848>] (panic+0xdc/0x248)
[ 110.010249] [<c011b848>] (panic) from [<c09011dc>] (mount_block_root+0x18c/0x260)
[ 110.017736] [<c09011dc>] (mount_block_root) from [<c09013d0>] (mount_root+0x120/0x128)
[ 110.025655] [<c09013d0>] (mount_root) from [<c0901528>] (prepare_namespace+0x150/0x194)
[ 110.033661] [<c0901528>] (prepare_namespace) from [<c0900e28>] (kernel_init_freeable+0x1c4/0x1d4)
[ 110.042537] [<c0900e28>] (kernel_init_freeable) from [<c06854a0>] (kernel_init+0x8/0x108)
[ 110.050719] [<c06854a0>] (kernel_init) from [<c0107868>] (ret_from_fork+0x14/0x2c)
[ 110.058301] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
我的bootargs
setenv bootargs 'console=tty1 console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.3.3:/home/qiushan/linux/nfs/ubuntu_rootfs ip=192.168.3.4:192.168.3.3:192.168.3.1:255.255.255.0::eth0:off'
离线
TF进入系统之后确认以下问题:
1. 网卡驱动是否正常.
2. 是否能ping通nfs服务器ip
3. nfs 驱动是否配置进系统
4. 是否能手动挂载 nfs 的共享目录到 V3s
晕哥,第三步不太明白,我把根文件系统放在nfs目录里了,试过在uboot下可以使用nfs命令下载这个目录下的文件,编译好的文件系统还需要改么
离线
也就是 nfs 服务器是正常的对吧?
3. 就是 kernel / filesystem / nfs 有没有配置,
如果u-boot可以连接nfs服务器, 那确保V3s Linux系统能使用你的nfs文件系统.
kernel是不是也需要做好以太网的驱动。。。我没改kernel,只把nfs client支持给打开了
离线
如果你只是加载nfs rootfs, 那么u-boot不需要驱动ethernet,也不需要支持nfs.
反而kernel 你就必须开启nfs文件系统和ethernet支持。
原来是这样,谢谢晕哥
离线