Programming the Mindstorms RCX

The most versatile way of prgramming the RCX is using legOS, which is an open-source embedded operating systems replacing the Lego-firmware. User programs are devolped in C and run in native mode. LegOS supports the following features:

Installation of legOS on a Linux PC

Compiler utilities

To compile application programs and eventally the kernel you need the egcs-extension for the Hitachi-prozessor of the RCX.
    Log in as user root, download the following files
  1. rcx-binutils-2.9.5.0.22-1.i386.rpm
  2. rcx-egcs-1.1.2-1.i386.rpm
  3. rcx-egcs-c++-1.1.2-1.i386.rpm
  4. ,
and install them with the command rpm -i filename.rpm in the order given above. If you get error messages you probably have not installed the right version of the gcc. Check your distribution and install the packages as indicated by the error message.

legOS installation

Log in with your normal user name and download the file
  1. legOS-0.2.4.tar.gz
  2. .
Do the following steps:
  1. Untar this file with the command tar -xzvf legOS-0.2.4.tar.gz
  2. Change to the directory legOS: cd legOS
  3. .
  4. Edit the file Makefile.common, change the string TOOLPREFIX=/usr/local/bin/h8300-hitachi-hms- to TOOLPREFIX=/usr/bin/h8300-hitachi-hms-, and the value of LEGOS_ROOT to your legOS directory .
  5. At the prompt type: make
Once you habe managed all this you are in a position to proceed by reading the README file in the legOS directory.

[an error occurred while processing this directive]