Skip to content

Travis and TI's AM335x SDK

Günter Obiltschnig edited this page Mar 21, 2015 · 1 revision

In order to cross-compile macchina.io on Travis for ARM, we use the TI AM335x SDK (version 8.00), which can be found at http://downloads.ti.com/sitara_linux/esd/AM335xSDK/latest/exports/ti-sdk-am335x-evm-08.00.00.00-Linux-x86-Install.bin. In case you're asking: compiling with Ubuntu's g++-arm-linux-gnueabihf does not work due to a missing header.

However, the original installer is over 1 GB in size and would take about 35 minutes to download and install on Travis, each time a build is started. Therefore, we have extracted the necessary parts from the installed SDK and put them into a gzipped TAR file (160 MB) that is downloaded and extracted by Travis.

In order to create this archive (which may need to be done again if a new version of the SDK comes out, or something in the Travis build directory structure changes), the following steps must be performed.

  1. On an Ubuntu system, create a user account "travis" with home directory "/home/travis".
  2. su travis, cd /home/travis
  3. Download the SDK installer
  4. Run the installer, and install to "/home/travis/build/macchina-io/macchina.io/ti-am335x-sdk".
  5. In the ti-am335x-sdk directory, delete everything except "linux-devkit/sysroots/".
  6. tar cfz ti-am335x-sdk.tgz ti-am335x-sdk
  7. Publish ti-am335x-sdk.tgz on http://macchina.io/files/travis/ti-am335x-sdk.tgz