toolchain-external: re-introduce Sourcery CodeBench ARM 2010.09

Submitted by Jean-Christophe PLAGNIOL-VILLARD on Dec. 23, 2012, 1:42 p.m.

Details

Message ID 1356270120-20416-1-git-send-email-plagnioj@jcrosoft.com
State Rejected
Headers show

Commit Message

Jean-Christophe PLAGNIOL-VILLARD Dec. 23, 2012, 1:42 p.m.
on the lastest release the toolchain can not produce a working rootfs for
at91rm9200

Tested on at91rm9200ek

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
Hi,

	I try the internal toolchains of buildroot we have the same issue

Best Regards,
J.

 toolchain/toolchain-external/Config.in   |   24 ++++++++++++++++++++++++
 toolchain/toolchain-external/ext-tool.mk |    5 ++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

Comments

Peter Korsgaard Dec. 23, 2012, 6:08 p.m.
>>>>> "J" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:

 J> on the lastest release the toolchain can not produce a working rootfs for
 J> at91rm9200

 J> Tested on at91rm9200ek

 J> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 J> ---
 J> Hi,

 J> 	I try the internal toolchains of buildroot we have the same issue

Interesting. How did you configure it? I've used BR on the mini2440
(s3c2440), which is also arm920t recently without problems.
Jean-Christophe PLAGNIOL-VILLARD Dec. 23, 2012, 9:30 p.m.
On 19:08 Sun 23 Dec     , Peter Korsgaard wrote:
> >>>>> "J" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
> 
>  J> on the lastest release the toolchain can not produce a working rootfs for
>  J> at91rm9200
> 
>  J> Tested on at91rm9200ek
> 
>  J> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>  J> ---
>  J> Hi,
> 
>  J> 	I try the internal toolchains of buildroot we have the same issue
> 
> Interesting. How did you configure it? I've used BR on the mini2440
> (s3c2440), which is also arm920t recently without problems.
I do nohing special just use busybox

and I try generic_arm and arm920t

both can not boot

I get the init that try to kill itself

I check the binary it's a EABIv5 so this should work
but it does not

I tried the 3.7.1, 3.6.6 and mainline (dt) none work

the only toolchain I succed is this one

I did not try to found a valid BR toolchain just use the default one

which boot fine on my other at91 (arm926ejs) with both Sourcery & BR
toolchains.

Best Regards,
J.

Patch hide | download patch | download mbox

diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index eeb40a3..06e847e 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -102,6 +102,29 @@  config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109
 	      Select BR2_SOFT_FLOAT
 	      Set BR2_TARGET_OPTIMIZATION to -mthumb
 
+config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201009
+	bool "Sourcery CodeBench ARM 2010.09"
+	depends on BR2_arm
+	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_INSTALL_LIBSTDCPP
+	help
+	  Sourcery CodeBench toolchain for the ARM architecture, from
+	  Mentor Graphics. It uses gcc 4.5.1, binutils 2.20, glibc
+	  2.11 and gdb 7.2.50, kernel headers 2.6.35.2. It has support
+	  for the following variants:
+	    - ARMv5TE, little endian, soft-float, glibc
+	      Select ARM926T, ARM10T, XScale or another ARMv5 core
+	      Select BR2_SOFT_FLOAT
+	    - ARMv4T, little endian, soft-float, glibc
+	      Select ARM720T, ARM920T, ARM922T or another ARMv4 core
+	      Select BR2_SOFT_FLOAT
+	    - ARMv7-A, Thumb 2, little endian, soft-float, glibc
+	      Select Cortex-A8, Cortex-A9 or another ARMv7-A core
+	      Select BR2_SOFT_FLOAT
+	      Set BR2_TARGET_OPTIMIZATION to -mthumb
+
+
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS201209
 	bool "Sourcery CodeBench MIPS 2012.09"
 	depends on BR2_mips || BR2_mipsel
@@ -685,6 +708,7 @@  config BR2_TOOLCHAIN_EXTERNAL_PREFIX
 	default "arm-linux-gnueabihf"	 if BR2_TOOLCHAIN_EXTERNAL_LINARO_2012_10
 	default "arm-linux-gnueabihf"	 if BR2_TOOLCHAIN_EXTERNAL_LINARO_2012_11
 	default "arm-linux-gnueabihf"	 if BR2_TOOLCHAIN_EXTERNAL_LINARO_2012_12
+	default "arm-none-linux-gnueabi" if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201009
 	default "arm-none-linux-gnueabi" if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201103
 	default "arm-none-linux-gnueabi" if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109
 	default "arm-none-linux-gnueabi" if BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201203
diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index 649e3a3..be25956 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -175,7 +175,10 @@  ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
 TOOLCHAIN_EXTERNAL_DEPENDENCIES = $(TOOLCHAIN_EXTERNAL_DIR)/.extracted
 endif
 
-ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201103),y)
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201009),y)
+TOOLCHAIN_EXTERNAL_SITE=http://sourcery.mentor.com/public/gnu_toolchain/arm-none-linux-gnueabi/
+TOOLCHAIN_EXTERNAL_SOURCE=arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201103),y)
 TOOLCHAIN_EXTERNAL_SITE=http://sourcery.mentor.com/public/gnu_toolchain/arm-none-linux-gnueabi/
 TOOLCHAIN_EXTERNAL_SOURCE=arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109),y)