/META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> /META HTTP-EQUIV="EXPIRES" CONTENT="0"> /META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
GNU ARM Embedded Toolchain for Centos 7.3
The purpose of this webpage is to explain how to get the GNU ARM Embedded Toolchain running in Centos 7.3 (x86_64)
I had the specific purpose of trying to build the firmware for the Tyt MD-380 hand-held radio.
More details about the Experimental firmware can be found HERE
Overview:I suggest that you do not try to use the GNU ARM Linux tools that are part of the standard EL7 repo.
Instead I suggest downloading the toolchain from a specific website and performing the neccessary changes to make the compiler work in Centos 7.3.
How to install the toolchain:
Step 1: Download the latest Linux 64-Bit toolchain from: Developer.arm.com
When I wrote this guide, the current version was gcc-arm-none-eabi-6-2017-q2-update-linux
cd /opt wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 bunzip2 gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 tar xvf gcc-arm-none-eabi-6-2017-q2-update-linux.tar
Step 2: Edit the global default bashrc so the compiler will be found
Add to the bottom of the file the following: (assuming the same version was downloaded)
PATH=$PATH:/opt/gcc-arm-none-eabi-6-2017-q2-update/binsave the file, logout, login again to activate the new path
Step 3: Create the missing shasum
During the compile of the experimental firmware, the make process failed stating that shasum was missing.
We can easily create a script to provide the missing functionality
Add the following 3 lines to the new file:
#!/bin/bash shift 2 sha256sum $@
After you have saved the file, change the permissions:
chmod 755 /usr/bin/shasum
Step 4: Enjoy the ARM cross compiler!