Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4858
  • 博文数量: 1
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 22
  • 用 户 组: 普通用户
  • 注册时间: 2014-07-24 16:40
文章分类

全部博文(1)

文章存档

2014年(1)

我的朋友

分类: 嵌入式

2014-09-15 21:23:11

  1. Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
  2. 0x000000000000-0x000000100000 : "Boot"
  3. 0x000000120000-0x000000520000 : "Kernel"
  4. 0x000000520000-0x000004000000 : "yaffs2"
  5. ……
  6. ……
  7. drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
  8. Root-NFS: No NFS server available, giving up.
  9. VFS: Unable to mount root fs via NFS, trying floppy.
  10. VFS: Cannot open root device "hda1" or unknown-block(2,0)
  11. Please append a correct "root=" boot option; here are the available partitions:
  12. 1f00 1024 mtdblock0 (driver?)
  13. 1f01 4096 mtdblock1 (driver?)
  14. 1f02 60288 mtdblock2 (driver?)
  15. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
  16. [] (unwind_backtrace+0x0/0xdc) from [] (panic+0x40/0x110)
  17. [] (panic+0x40/0x110) from [] (mount_block_root+0x1d0/0x210)
  18. [] (mount_block_root+0x1d0/0x210) from [] (prepare_namespac)
  19. [] (prepare_namespace+0x164/0x1bc) from [] (kernel_init+0xd)
  20. [] (kernel_init+0xd4/0x108) from [] (kernel_thread_exit+0x0)


是uboot版本问题。

从NAND启动参数

setenv bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0    <设置root的存储设备>

setenv bootcmd "nand read 0x30000000 0x60000 0x2300000; bootm 0x30000000" <设置kernel的起始地址>

 

设置YAFFS启动,引导参数:

setenv bootargs noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0

 

设置NFS启动,引导参数:

setenv bootargs console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.201:/home/root/root_fs/fs_mini ip=192.168.1.227:192.168.1.201:192.168.1.201:255.255.255.0:sbc2440.arm9.net:eth0:off

 






















阅读(719) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~