diff mbox

switch newly enabled versatile architecture in lucid to default to a v7 CPU

Message ID 1259762436.3883.50.camel@osiris.example.org
State Accepted
Delegated to: Andy Whitcroft
Headers show

Commit Message

Oliver Grawert Dec. 2, 2009, 2 p.m. UTC

thanks for re-enabling the versatile flavour in the mainline builds,
this helps to run qemu-system-arm again.
as you might know all lucid binaries are now built for the ARMv7
architecture with thumb2 support. By default the versatile kernel
flavour only supports the ARMv5 architecture, so even if we have the new
binary and can fire off a qemu VM, the userspace binaries will not run.

Below is a patch that tricks the versatile flavor into being run on a v7
CPU and thus makes the lucid binaries work.

This patch is not suitable for upstream as is (since it will not allow
qemu to emulate ARMv5 which is the used default armel architecture in
many distros  but is essential for lucid)

please apply this two liner to our versatile build so we can make use of
qemu under armel in lucid.


From 138a258a3df4f4e22422e8a24d282cefe124970c Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Lo=C3=AFc=20Minier?= <lool@dooz.org>
Date: Thu, 4 Jun 2009 15:53:41 +0200
Subject: [PATCH 02/22] Select a v7 CPU for versatile

 arch/arm/mach-versatile/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Andy Whitcroft Dec. 2, 2009, 8:45 p.m. UTC | #1
I already applied the version from Loic you pointed me to previously.

Applied to Lucid.

diff mbox


diff --git a/arch/arm/mach-versatile/Kconfig
index c781f30..00b59ae 100644
--- a/arch/arm/mach-versatile/Kconfig
+++ b/arch/arm/mach-versatile/Kconfig
@@ -3,14 +3,14 @@  menu "Versatile platform type"
 	bool "Support Versatile/PB platform"
-	select CPU_ARM926T
+	select CPU_V7
 	default y
 	  Include support for the ARM(R) Versatile/PB platform.
 	bool "Support Versatile/AB platform"
-	select CPU_ARM926T
+	select CPU_V7
 	  Include support for the ARM(R) Versatile/AP platform.