韦东山Linux嵌入式课程社区
直播中

刘玉珍

7年用户 214经验值
私信 关注

为什么使用yaffs2根文件系统启动时会出错?

环境信息:
虚拟机内核: Linux book-virtual-machine 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
交叉编译工具链:
kernel:ARM-linux-gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
kernel version: Linux-3.4.2

在虚拟机环境下编译生成 mkjaffs2image 工具, 然后用该工具制作了jaffs2映像文件。
uboot 启动参数设置
     set bootargs console=ttySAC0,115200 root=/dev/mtdblock3

启动后输出错误信息如下,红色字体部分。貌似没有设置init 参数。请老师帮忙看看,信息!

  • 输出的错误信息:
yaffs: dev is 32505859 name is "mtdblock3" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 124K
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace:
[] (dump_backtrace+0x0/0x10c) from [] (dump_stack+0x18/0x1c)
r7:c0408000 r6:00000008 r5:c0408000 r4:c03eaf28
[] (dump_stack+0x0/0x1c) from [] (panic+0x7c/0x1d0)
[] (panic+0x0/0x1d0) from [] (init_post+0xc8/0x140)
r3:0000000a r2:00000007 r1:00000006 r0:c0368150
[] (init_post+0x0/0x140) from [] (kernel_init+0x174/0x1c4)
r5:c03db044 r4:c03dfd6c
[] (kernel_init+0x0/0x1c4) from [] (do_exit+0x0/0x76c)

回帖(2)

陈政竹

2019-10-9 08:38:06
刚刚查看了一下 yaffs2印象文件制作的过程,发现如下错误提示,不知道是不是这个错误导致的?
Object 578, my_fs/etc/init.d/rcS is a file, 1 data chunks written
Object 579, my_fs/etc/ts.conf is a file, 1 data chunks written
Object 580, my_fs/etc/inittab is a file, 1 data chunks written
Object 581, my_fs/etc/fstab is a file, 1 data chunks written
Error opening file: Permission denied
Object 582, my_fs/.ash_history is a file, Object 583, my_fs/lib is a directory
Object 584, my_fs/lib/libutil.so.1 is a symlink to "libutil-2.8.so"
举报

毛雅清

2019-10-9 08:44:01
问题已经解决,
重新烧写了内核,并将bootargs的参数设置如下 :
set bootargs noinitrd console=ttySAC0,115200 root=/dev/mtdblock3 init=/linuxrc
举报

更多回帖

发帖
×
20
完善资料,
赚取积分