cpsoft 发表于 2014-2-13 22:51:04

Cubietruck nfs启动失败!

按照http://linux-sunxi.org/How_to_boot_the_A10_or_A20_over_the_network文档描述,尝试在Cubietruck上通过nfs启动。
问题一:
1.3.4的kernel中没有dtb文件。
2.不使用dtb文件,系统启动出现如下问题。

<6>#0: sunxi-CODECAudio Codec
[   15.958453]   #0: sunxi-CODECAudio Codec
<3>VFS: Unable to mount root fs via NFS, trying floppy.
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 mmcblk0driver: 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)
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)
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0570e90>] (panic+0x90/0x1d8)
[<c0570e90>] (panic+0x90/0x1d8) from [<c07e8d5c>] (mount_block_root+0x174/0x228)
[<c0570e90>] (panic+0x90/0x1d8) from [<c07e8d5c>] (mount_block_root+0x174/0x228)
[<c07e8d5c>] (mount_block_root+0x174/0x228) from [<c07e8ff0>] (mount_root+0xf4/0x114)
[<c07e8d5c>] (mount_block_root+0x174/0x228) from [<c07e8ff0>] (mount_root+0xf4/0x114)
[<c07e8ff0>] (mount_root+0xf4/0x114) from [<c07e9174>] (prepare_namespace+0x164/0x1c4)
[<c07e8ff0>] (mount_root+0xf4/0x114) from [<c07e9174>] (prepare_namespace+0x164/0x1c4)
[<c07e9174>] (prepare_namespace+0x164/0x1c4) from [<c07e8a14>] (kernel_init+0x1d0/0x214)
[<c07e9174>] (prepare_namespace+0x164/0x1c4) from [<c07e8a14>] (kernel_init+0x1d0/0x214)
[<c07e8a14>] (kernel_init+0x1d0/0x214) from [<c000f7e4>] (kernel_thread_exit+0x0/0x8)
[<c07e8a14>] (kernel_init+0x1d0/0x214) from [<c000f7e4>] (kernel_thread_exit+0x0/0x8)
<2>CPU1: stopping
CPU1: stopping
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0013c10>] (handle_IPI+0x194/0x1c8)
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0013c10>] (handle_IPI+0x194/0x1c8)
[<c0013c10>] (handle_IPI+0x194/0x1c8) from [<c0008558>] (gic_handle_irq+0x50/0x58)
[<c0013c10>] (handle_IPI+0x194/0x1c8) from [<c0008558>] (gic_handle_irq+0x50/0x58)
[<c0008558>] (gic_handle_irq+0x50/0x58) from [<c000e8c0>] (__irq_svc+0x40/0x70)
[<c0008558>] (gic_handle_irq+0x50/0x58) from [<c000e8c0>] (__irq_svc+0x40/0x70)
Exception stack(0xef063f88 to 0xef063fd0)
Exception stack(0xef063f88 to 0xef063fd0)
3f80:                   ffffffed 00000001 107fa000 00000000 ef062000 ef062000
3f80:                   ffffffed 00000001 107fa000 00000000 ef062000 ef062000
3fa0: c08897c8 c057cad4 ef062000 410fc074 c08342d0 00000000 031c1849 ef063fd0
3fa0: c08897c8 c057cad4 ef062000 410fc074 c08342d0 00000000 031c1849 ef063fd0
3fc0: c000f848 c000f84c 60000013 ffffffff
3fc0: c000f848 c000f84c 60000013 ffffffff
[<c000e8c0>] (__irq_svc+0x40/0x70) from [<c000f84c>] (default_idle+0x28/0x30)
[<c000e8c0>] (__irq_svc+0x40/0x70) from [<c000f84c>] (default_idle+0x28/0x30)
[<c000f84c>] (default_idle+0x28/0x30) from [<c000fb88>] (cpu_idle+0xd0/0x114)
[<c000f84c>] (default_idle+0x28/0x30) from [<c000fb88>] (cpu_idle+0xd0/0x114)
[<c000fb88>] (cpu_idle+0xd0/0x114) from [<4056d5f4>] (0x4056d5f4)
[<c000fb88>] (cpu_idle+0xd0/0x114) from [<4056d5f4>] (0x4056d5f4)
<6>: cpu(0) try to kill cpu(1)
: cpu(0) try to kill cpu(1)
<3>: try to kill cpu:1 failed!
: 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也没问题。

请问是什么情况?

cpsoft 发表于 2014-2-15 00:05:33

:@光有看的,没有回答的?

yaogen11 发表于 2014-4-24 13:49:41

你好,请问你解决没?我的CB2 也遇到这样的情况CB1 可以挂载

xfire 发表于 2014-6-8 14:37:56

同样的问题,不知解决了没有?

diracsbracket 发表于 2014-7-12 01:07:21

嗨,
我有同样的问题,也解决不了它。
你已经成功了?
谢谢!

lin 发表于 2014-7-12 21:45:42

看看驱动加载了没有,对比A10的驱动和A20的驱动有什么不同
特别这行
[<c00150c0>] (unwind_backtrace+0x0/0x138) from [<c0570e90>] (panic+0x90/0x1d8)

darson 发表于 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

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


darson 发表于 2014-7-18 20:38:33

diracsbracket 发表于 2014-7-12 01:07 static/image/common/back.gif
嗨,
我有同样的问题,也解决不了它。
你已经成功了?


请看七楼,我的回复

darson 发表于 2014-7-18 20:39:02

xfire 发表于 2014-6-8 14:37 static/image/common/back.gif
同样的问题,不知解决了没有?

解决了,看我的回复

cpsoft 发表于 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 <*>).
页: [1]
查看完整版本: Cubietruck nfs启动失败!