[linux-yocto] [poky] Kernel Panic : Not Syncing : Exit code 0x00000004
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Feb 19 01:21:54 PST 2015
On Thu, 2015-02-19 at 11:43 +0530, suneet saini wrote:
> I am using the 'hob' from poky and building the image by
> selecting the machine as "qemuarm". Initially this file having
> architecture as followed
> qemuarm.conf
> +++++++++++++++++++++++++++++++++++++++
> #@TYPE: Machine
> #@NAME: arm_versatile_926ejs
> #@DESCRIPTION: arm_versatile_926ejs
>
> require conf/machine/include/qemu.inc
> require conf/machine/include/tune-arm926ejs.inc
> #require conf/machine/include/tune-arm1136jf-s.inc
>
> KERNEL_IMAGETYPE = "zImage"
>
> SERIAL_CONSOLE = "115200 ttyAMA0"
> +++++++++++++++++++++++++++++++++++++++
>
>
> After building the image with "core-image-minimal" or
> "core-image-full-cmdline" while running the image with qemu it works
> fine. I want to change qemu working for "arm v7a" means support
> "Cortex A8". That's why for this I make the changes in qemuarm.conf as
> in the "~/poky/meta/conf/machine.conf"
>
> qemuarm.conf
> +++++++++++++++++++++++++++++++++++++++
>
> require conf/machine/include/qemu.inc
> require conf/machine/include/tune-cortexa8.inc
>
> KERNEL_IMAGETYPE = "zImage"
>
> SERIAL_CONSOLE = "115200 ttyAMA0"
> +++++++++++++++++++++++++++++++++++++++
>
>
> After that I am building the image and running it with qemu; I am
> getting the kernel panic.
>
>
> Kernel Panic - not syncing : Attempting to kill Init!
> exitcode=0x00000004
>
Its very likely that the system sees an "invalid" instruction and is
panicking as a result.
For armv7a you'll need to ensure you pass the correct -cpu option to
qemu to make this work. By default it will only use am armv5 capable CPU
(since this is what qemuarm builds).
Cheers,
Richard
More information about the linux-yocto
mailing list