打印

arm移植linux我遇见到的2种错误

[复制链接]
1837|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
arm移植linux我遇见到的2种错误(平台是mini2440,vivi,redhat9...)
1:Uncompressing Linux.............................................................
........................................................ done, booting the kernel
接着就不动了像死机了一样。

解决方案:在vivi中修改mach_type为362就会改正这个错误。
2:Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

这个错误我不知道怎么解决,那位知道的告诉声啊。谢谢!

下面2是我移植时的出来的整个信息
linux移植-090720.rar (3.46 KB)
linux移植-090721.rar (3.04 KB)

相关帖子

沙发
xuefeng_junjie| | 2009-8-16 16:28 | 只看该作者
你没有指定控制台吧。我也见过这种问题

使用特权

评论回复
板凳
szembed| | 2009-8-16 17:15 | 只看该作者
this question is very diffcuit  to ....


Maybe kernel download sdram address is not right.

使用特权

评论回复
地板
shopping.w|  楼主 | 2009-8-16 20:28 | 只看该作者
本帖最后由 shopping.w 于 2009-8-16 20:31 编辑
this question is very diffcuit  to ....


Maybe kernel download sdram address is not right.
szembed 发表于 2009-8-16 17:15


我是参考别人的整的,好像没有指定控制台--记起来了,不过2.6.28后的好像是自动的就指定了的啊,其中参考的文档只有下面的提到过这点


相关文档是
Linux2.6.29.1在mini2440的移植.pdf (1.04 MB)

使用特权

评论回复
5
tonylulu168| | 2009-8-17 11:06 | 只看该作者
本帖最后由 tonylulu168 于 2009-8-17 13:46 编辑
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.



关于warning 查看内核源码可见
if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
                printk(KERN_WARNING "Warning: unable to open an initial console.\n");
因此你要在文件系统上创建 /dev/console
mknod -m 600 /dev/console c 5 1
你的文件系统上的linuxrc可能不存在或权限问题,你最好删除它,自己写linuxrc.
其实启动后你还有很多工作,慢慢来

使用特权

评论回复
6
shopping.w|  楼主 | 2009-8-17 12:47 | 只看该作者
搞这个断断续续了整了快一年了,唉,完全一个人自己摸索真....没有那天赋吧

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

86

主题

475

帖子

2

粉丝