We want to install RTEMS on our Linux LXDE Desktop (kernel 4.5) that has kernel Ubuntu 16.04.1 LTS.
1.
it was needed to install curl.
- sudo apt update
- sudo apt install curl
2.
then I checked the manual for RTEMS for release 5.3.
https://ftp.rtems.org/pub/rtems/releases/5/5.3/docs/rtems-5.3-user.pdf
1. Install Prerequisites
- sudo apt-get update
- sudo apt-get install -y build-essential git python-dev texinfo libtool autoconf automake libncurses5-dev libgmp-dev libmpfr-dev libmpc-dev zlib1g-dev
- ## if it's giving you error on python
- sudo apt-get install -y build-essential git python3-dev texinfo libtool autoconf automake libncurses5-dev libgmp-dev libmpfr-dev libmpc-dev zlib1g-dev
2. Clone the RTEMS Source Builder (RSB)
- git clone https://github.com/RTEMS/rtems-source-builder.git
- cd rtems-source-builder
3. Set Up Environment Variables
- export PATH=$HOME/opt/rtems/5/bin:$PATH
- export RTEMS_MAKEFILE_PATH=$HOME/opt/rtems/5/make
- source ~/.bashrc
4. Build the Toolchain
First we find your architecture
- uname -m
- sudo apt-get install bison flex
- sudo apt install texinfo
- sudo apt install unzip
- sudo apt install python3
- sudo ln -s /usr/bin/python3 /usr/bin/python
- source-builder/sb-check
- sudo fallocate -l 8G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- sudo swapon --show
- free -h
- cd rtems-source-builder/rtems
- git checkout 5
- ../source-builder/sb-set-builder --prefix=$HOME/opt/rtems/5 5/rtems-arm
And it stuck ...
Looks like it was issue with SD Card space.
Before we move on and upgrade the SD Card, I'm going to install it on Raspberry Pi Zero 2 W 1GHz.
Using Imager Ubuntu Core is loaded on the SD Cared
5. Clone RTEMS Source Code
- cd $HOME
- git clone https://github.com/RTEMS/rtems.git
- cd rtems
- git checkout 5
6. Configure RTEMS for ARM
- cd $HOME/rtems
- ./waf configure --prefix=$HOME/opt/rtems/5 --rtems-bsps=arm/realview_pbx_a9_qemu
7. Build and Install RTEMS:
- ./waf
- ./waf install
8. Verify Installation
- $HOME/opt/rtems/5/bin/sparc-rtems5-gcc --version
Comments
Post a Comment