主题 : 不能通过nfs启动linux系统,请求帮忙??? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 102
精华: 0
发帖: 2
金钱: 20 两
威望: 2 点
综合积分: 4 分
注册时间: 2008-02-16
最后登录: 2008-02-17
楼主  发表于: 2008-02-17 15:13

 不能通过nfs启动linux系统,请求帮忙???

我用ubuntu6.06 配置好了nfs主机,按照用户手册也测试了可以挂在/opt/FriendlyARM/qq2440/root_fs 到本地的/mnt目录

从nandflash 启动supervivi:
设置命令行参数:(我的主机ip:192.168.1.100 gateway 也是192.168.1.100)
param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt/FriendlyARM/qq2440/root_nfs ip=192.168.1.70:192.168.1.100:192.168.1.100:255.255.255.0:QQ2440V3.arm9.net:eth0:off"
然后 boot
Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
Warning: this binary is not compressed linux kernel image
zImage magic = 0xffffffff
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt/FriendlyARM/qq2440/root_nfs ip=192.168.1.70:192.168.1.100:192.168.1.100:255.255.255.0:sbc2440.arm9.net:eth0:off"
MACH_TYPE = 782
NOW, Booting Linux......



*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-02-17 18:27
引用楼主subert于2008-02-17 15:13发表的 不能通过nfs启动linux系统,请求帮忙??? :
我用ubuntu6.06 配置好了nfs主机,按照用户手册也测试了可以挂在/opt/FriendlyARM/qq2440/root_fs 到本地的/mnt目录

从nandflash 启动supervivi:
设置命令行参数:(我的主机ip:192.168.1.100 gateway 也是192.168.1.100)
param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt/FriendlyARM/qq2440/root_nfs ip=192.168.1.70:192.168.1.100:192.168.1.100:255.255.255.0:QQ2440V3.arm9.net:eth0:off"
.......

从启动Log看,NAND Flash里面没有一个kernel image。
NFS是用来通过网络挂载rootfs的,不是用来启动Linux的。Linux启动需要一个Kernel image,目前还只能用烧在NAND Flash里面的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 102
精华: 0
发帖: 2
金钱: 20 两
威望: 2 点
综合积分: 4 分
注册时间: 2008-02-16
最后登录: 2008-02-17
2楼  发表于: 2008-02-17 21:40
确实如你说的,nand flash里没有kernel,我也怀疑是这个原因,后来下载kernel,配置好nfs服务,设置好启动参数可以启动内核,并成功挂载根文件系统了。

觉得他们给的supervivi在linux开发平台下更新内核,bootloader不是特别好用, 也没有提供这个平台下更新系统的工具,或者usb驱动。 很多都是在windows下更新的。

比较郁闷, 有没有好的建议,让linux下开发更方便点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2008-02-17 22:13
关于Bootloader,我正在移植基于OpenMoko的U-Boot到QQ2440上.
http://www.aiothome.com/bbs/read.php?tid=125&fpage=2

目前已经实现的功能包括(参考http://wiki.openmoko.org/wiki/U-boot
- NAND flash boot
- NAND Flash读写
- 通过DFU/SD card 实现Boot Loader/Kernel/Rootfs 更新

代码补丁SVN Repository
https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/target/u-boot/

对于QQ2440上Bootloader和Kernel的开发,你可以直接发mail跟我讨论ling_kasim@yahoo.cn
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."