Skip to content

BeagleBoard X15 rebulid environment

20lives edited this page Aug 29, 2017 · 3 revisions

Using premade environment

These steps explains how to create the BeagleBoard-X15 environment with rebuild, if you only want to use the environment you can skip the tutorial and use our pre-created environment on Docker Hub.

this is all you need to do: (you might want read how to compile code with it):

rbld search
rbld deploy bb-x15:16-05
rbld run bb-x15:16-05 -- make -j8

Create environment for BeagleBoard-X15

first we will download the latest toolchain from here:

https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/

(your filename might be different so don't forget to change it accordingly). to make things look simpler, I will keep the filename as a variable (without extension).

FILE_NAME=gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf

wget -c https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-linux-gnueabihf/${{FILE_NAME}}.tar.xz

rbld create --base ubuntu:16.04 bb-x15
rbld modify bb-x15:initial
>> sudo apt-get update && sudo apt-get install -y make xz-utils
>> sudo tar -Jxf arm-linux-gnueabihf/${{FILE_NAME}}.tar.xz -C /
>> echo export CC=/arm-linux-gnueabihf/${{FILE_NAME}} | sudo tee -a /rebuild/rebuild.rc > /dev/null
>> exit
rbld commit bb-x15 --tag 16-05
rbld rm bb-x15:initial

rm -f ${{FILE_NAME}}.tar.xz

Compiling code

navigate to the directory where the Makefile is and run make like this:

cd code-location
rbld run bb-x15:16-05 -- make -j8