ARM GCC

From ElectroDragon Wiki

Toolchain for Nano

  • Toolchain
apt-get install gcc-arm-none-eabi
apt-get install gcc-arm-linux-gnueabi 


make

make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16    #请自行修改编译线程数


arm none eabi gcc

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt-get install gcc-arm-embedded
arm-none-eabi-gcc -v
installed in /usr/bin
  • apt install gcc-arm-none-eabi
  • Check where installed it: which arm-none-eabi-gcc -> /usr/bin/arm-none-eabi-gcc
  • Test: arm-none-eabi-gcc --version
  • Install dependency: sudo apt-get install build-essential checkinstall
  • Check by make -v

arm-linux-gnueabi

arm linux gnu eabi hf gcc

wget https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz
tar xvf gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf.tar.xz
mv gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf /opt/
vim /etc/bash.bashrc
# add: PATH="$PATH:/opt/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/bin"
source /etc/bash.bashrc
arm-linux-gnueabihf-gcc -v
sudo apt-get install device-tree-compiler

Support

Most ARM devices

Compiler