VFS: Mounted root (jffs2 filesystem) on device 31:2.
Freeing init memory: 148K
Front of /sbin/init! //此处为我在内核中添加的打印信息
Kernel panic - not syncing: Attempted to kill init!
[<c0033838>] (unwind_backtrace +0x0/0xd4) from [<c0045cb4>] (panic+0x40/0x124)
[<c0045cb4>] (panic+0x40/0x124) from [<c004879c>] (do_exit+0x58/0x57c)
[<c004879c>] (do_exit+0x58/0x57c) from [<c0048d44>] (do_group_exit+0x84/0xb
[<c0048d44>] (do_group_exit+0x84/0xb from [<c0051c48>] (get_signal_to_deliver+
0x2e8/0x324)
[<c0051c48>] (get_signal_to_deliver+0x2e8/0x324) from [<c00304b8>] (do_signal+0x
5c/0x4c
[<c00304b8>] (do_signal+0x5c/0x4c from [<c002de0c>] (work_pending+0x1c/0x20)
内核中增加打印信息:
printk("Front of /sbin/init! \n"
run_init_process("/sbin/init"
printk("Back of /sbin/init! \n"
run_init_process("/etc/init"
printk("Back of /etc/init! \n"
run_init_process("/bin/init"
printk("Back of /bin/init! \n"
run_init_process("/bin/sh"
printk("Back of /bin/sh! \n"
在制作生成的busybox属性如下:
file bin/busybox
bin/busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped //eabi工具链编译的,不能挂载
bin /busybox: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), stripped //非eabi工具链编译,能正常挂载