Version 5 (modified by JoelSherrill, on Jul 17, 2007 at 12:54:32 AM) (diff)

/* GNU/Linux RPM Based Distributions */ Update version

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-6 to reflect the Fedora version
rpm -ivh
  • 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 "*4.8*CPU*" "*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.

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