wiki:TBR/UserManual/RTEMS_Development_Hosts

Version 8 (modified by ChrisJohns, on 09/12/07 at 03:43:02) (diff)

Added Windows.

RTEMS Development Hosts

The RTEMS Project plans to provide prebuilt tools for a variety of operating systems. Please refer to the appropriate section below for information on your particular operating system.

GNU/Linux RPM Based Distributions

The RTEMS Project maintains an APT/Yum Repository which contains prebuilt RPMs for the entire RTEMS Development Environment. There is a separate repository for the 4.6, 4.7 and 4.8 release series.

The following instructions are for Fedora users, but other distributions may be supported in the repository depending upon the release branch and time of day. Please check the ftp site for the latest set of distributions supported.

Loading the prebuilt tools should be very easy and something like this:

  • Load the appropriate Yum repository configuration information.
# Replace NNN with your 1-7 to reflect the Fedora version
# Check that 0.7-1 is the latest version of this package
rpm -ivh ftp://ftp.rtems.org/pub/rtems/linux/4.8/fedora/NNN/i386/rtems-4.8-yum-conf-0.7-1.fcNNN.noarch.rpm
  • Load cross development RPMs for your target architecture along with the RTEMS 4.8 specific version of GNU autoconf and automake.
# Replace CPU with the name of the CPU architecture you
# want to use RTEMS on.  Choice are: 
#   arm avr h8300 i386 m68k mips powerpc sh sparc 
yum -y install "*CPU-rtems4.8*" "*4.8*auto*"

That's it. You should be able to configure and build RTEMS at the point. If targeting a simulator BSP included with GDB (sparc/sis, powerpc/psim, or mips/jm43904), you should be able to generate and run target executables in a matter of minutes. Configuring qemu so that it will boot an RTEMS application for the i386/pc386 takes a bit longer but is still quite straightfoward. Normally it takes longer to download the tools via ftp than to build RTEMS.

Windows

The RTEMS provides executable installers for Windows. Currently Windows Vista and 64 bit Windows servers have not been tested. You can find information about the installer on the Windows Installers page.

The FreeBSD Operating System

FreeBSD's ports collection contains up-to-date version of gnu-tools, which is suitable for rtems development. There's even preconfigured ports/packages for the most popular architectures, namely:

  • arm
  • i386
  • m68k
  • mips
  • powerpc
  • sh
  • sparc.

They either can be installed as pre-build packages, if available for your platform, or build via ports, e.g.:

cd /usr/ports/devel/sparc-rtems-gcc && make install cd /usr/ports/devel/sparc-rtems-gdb && make install

You can also specify default cpu optimization and FPU type for gcc, e.g.:

cd /usr/ports/devel/powerpc-rtems-gcc && make WITH_CPU=860 WITH_FLOAT_TYPE=soft

If you want to build rtems toolchain for architecture not available as slave port, you can build it directly using cross-binutils/cross-gcc/cross-gcc ports. For example, to build gcc toolchain for the cris microprocessor, issue the following:

cd /usr/ports/devel/cross-gcc && make TGTARCH=cris TGTABI=rtems WITH_RTEMS_PATCHES=yes