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:
- Dynamic loading of programs and modules
- Full IR packet networking
- Preemprive multitasking
- Dynamic memory management
- Drivers for all RCX subsystems
- 16 MHz native mode speed
- Access to 32k RAM
Installation of legOS on a Linux PC
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
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.
Log in with your normal user name and download the file
Do the following steps:
Once you habe managed all this you are in a position to proceed
by reading the README file in the legOS directory.
- Untar this file with the command tar -xzvf legOS-0.2.4.tar.gz
- Change to the directory legOS: cd legOS.
- Edit the file Makefile.common, change the string
TOOLPREFIX=/usr/bin/h8300-hitachi-hms-, and the value
of LEGOS_ROOT to your legOS directory .
- At the prompt type: make
[an error occurred while processing this directive]