Personal tools
You are here: Home / Software / RTEMS

RTEMS

"RTEMS is a real-time executive which provides a high performance environment for embedded applications on a range processors and embedded hardware."

RTEMS Wiki (offsite)

 

RTEMS Install

 

The simplest method to install rtems for users development(circa 2018):

Obtain waf

cd $HOME/bin/
wget https://waf.io/waf-2.0.8
chmod +x waf-2.0.8
ln -s waf-2.0.8 waf

Install RTEMS in development area:

 

mkdir sandbox
cd sandbox/
git clone git://git.rtems.org/rtems-source-builder.git
git clone git://git.rtems.org/rtems-libbsd.git
git clone git://git.rtems.org/rtems.git

# build rtems tool set for i386 arch
cd rtems-source-builder/
$ git checkout 4.11
cd rtems/
../source-builder/sb-set-builder --list-bsets
../source-builder/sb-check
../source-builder/sb-set-builder --prefix="$HOME/sandbox/rtems-4.11" 4.11/rtems-i386

#bootstrap rtems source
cd $HOME/sandbox/rtems
git checkout 4.11

 

#### when adjusting Makefile.am --- must run, eg.: $ ~/sandbox/rtems/c/src/lib/libbsp/i386/pc386  $ ~/sandbox/rtems/ampolish3 Makefile.am > preinstall.am

PATH="$HOME/sandbox/rtems-4.11/bin/:$PATH" ./bootstrap


#Build and install the RTEMS Board Support Packages (BSP) you want to use. In this example the path is $HOME/sandbox/rtems-4.11:
mkdir pc386
cd pc386
PATH="$HOME/sandbox/rtems-4.11/bin:$PATH" $HOME/sandbox/rtems/configure --target=i386-rtems4.11 --prefix="$HOME/sandbox/rtems-4.11" --disable-networking --enable-posix --enable-cxx --enable-rdbg --enable-rtemsbsp=pc386
PATH="$HOME/sandbox/rtems-4.11/bin:$PATH" make
PATH="$HOME/sandbox/rtems-4.11/bin:$PATH" make install


cd $HOME/sandbox/rtems-libbsd/
git checkout 4.11
git submodule init
git submodule update rtems_waf
$ waf configure --prefix="$HOME/sandbox/rtems-4.11"
$ waf
$ waf install

 The RTEMS_MAKEFILE_PATH is required for building rtems applications and the examples.

export RTEMS_MAKEFILE_PATH=$HOME/sandbox/rtems-4.11/i386-rtems4.11/pc386/

« December 2018 »
December
SuMoTuWeThFrSa
1
2345678
9101112131415
16171819202122
23242526272829
3031