文件系统编译过程中遇到问题,解决过程Kernel panic - not syncing: Attempted to kill init!

来源:互联网 发布:校园网mac地址被修改 编辑:程序博客网 时间:2024/06/05 08:25


用4.4.3 编译器编译出来的文件系统
Empty flash at 0x0214bf7c ends at 0x0214c000
Empty flash at 0x0214fffc ends at 0x02150000
Empty flash at 0x02153fa0 ends at 0x02154000
Empty flash at 0x02157ffc ends at 0x02158000
Empty flash at 0x0215bffc ends at 0x0215c000
Empty flash at 0x02163ffc ends at 0x02164000
Empty flash at 0x02167f78 ends at 0x02168000
Empty flash at 0x0216bfb8 ends at 0x0216c000
Empty flash at 0x0216ffdc ends at 0x02170000
Empty flash at 0x02173fec ends at 0x02174000
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace: 
[<c0139a78>] (dump_backtrace+0x0/0x114) from [<c0402fb8>] (dump_stack+0x18/0x1c)
 r6:c014cba0 r5:c0124360 r4:c0500f58
[<c0402fa0>] (dump_stack+0x0/0x1c) from [<c040301c>] (panic+0x60/0x188)
[<c0402fbc>] (panic+0x0/0x188) from [<c012a5dc>] (init_post+0xa8/0xcc)
 r3:00000000 r2:00000004 r1:00000080 r0:c04846ed
[<c012a534>] (init_post+0x0/0xcc) from [<c01085ec>] (kernel_init+0x110/0x14c)
 r4:c0500ac0
[<c01084dc>] (kernel_init+0x0/0x14c) from [<c014cba0>] (do_exit+0x0/0x5fc)
 r5:c01084dc r4:00000000
修改LIB下面的库文件为4.4.3
再次制作文件系统
mkfs.jffs2 -n -s 512 -e 16KiB -d /fs_614 -o fs_614.jffs2


 make CONFIG_PREFIX=/fs_614 install


编译下载
结果如下:
Empty flash at 0x022c7fc0 ends at 0x022c8000
Empty flash at 0x022cbfb0 ends at 0x022cc000
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Kernel panic - not syncing: Attempted to kill init!
Backtrace: 
[<c0139a78>] (dump_backtrace+0x0/0x114) from [<c0402fb8>] (dump_stack+0x18/0x1c)
 r6:c04e8abc r5:c04e8abc r4:c0500f58
[<c0402fa0>] (dump_stack+0x0/0x1c) from [<c040301c>] (panic+0x60/0x188)
[<c0402fbc>] (panic+0x0/0x188) from [<c014cc10>] (do_exit+0x70/0x5fc)
 r3:60000013 r2:c3819cf8 r1:00000001 r0:c0488bda
[<c014cba0>] (do_exit+0x0/0x5fc) from [<c014d22c>] (do_group_exit+0x90/0xc4)
[<c014d19c>] (do_group_exit+0x0/0xc4) from [<c015870c>] (get_signal_to_deliver+0x308/0x344)


拷贝4.3.2 *.so*
再次制作结果如下
Empty flash at 0x01f23fe8 ends at 0x01f24000
Empty flash at 0x01f27fac ends at 0x01f28000
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Kernel panic - not syncing: Attempted to kill init!
Backtrace: 
[<c0139a78>] (dump_backtrace+0x0/0x114) from [<c0402fb8>] (dump_stack+0x18/0x1c)
 r6:c04e8abc r5:c04e8abc r4:c0500f58
[<c0402fa0>] (dump_stack+0x0/0x1c) from [<c040301c>] (panic+0x60/0x188)
[<c0402fbc>] (panic+0x0/0x188) from [<c014cc10>] (do_exit+0x70/0x5fc)
 r3:60000013 r2:c3819cf8 r1:00000001 r0:c0488bda
[<c014cba0>] (do_exit+0x0/0x5fc) from [<c014d22c>] (do_group_exit+0x90/0xc4)
[<c014d19c>] (do_group_exit+0x0/0xc4) from [<c015870c>] (get_signal_to_deliver+0x308/0x344)
拷贝3.4.5 *.so*
再次制作结果如下
Empty flash at 0x0216bfb8 ends at 0x0216c000
Empty flash at 0x0216ffdc ends at 0x02170000
Empty flash at 0x02173fec ends at 0x02174000
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace: 
编译文件系统的编译器3.4.5
再次下载
执行结果:
Empty flash at 0x02173fd4 ends at 0x02174000
JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
VFS: Mounted root (jffs2 filesystem) on device 31:3.
Freeing init memory: 136K
init started: BusyBox v1.7.0 (2016-06-14 01:40:22 PDT)
starting pid 864, tty '': '/etc/init.d/rcS'
fgrgr
234234


Please press Enter to activate this console. 
starting pid 869, tty '': '/bin/sh'
[root@jiang]# 
成功 说明是编译器的问题;
1 0