5. Quick Start

The following is a quick start guide that provides a basic set of commands to build the RTEMS Tools and Kernel. The quick start guide provides links to the detailed sections if any problems are encountered.

The detailed procedure for installing an RTEMS Workspace and installing all tools can be found in Chapter 7 - Installation. This includes information on installation points, developer versions, and the RTEMS kernel.

The short version of this procedure is as follows (Chapter 7 Section 3.1 - POSIX and OS X Host Tools Chain):

  1. Create a workspace (Chapter 7 - Installation),
  2. Download the RTEMS Source Builder (RSB),
  3. Build an RTEMS tool chain for a specific target architecture,
  4. Download RTEMS, and then
  5. Build RTEMS for a specific Board Support Package (BSP).

Each of these steps is described in a section in this guide.

5.1. Creating a Workspace

Before beginning, the development host computer needs to be set up for this quick start procedure to complete successfully. Chapter 6 - Host Computer details what is needed for the supported host operating systems. If Windows is being used it is recommended following the procedure in Chapter 6 Section 4 - Microsoft Windows first.

There are many ways and locations a suitable environment can be set up. A common factor that defines the final location of tools and projects is the place you have suitable storage. Another is permissions. There is no need to become root or the administrator and we recommend you avoid doing this. You can build and install the tools anywhere on the host’s file system you, as a standard user, have read and write access too. Chapter 7 Section 1 - Prefixes and Chapter 7 Section 1.1 - Project Sandboxing provide detailed examples of possible locations and set ups.

5.2. Simple Example

$ cd
$ mkdir -p development/rtems
$ cd development/rtems
$ git clone git://git.rtems.org/rtems-source-builder.git rsb
$ cd rsb
$ ./source-builder/sb-check
$ cd rtems
$ ../source-builder/sb-set-builder \
    --prefix=/usr/home/chris/development/rtems/5 5/rtems-sparc

Build the RTEMS Kernel (Chapter 7 Section 3.2.2 - Building the Kernel) by cloning the repository, running the bootstrap procecure, building and finally installing the kernel:

$ export PATH=$HOME/development/rtems/5/bin:$PATH
$ cd
$ cd development/rtems
$ mkdir kernel
$ cd kernel
$ git clone git://git.rtems.org/rtems.git rtems
$ cd rtems
$ ./bootstrap -c && $HOME/development/rtems/rsb/source-builder/sb-bootstrap
$ cd ..
$ mkdir erc32
$ cd erc32
$ $HOME/development/rtems/kernel/rtems/configure --prefix=$HOME/development/rtems/5 \
                   --target=sparc-rtems5 --enable-rtemsbsp=erc32 --enable-posix
$ make -j 8
$ make install

You can now build a 3rd party library or an application.