Install Cygwin 1.3.x or newer version (1.3.10 as of this writing) from Cygwin Site: http://www.cygwin.com/ . Or we have provided the full download on the CD-ROM on the inside sleeve of this section. Simply open the Cygwin folder on the CD-ROM and double click on the setup icon.
You can install it on-line running the setup program directly from this URL: Install Cygwin now . Save the file in a temporary directory and run it.
You can download all the files for a later install, or install directly from Internet. Choice the best for you: WE SUGGEST INSTALLING FROM CURRENT DIRECTORY ALL THE FILES HAVE BEEN DOWNLOADED FOR A FULL INSTALLATION.
Install in the directory that you prefer. Do not worry about it, this version of cygwin will mount directories as *nix later. I use these choices: If installing on a network be sure to select the install for all option in the Cygwin Setup screen.
Last setup I've tried let you choose which modules you need to download and setup. Here is a minimal list (but probably some modules could be removed too) that was tested and works:
Open a cygwin bash shell window (you can open it using Start->Programs->Cygnus Solution->Cygwin Bash Shell)
Make a new directory:
$ mkdir /build
where you will download the next files: c:\cygwin\build
Again we have provided the files you will need for the cross-compiler. They can be found in the Hitachi Cross-Compiler folder. Simply place the tar files in the newly created BUILD directory and follow the instructions.
Download gcc 2.95.2 sources using this link -> gcc-2.95.2.tar.gz and save in c:\cygwin\build
Download binutils 2.10.1 sources using this link -> binutils-2.10.1.tar.gz and save in c:\cygwin\build
Download the building scripts from here (legos-buildgcc.zip) and put it in the same directory as above. Unzip them to produce a shell script (buildgcc.sh) and two diff files.
Build the cross compiler:
$ cd /build
Ignore the warnings in compile process. It should work.
For your convenience we have provided both an original version of the code as well as the code for the system with the newly updated Linux scheduler. The Linux scheduler version will be named brickos-0.2.6.
Get brickos-0.2.6.tar.gz from the "Latest Test Releases" section of our project web: http://sourceforge.net/projects/brickos . Drag a copy to C:\cygwin.
$ cd /
$ tar xvfz legos-0.2.6.tar.gz
$ tar xvfz legos-0.2.6.1.tar.gz
Lots of files will stream by as they install into their directories. This will create a legos-0.2.6. Directory.
$ cd /legos-0.2.6
$ make realclean
$ make depend
$ cd util
$ make strip
Now, Power on RCX.
Put IR tower on COM1
$ ./firmdl3 ../boot/legos.srec
$ ./dll ../demo/helloworld.lx
Press RUN on RCX and enjoy!
If you have the IR tower connected to a different com port you can change the default with the instruction: "export RCXTTY=COMx". NOTE: if you have a USB tower this is "export RCXTTY=USB"