All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: suneet saini <suneet.saini@gmail.com>
Cc: poky@yoctoproject.org, linux-yocto@yoctoproject.org
Subject: Re: Kernel Panic : Not Syncing : Exit code 0x00000004
Date: Thu, 19 Feb 2015 09:21:54 +0000	[thread overview]
Message-ID: <1424337714.11836.26.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAAxKdCh6p+9nxGmayUjcLLsDF-Ka98AMZZtXEUMusSCaXvM=Cw@mail.gmail.com>

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






  reply	other threads:[~2015-02-19  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19  6:13 Kernel Panic : Not Syncing : Exit code 0x00000004 suneet saini
2015-02-19  9:21 ` Richard Purdie [this message]
     [not found]   ` <CAAxKdCigngVSOexCWYpwA3yAdEFKcmLnseMQxiyyW1eak+i4pw@mail.gmail.com>
2015-02-19 15:02     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424337714.11836.26.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=linux-yocto@yoctoproject.org \
    --cc=poky@yoctoproject.org \
    --cc=suneet.saini@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.