CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 10827|回复: 9

Cubietruck nfs启动失败!

[复制链接]
发表于 2014-2-13 22:51:04 | 显示全部楼层 |阅读模式
按照http://linux-sunxi.org/How_to_bo ... 20_over_the_network文档描述,尝试在Cubietruck上通过nfs启动。
问题一:
1.3.4的kernel中没有dtb文件。
2.不使用dtb文件,系统启动出现如下问题。

<6>  #0: sunxi-CODEC  Audio Codec
[   15.958453]   #0: sunxi-CODEC  Audio Codec
<3>VFS: Unable to mount root fs via NFS, trying floppy.
[  111.036629] VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
5d00         7520256 nand  (driver?)
b300         7782400 mmcblk0  driver: mmcblk
  b301         7781376 mmcblk0p1 00000000-0000-0000-0000-000000000000
<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[  111.078930] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0570e90>] (panic+0x90/0x1d8)
[  111.094252] [<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0570e90>] (panic+0x90/0x1d8)
[<c0570e90>] (panic+0x90/0x1d8) from [<c07e8d5c>] (mount_block_root+0x174/0x228)
[  111.109721] [<c0570e90>] (panic+0x90/0x1d8) from [<c07e8d5c>] (mount_block_root+0x174/0x228)
[<c07e8d5c>] (mount_block_root+0x174/0x228) from [<c07e8ff0>] (mount_root+0xf4/0x114)
[  111.125771] [<c07e8d5c>] (mount_block_root+0x174/0x228) from [<c07e8ff0>] (mount_root+0xf4/0x114)
[<c07e8ff0>] (mount_root+0xf4/0x114) from [<c07e9174>] (prepare_namespace+0x164/0x1c4)
[  111.142522] [<c07e8ff0>] (mount_root+0xf4/0x114) from [<c07e9174>] (prepare_namespace+0x164/0x1c4)
[<c07e9174>] (prepare_namespace+0x164/0x1c4) from [<c07e8a14>] (kernel_init+0x1d0/0x214)
[  111.159353] [<c07e9174>] (prepare_namespace+0x164/0x1c4) from [<c07e8a14>] (kernel_init+0x1d0/0x214)
[<c07e8a14>] (kernel_init+0x1d0/0x214) from [<c000f7e4>] (kernel_thread_exit+0x0/0x8)
[  111.176106] [<c07e8a14>] (kernel_init+0x1d0/0x214) from [<c000f7e4>] (kernel_thread_exit+0x0/0x8)
<2>CPU1: stopping
[  111.186684] CPU1: stopping
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0013c10>] (handle_IPI+0x194/0x1c8)
[  111.196942] [<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0013c10>] (handle_IPI+0x194/0x1c8)
[<c0013c10>] (handle_IPI+0x194/0x1c8) from [<c0008558>] (gic_handle_irq+0x50/0x58)
[  111.213073] [<c0013c10>] (handle_IPI+0x194/0x1c8) from [<c0008558>] (gic_handle_irq+0x50/0x58)
[<c0008558>] (gic_handle_irq+0x50/0x58) from [<c000e8c0>] (__irq_svc+0x40/0x70)
[  111.228765] [<c0008558>] (gic_handle_irq+0x50/0x58) from [<c000e8c0>] (__irq_svc+0x40/0x70)
Exception stack(0xef063f88 to 0xef063fd0)
[  111.240879] Exception stack(0xef063f88 to 0xef063fd0)
3f80:                   ffffffed 00000001 107fa000 00000000 ef062000 ef062000
[  111.253009] 3f80:                   ffffffed 00000001 107fa000 00000000 ef062000 ef062000
3fa0: c08897c8 c057cad4 ef062000 410fc074 c08342d0 00000000 031c1849 ef063fd0
[  111.268095] 3fa0: c08897c8 c057cad4 ef062000 410fc074 c08342d0 00000000 031c1849 ef063fd0
3fc0: c000f848 c000f84c 60000013 ffffffff
[  111.280041] 3fc0: c000f848 c000f84c 60000013 ffffffff
[<c000e8c0>] (__irq_svc+0x40/0x70) from [<c000f84c>] (default_idle+0x28/0x30)
[  111.292013] [<c000e8c0>] (__irq_svc+0x40/0x70) from [<c000f84c>] (default_idle+0x28/0x30)
[<c000f84c>] (default_idle+0x28/0x30) from [<c000fb88>] (cpu_idle+0xd0/0x114)
[  111.307123] [<c000f84c>] (default_idle+0x28/0x30) from [<c000fb88>] (cpu_idle+0xd0/0x114)
[<c000fb88>] (cpu_idle+0xd0/0x114) from [<4056d5f4>] (0x4056d5f4)
[  111.321177] [<c000fb88>] (cpu_idle+0xd0/0x114) from [<4056d5f4>] (0x4056d5f4)
<6>[hotplug]: cpu(0) try to kill cpu(1)
[  111.332004] [hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[  115.330852] [hotplug]: try to kill cpu:1 failed!


参数如下:
bootargs=console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.105:/home/cpsoft/cubieboard/rootfs ip=192.168.1.107:255.255.255.0:192.168.1.1:::eth0
bootcmd=tftp 0x43000000 script.bin; tftp 0x48000000 uImage; bootm 0x48000000

已确认板子和server的网络是通的。nfs-server也没问题。

请问是什么情况?

回复

使用道具 举报

 楼主| 发表于 2014-2-15 00:05:33 | 显示全部楼层
光有看的,没有回答的?
回复 支持 反对

使用道具 举报

发表于 2014-4-24 13:49:41 | 显示全部楼层
你好,请问你解决没?  我的CB2 也遇到这样的情况  CB1 可以挂载
回复 支持 反对

使用道具 举报

发表于 2014-6-8 14:37:56 | 显示全部楼层
同样的问题,不知解决了没有?
回复 支持 反对

使用道具 举报

发表于 2014-7-12 01:07:21 | 显示全部楼层
嗨,
我有同样的问题,也解决不了它。
你已经成功了?
谢谢!
回复 支持 反对

使用道具 举报

发表于 2014-7-12 21:45:42 | 显示全部楼层
看看驱动加载了没有,对比A10的驱动和A20的驱动有什么不同
特别这行
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0570e90>] (panic+0x90/0x1d8)
回复 支持 反对

使用道具 举报

发表于 2014-7-18 18:40:20 | 显示全部楼层
Finally it works.

As an idiot, I kept cloning the main branch, because I kept using:

    git clone http://github.com/cubieboard/linux-sunxi.git

However, with that branch i.e. cubie/sunxi-3.4, mounting rootfs via NFS does NOT work.

But, with the branches ct/sunxi-3.4 and cubie/sunxi-3.4.79, NFS rootfs works!
So instead, I needed to use:

     git clone http://github.com/cubieboard/linux-sunxi.git -b ct/sunxi-3.4

一个外国朋友,也是出现上面的问题,现在解决了


回复 支持 反对

使用道具 举报

发表于 2014-7-18 20:38:33 | 显示全部楼层
diracsbracket 发表于 2014-7-12 01:07
嗨,
我有同样的问题,也解决不了它。
你已经成功了?

请看七楼,我的回复
回复 支持 反对

使用道具 举报

发表于 2014-7-18 20:39:02 | 显示全部楼层
xfire 发表于 2014-6-8 14:37
同样的问题,不知解决了没有?

解决了,看我的回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-2-25 22:22:51 | 显示全部楼层
同样的问题,不过我成功了。关键是要将GMAC编译进来。不能以模块的形式加载。
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DCHP=y
CONFIG_ROOT_NFS=y
CONFIG_SUNXI_GMAC=y

CONFIG_SUNXI_GMAC is found in Device Drivers --> Network device support --> *** CAIF transport drivers *** section --> Ethernet driver support --> Sunxi platform 10/100/1000Mbps Ethernet driver
Must be built-in now (i.e. change from <M> to <*>).
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-22 18:56 , Processed in 0.024334 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部