Skip to main content.

GNU Toolchain for ARC

The most recent release of pre-built GNU tools for ARC could be obtained from here - https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases.

At the moment the most recent version is 4.8-R3.

Available are 4 flavors of uClibc GNU toolchains for ARC:

Important notes

  1. Only uClibc toolchain could be used for building U-Boot because elf32 versoin doesn't support linkage of Position Independent Executables (-pie).
  2. Pre-built tools are compatible with 64-bit hosts only, if one needs to run it on 32-bit host then toolchain could be built on 32-bit host with whether scripts from https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/tree/arc-4.8-R3 or with up to date Buildroot starting (version 2014.05 builds 4.8-R3 tools for ARC).
  3. RedHat/!CentOS 5.x uses earlier version of glibc and thus is not-compatible with pre-built toolchain.

Run U-Boot on ARC with MetaWare debugger

This U-Boot version is linked as position-independent executable (POE) which is required for normal operation of this bootloader. Unfortunately even the most recent version of MetaWare debugger cannot work with POE executables.

That's why it's required to modify u-boot elf to fake MDB.

Note that after this modification all debug information will be stripped from elf.

If you're going to use u-boot.bin image for loading it directly in memory note that it must be loaded in memory starting from CONFIG_SYS_TEXT_BASE and then set PC to the same address.

ARC custodian tips

Repo URL: ssh://gu-arc@git.denx.de/u-boot-arc