1. 程式人生 > >檔案系統編譯過程中遇到問題,解決過程Kernel panic

檔案系統編譯過程中遇到問題,解決過程Kernel panic



用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'
[
[email protected]
]# 
成功 說明是編譯器的問題;