Actions

EmSys

Difference between revisions of "Install ARM Linux toolchain"

From EdWiki

m (Install toolchain)
m (Install toolchain)
 
Line 5: Line 5:
  
 
== Install toolchain ==
 
== Install toolchain ==
  sudo apt-get update
+
  {{EmSys:Install GNU toolchain for the A-Profile Architecture}}
sudo apt-get install gcc-arm-linux-gnueabihf
+
sudo apt-get install bison flex
+
sudo apt-get install lzop lzma libmpc-dev u-boot-tools libncurses5-dev:amd64
+
 
+
The above command will search the Ubuntu repositories and installs the tools presented below:
+
 
+
<pre>
+
arm-linux-gnueabihf-addr2line    arm-linux-gnueabihf-gcc-nm        arm-linux-gnueabihf-ld.bfd
+
arm-linux-gnueabihf-ar            arm-linux-gnueabihf-gcc-nm-7      arm-linux-gnueabihf-ld.gold
+
arm-linux-gnueabihf-as            arm-linux-gnueabihf-gcc-ranlib    arm-linux-gnueabihf-nm
+
arm-linux-gnueabihf-c++filt      arm-linux-gnueabihf-gcc-ranlib-7  arm-linux-gnueabihf-objcopy
+
arm-linux-gnueabihf-cpp          arm-linux-gnueabihf-gcov          arm-linux-gnueabihf-objdump
+
arm-linux-gnueabihf-cpp-7        arm-linux-gnueabihf-gcov-7        arm-linux-gnueabihf-ranlib
+
arm-linux-gnueabihf-dwp          arm-linux-gnueabihf-gcov-dump    arm-linux-gnueabihf-readelf
+
arm-linux-gnueabihf-elfedit      arm-linux-gnueabihf-gcov-dump-7  arm-linux-gnueabihf-size
+
arm-linux-gnueabihf-gcc          arm-linux-gnueabihf-gcov-tool    arm-linux-gnueabihf-strings
+
arm-linux-gnueabihf-gcc-7        arm-linux-gnueabihf-gcov-tool-7  arm-linux-gnueabihf-strip
+
arm-linux-gnueabihf-gcc-ar        arm-linux-gnueabihf-gprof       
+
arm-linux-gnueabihf-gcc-ar-7      arm-linux-gnueabihf-ld
+
</pre>
+
 
+
<!--
+
[[File:prev.gif|left|link=EmSys:Building and Deploying BeagleBone Black Kernel]]
+
[[File:next.gif|right|link=EmSys:Beaglebone Black Wireless]]
+
[[File:home.gif|center|link=Main_Page]]
+
-->
+

Latest revision as of 14:57, 28 November 2020

What is a cross-compilation toolchain?

  • A set of tools to build and debug code for a target architecture, from a machine running a different architecture.
  • Example: building code for ARM from a x86-64 PC.

Install toolchain

$ cd ~/Downloads
$ Download GNU Toolchain for the A-profile Architecture: 8.3-2019.03 from here
$ sudo tar xvf ~/Downloads/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz -C /opt/
$ export CC=/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-