Discussion:
[yocto] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
Anindya Sundar Gayen
2016-07-26 10:23:30 UTC
Permalink
Hi,


I am trying to build Yocto for my custom FPGA board. I added the meta-bsp layer. But after successful building of Yocto I am getting "Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00". Kernel log mentioned below.


I am using Yocto version dizzy and the same rfs is working fine with phycore Vybrid board because both (Vybrid & my custom FPGA) are using cortex-A5. I am compiling my Linux kernel externally using poky toolchain because I need to make it initramfs. Phycore Vybrid board is using Linux kernel version 3.0.15 and for my custom FPGA board it is 4.6. It seems to be noticed that 4.6 Linux kernel with openWRT is perfectly running whenever I am creating that also as initramfs for my custom FPGA.


So, please let me know how to resolve it.


LOG:~


[ 10.160000] console [ttyS0] enabled
[ 10.160000] console [ttyS0] enabled
[ 10.170000] bootconsole [earlycon0] disabled
[ 10.170000] bootconsole [earlycon0] disabled
[ 10.380000] Warning: unable to open an initial console.
[ 10.390000] devtmpfs: mounted
[ 12.130000] Freeing unused kernel memory: 4648K (2022e000 - 206b8000)
[ 12.140000] This architecture does not have kernel memory protection.
[ 12.320000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 12.320000]
[ 12.320000] Rebooting in 5 seconds..Reboot failed -- System halted



Thanks & regards,
Anindya Sundar Gayen
Contact | 7842753740
piotr.lewicki
2016-07-26 12:01:06 UTC
Permalink
This error is probably caused by exiting /init script inside initramfs.

Are you sure that your init script is mounting and switching root properly?


You can share your init script, but I'm not sure that it's the proper
list to fix that for you.



BR,

Piotr
Post by Anindya Sundar Gayen
Hi,
I am trying to build Yocto for my custom FPGA board. I added the
meta-bsp layer. But after successful building of Yocto I am getting
"Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00007f00". Kernel log mentioned below.
I am using Yocto version dizzy and the same rfs is working fine with
phycore Vybrid board because both (Vybrid & my custom FPGA) are using
cortex-A5. I am compiling my Linux kernel externally using poky
toolchain because I need to make it initramfs. Phycore Vybrid board is
using Linux kernel version 3.0.15 and for my custom FPGA board it is
4.6. It seems to be noticed that 4.6 Linux kernel with openWRT is
perfectly running whenever I am creating that also as initramfs for my
custom FPGA.
So, please let me know how to resolve it.
*LOG:~*
[ 10.160000] console [ttyS0] enabled
[ 10.160000] console [ttyS0] enabled
[ 10.170000] bootconsole [earlycon0] disabled
[ 10.170000] bootconsole [earlycon0] disabled
[ 10.380000] Warning: unable to open an initial console.
[ 10.390000] devtmpfs: mounted
[ 12.130000] Freeing unused kernel memory: 4648K (2022e000 - 206b8000)
[ 12.140000] This architecture does not have kernel memory protection.
[ 12.320000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 12.320000]
[ 12.320000] Rebooting in 5 seconds..Reboot failed -- System halted
*Thanks & regards,
Anindya Sundar Gayen
Contact | 7842753740*
--

Loading...