Saturday, February 21, 2015

[HOWTO] 1- Build or1k-rtems* toolchain via RSB

This is the first post of the HOWTO tutorial to illustrate how to setup your development environment and run RTEMS on OpenRISC/or1ksim.

Before beginning some environment variables have to be set up assuming that you're using Linux. Most of the instructions here are quoted from RSB page [1]

1- Setup

This is where you executables go.

$ export PATH=$HOME/development/rtems/4.11/bin:$PATH

2- Create directory for RSB source and clone it

$ cd
$ mkdir -p development/rtems/src
$ cd development/rtems/src
$ git clone git://
$ cd rtems-source-builder

3- Build toolchain for or1k-rtems
$ cd rtems
$../source-builder/sb-set-builder --log=l-or1k.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-or1k
If the previous command failed, you may check if all necessary packages are installed or not and if not install it yourself, for more details refer to [1]

The previous command will fetch all the toolchain sources from upstream, build and install it, so it'll take sometime. On my Intel-i7 Fedora x86_64 system it took about half an hour.

Build Set: Time 0:36:53.247605

4- Checking

After the installation finishes you can check the prefix directly and you should see that the executables have been already installed there. This is what I got when typed the following command:

Congratulations! You're now ready to build RTEMS for OpenRISC!