Patchwork QEMU with ARM Cortex A9 with hard float configuration - Kernel panic

login
register
mail settings
Submitter Elvis Dowson
Date Aug. 25, 2013, 2:37 p.m.
Message ID <8683DB7C-B756-4E61-B5EF-856E288139C4@gmail.com>
Download mbox | patch
Permalink /patch/56581/
State New
Headers show

Comments

Elvis Dowson - Aug. 25, 2013, 2:37 p.m.
Hi,
       I have modified the default qemuarm.conf file, to switch it over to using ARM Cortex A9, with hard float, vfp and neon support, by applying the following patch (which basically includes the tune-cortexa9.inc file).

I find that the kernel panics upon boot. 

Is it possible to have a QEMU build with support for hard float? 

I need this, so that I can bootstrap a Ubuntu build from scratch, using a QEMU arm hard float machine, using a oe-core generated QEMU and toolchain. I don't want to use the default armel or armhf emulator and toolchain provided by debian, and want to build my own version of the emulator and toolchain, specifically optimized for a particular target machine.

I've attached a screenshot below.



Best regards,

Elvis Dowson
Martin Jansa - Aug. 25, 2013, 2:44 p.m.
On Sun, Aug 25, 2013 at 06:37:54PM +0400, Elvis Dowson wrote:
> Hi,
>        I have modified the default qemuarm.conf file, to switch it over to using ARM Cortex A9, with hard float, vfp and neon support, by applying the following patch (which basically includes the tune-cortexa9.inc file).
> 
> diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf
> index d07084b..2ec57d8 100644
> --- a/meta/conf/machine/qemuarm.conf
> +++ b/meta/conf/machine/qemuarm.conf
> @@ -1,10 +1,9 @@
>  #@TYPE: Machine
> -#@NAME: arm_versatile_926ejs
> -#@DESCRIPTION: arm_versatile_926ejs
> +#@NAME: qemuarmhf
> +#@DESCRIPTION: Machine configuration for QEMU ARM Cortex A9 hard float.
>  
>  require conf/machine/include/qemu.inc
> -require conf/machine/include/tune-arm926ejs.inc
> -#require conf/machine/include/tune-arm1136jf-s.inc
> +require conf/machine/include/tune-cortexa9.inc
>  
>  KERNEL_IMAGETYPE = "zImage"
> 
> I find that the kernel panics upon boot. 
> 
> Is it possible to have a QEMU build with support for hard float? 

You can enable it by setting DEFAULTTUNE (see tune-cortexa9 for possible
values).

> 
> I need this, so that I can bootstrap a Ubuntu build from scratch, using a QEMU arm hard float machine, using a oe-core generated QEMU and toolchain. I don't want to use the default armel or armhf emulator and toolchain provided by debian, and want to build my own version of the emulator and toolchain, specifically optimized for a particular target machine.
> 
> I've attached a screenshot below.
> 
> 
> 
> Best regards,
> 
> Elvis Dowson
> 
> 

> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
Elvis Dowson - Aug. 25, 2013, 3:09 p.m.
Hi Martin,

On Aug 25, 2013, at 6:44 PM, Martin Jansa <martin.jansa@gmail.com> wrote:

>> I find that the kernel panics upon boot. 

Thanks! Any idea why the qemu with hard float configuration has a kernel panic with linux-yocto?

Elvis Dowson

Patch

diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf
index d07084b..2ec57d8 100644
--- a/meta/conf/machine/qemuarm.conf
+++ b/meta/conf/machine/qemuarm.conf
@@ -1,10 +1,9 @@ 
 #@TYPE: Machine
-#@NAME: arm_versatile_926ejs
-#@DESCRIPTION: arm_versatile_926ejs
+#@NAME: qemuarmhf
+#@DESCRIPTION: Machine configuration for QEMU ARM Cortex A9 hard float.
 
 require conf/machine/include/qemu.inc
-require conf/machine/include/tune-arm926ejs.inc
-#require conf/machine/include/tune-arm1136jf-s.inc
+require conf/machine/include/tune-cortexa9.inc
 
 KERNEL_IMAGETYPE = "zImage"