at91sam9g45 遇到的问题(不断更新)

交叉编译工具链:arm-none-linux-gnueabi-gcc

内核版本: 2.6.30

u-boot版本:1.3.4

 

 

1./a.out

 

-/bin/sh: a.out : not found

 

原因:没有将交叉编译工具链中的C库拷贝到根文件系统下。

 

光盘自带的交叉工具编译链是arm-none-linux-gnueabi,它的C库所在的目录是:

 

/usr/local/arm-2007q1/arm-none-linux-gnueabi/libc/lib

 

将其中的库拷贝到/source/rootfs/lib目录下。

 

 

 

2、分析uboot应从:/home/linux/arm/at91sam9g45/Embest_SAM9G45/u-boot-1.3.4/cpu/arm926ejs/start.S开始

 

 

3 NFS挂在失败

VFS: Cannot open root device "nfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            4096 mtdblock0 (driver?)
1f01          258048 mtdblock1 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c002e8a8>] (unwind_backtrace+0x0/0xdc) from [<c003f608>] (panic+0x58/0x11c)
[<c003f608>] (panic+0x58/0x11c) from [<c0008e68>] (mount_block_root+0x24c/0x29c)
[<c0008e68>] (mount_block_root+0x24c/0x29c) from [<c0009084>] (prepare_namespace+0x160/0x1b8)
[<c0009084>] (prepare_namespace+0x160/0x1b8) from [<c000870c>] (kernel_init+0xb0/0xdc)
[<c000870c>] (kernel_init+0xb0/0xdc) from [<c0042318>] (do_exit+0x0/0x648)
[<c0042318>] (do_exit+0x0/0x648) from [<00000003>] (0x3)

原因:  在内核配置时候文件系统中选中Root file system on NFS

参考:http://blog.csdn.net/weiqing1981127/article/details/9249409

 解决方法:

 

然后重新编译内核。

posted @ 2013-06-07 14:53  摩斯电码  阅读(660)  评论(0编辑  收藏  举报