Gcc Arm Embedded on Raspberry Pi 2

Asked by Joshua Grauman

Hello,

I am trying to get gcc arm embedded working on a Raspberry Pi 2. The Pi 2 is now ARMv7 instead of ARMv6, and so standard ARM builds should work. I thought I saw some older builds for armhf, but none that were recent. Is there any possibility of an armhf build? I keep trying to compile the toolchain, but I am getting error after error and after spending a day trying to chase them down, thought I'd see if anyone else had done a build or there were plans for one. The OS is called Raspbian, which is built off of Debian Jessie. Thanks!

Josh

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Joshua Grauman
Solved:
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

Hi, Josh,

This toolchain is only target OSless bare-metal. Raspberry Pi 2 as I understood runs Linux. Are you sure you are not looking for linaro-gcc that target Linux instead?

Thanks,
Joey

Revision history for this message
Joshua Grauman (jnfo) said :
#2

Yes, I know. I should have been more clear. I am trying to setup mbed development on the raspberry pi 2. There is an arm-none-eabi-gcc compiler, but it won't work with mbed. Something about being for Debian and not Ubuntu I think. Thanks so much!

Revision history for this message
Joshua Grauman (jnfo) said :
#3

Also, I should add that I am now using Ubuntu MATE 15.10 for the Raspberry Pi 2, which works quite well. Looking at it again, I think I am getting mixed up. In order to compile for mbed, they say you have to use the following ppa, even though it uses the same source. What is the difference? https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded

Revision history for this message
Joey Ye (jinyun-ye) said :
#4

The difference between https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded and https://launchpad.net/gcc-arm-embedded/+download is the the former is built just for a specific ubuntu and the latter is built for all linux platforms. They should generate the same code, but the former will be probably faster as it matches the rest of system. They are both part of GCC ARM Embedded releases.

Comparing to arm-none-eabi-gcc in debian distribution, GCC ARM Embedded is dedicated for ARM Embedded. It release and versioning system is more adapted to Cortex-M roadmap, and is built to be more convenient for embedded development.

Revision history for this message
Joshua Grauman (jnfo) said :
#5

Thanks! That is super helpful. I still need to figure out how to get it working, but that helps me understand the differences.

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#6

I've just talked to the Debian maintainer of gcc-arm-none-eabi and they are packaging our GNU embedded release directly now, *not* via the native GCC + embedded patches. That being said, if you are not using Debian unstable or Debian testing you will have an older version that what is being distributed on Launchpad.