Wednesday, October 26, 2016

adding arm-none-eabi-gcc using Ubuntu ppa

If you're using Ubuntu apt, you can use the following command to install the
arm-none-eabi-gcc ARM cross compiler from ppa repository:

$ su
# apt-add-repository -y ppa:terry.guo/gcc-arm-embedded
# aptitude update
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A3421AFB
# aptitude update
# apt-get install gcc-arm-none-eabi
and then when you type arm-none and tab, you should see the arm cross-compiler.

gideon@gideon-i5:~$ arm-none-eabi-
arm-none-eabi-addr2line   arm-none-eabi-gcc-4.9.3   arm-none-eabi-nm
arm-none-eabi-ar          arm-none-eabi-gcc-ar      arm-none-eabi-objcopy
arm-none-eabi-as          arm-none-eabi-gcc-nm      arm-none-eabi-objdump
arm-none-eabi-c++         arm-none-eabi-gcc-ranlib  arm-none-eabi-ranlib
arm-none-eabi-c++filt     arm-none-eabi-gcov        arm-none-eabi-readelf
arm-none-eabi-cpp         arm-none-eabi-gdb         arm-none-eabi-size
arm-none-eabi-elfedit     arm-none-eabi-gprof       arm-none-eabi-strings
arm-none-eabi-g++         arm-none-eabi-ld          arm-none-eabi-strip
arm-none-eabi-gcc         arm-none-eabi-ld.bfd