All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel Panic : Not Syncing : Exit code 0x00000004
@ 2015-02-19  6:13 suneet saini
  2015-02-19  9:21 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: suneet saini @ 2015-02-19  6:13 UTC (permalink / raw)
  To: poky, linux-yocto


[-- Attachment #1.1: Type: text/plain, Size: 1390 bytes --]

Hello Team,

          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
*

For that snapshot of that is also attached with this mail.

-- 
*Suneet Kumar Saini*

[-- Attachment #1.2: Type: text/html, Size: 1817 bytes --]

[-- Attachment #2: 1.png --]
[-- Type: image/png, Size: 26041 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel Panic : Not Syncing : Exit code 0x00000004
  2015-02-19  6:13 Kernel Panic : Not Syncing : Exit code 0x00000004 suneet saini
@ 2015-02-19  9:21 ` Richard Purdie
       [not found]   ` <CAAxKdCigngVSOexCWYpwA3yAdEFKcmLnseMQxiyyW1eak+i4pw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2015-02-19  9:21 UTC (permalink / raw)
  To: suneet saini; +Cc: poky, linux-yocto

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






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel Panic : Not Syncing : Exit code 0x00000004
       [not found]   ` <CAAxKdCigngVSOexCWYpwA3yAdEFKcmLnseMQxiyyW1eak+i4pw@mail.gmail.com>
@ 2015-02-19 15:02     ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2015-02-19 15:02 UTC (permalink / raw)
  To: suneet saini, poky@yoctoproject.org

On Thu, 2015-02-19 at 15:51 +0530, suneet saini wrote:
>         I you more elaborate to locate this default location in whole
> build then it'll be better for me. As I am totally a newbie to
> Yoctoproject.
> 
Firstly, please don't take this offlist, its impolite.

I appreciate you may be new to the project but I simply don't have time
to solve the problem for you. You need to find the qemuarm cpu options
in the runqemu script and change it to match the architecture you're
trying to build.

Cheers,

Richard





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-19 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-19  6:13 Kernel Panic : Not Syncing : Exit code 0x00000004 suneet saini
2015-02-19  9:21 ` Richard Purdie
     [not found]   ` <CAAxKdCigngVSOexCWYpwA3yAdEFKcmLnseMQxiyyW1eak+i4pw@mail.gmail.com>
2015-02-19 15:02     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.