天嵌 ARM开发社区

 找回密码
 注册
查看: 1189|回复: 1

移植韦东山2.6.26内核出现问题求解

[复制链接]
thjym 发表于 2013-8-5 16:18:18 | 显示全部楼层 |阅读模式
  1. yaffs: dev is 32505858 name is "mtdblock2"
  2. yaffs: passed flags ""
  3. yaffs: Attempting MTD mount on 31.2, "mtdblock2"
  4. yaffs: auto selecting yaffs2
  5. VFS: Mounted root (yaffs filesystem).
  6. Freeing init memory: 136K
  7. Warning: unable to open an initial console.
  8. Failed to execute /linuxrc.  Attempting defaults...
  9. Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
复制代码
,这样看起来是没正确挂载根文件系统。提示是没初始化平台,其实那两个设备已经写入了根文件系统里了。大家看看这个分区
  1. Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
  2. 0x00000000-0x00040000 : "bootloader"
  3. 0x00040000-0x00060000 : "params"
  4. 0x00060000-0x00260000 : "kernel"
  5. 0x00260000-0x10000000 : "root"
复制代码
再看看这个启动命令
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
root =块2.我想是不是这个原因呢?还是其它的?请教大家谢谢!
TQ-ZQL 发表于 2013-8-6 09:44:52 | 显示全部楼层
本帖最后由 TQ-ZQL 于 2013-8-6 09:51 编辑

root=/dev/mtdblock2,与你的分区很明显是不匹配的,内核分区,uboot分区,还有就是这个传递的参数必须是要一致的,不然就会报错。还有注意使用与编译kernel相同的交叉编译器来编译busybox最好是一样的
回复

使用道具 举报

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

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-5-6 20:31 , Processed in 2.028677 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表