免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 995 | 回复: 0
打印 上一主题 下一主题

制作rootfs问题记录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-13 20:18 |只看该作者 |倒序浏览
问题1, 使用jffs2文件系统:
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "fonts" (ino #13) of dir ino #4 appears to be a hard link
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 304k freed
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.

原因: flash没有erase彻底.


问题2, 使用cramfs时出错:

VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 304k freed
Error -3 while decompressing!
804878c4(1884)->81200000(16384)
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

原因: 没有仔细看 mkfs.cramfs 的手册, 需要指定-b参数, 大小与PAGE_SIZE一样 (查看.config文件 CONFIG_PAGE_SIZE_16KB=y).


问题3 :
Kernel panic - not syncing: Attempted to kill init!

原因: 应该是/etc/fstab 之类的文件没有,重做文件系统后OK


问题4, 一直提示找不到/dev/tty2-4, 按下[Enter]后死机:
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 304k freed
init started: BusyBox v1.12.1 (2008-10-13 13:37:42 CST)
starting pid 696, tty '': '/etc/init.d/rcS'
cannot run '/etc/init.d/rcS': No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty4: No such file or directory
process '-/bin/sh' (pid 698) exited. Scheduling for restart.
process '-/bin/sh' (pid 699) exited. Scheduling for restart.





本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75705/showart_1296291.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP