制作rootfs问题记录

制作rootfs问题记录

http://tech.ddvip.com   2008年10月28日    社区交流

制作rootfs问题记录。

<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>

  问题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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值