#define _PAGE_ Setting up the GNUSH compiler for Windows #include "head.t"

by Felix Arends, 1/8/2002

I have spent a long time figuring out how to compile SH1 code in windows (using the sh-elf-gcc compiler) and when I finally compiled the first OS for my Jukebox I decided to write a little tutorial explaining the setup process.

The GNU-SH Tool Chain for Windows

This is actually all you need to download. It includes the binutils, gcc and newlib. Download the GNUSH Tool Chain for ELF format (35 MB).

The GNUSH website can be found at http://www.kpit.com/download/downloadgnushv0203.htm (source code is also available there). Get the "GNUSH v0203 Tool Chain for ELF format". Note: The GNUSH v0204 Tool Chain has a bug which causes problems when compiling Rockbox!

Perl

Download Perl for Windows from http://www.activestate.com/Products/ActivePerl/.

Setting up the Compiler

Install the GNUSH Tool Chain (nothing you really have to care about during the installation process).

Compiling the latest Rockbox Source

Use CVS to download the latest source code of Rockbox (the firmware and apps modules). In addition, you need to copy a win32 compilation of scramble.exe and convbdf.exe into the tools dir. The pre-compiled scramble.exe can be downloaded here. The pre-compiled convbdf.exe can be downloaded here. From your start menu, open the "SH-ELF tool chain" batch file inside the GNU-SH v0203 program folder. You should end up seeing a command prompt. Go to the apps directory and type:

Command Description
make -f win32.mak
make -f win32.mak RECORDER = 1
build for recorder target
make -f win32.mak PLAYER build for player target
make -f win32.mak PLAYER_OLD build for old player target
make -f win32.mak RECORDER=1 DISABLE_GAMES=1 build for recorder target, disable games
make -f win32.mak RECORDER=1 PROPFONTS=1 build for recorder target, enable propfonts
make -f win32.mak RECORDER=1 PROPFONTS=1 DISABLE_GAMES = 1  build for recorder target, disable games, use propfonts

I hope this tutorial helped you to compile an Archos firmware with Windows. If you have any questions, comments or corrections, please mail to felix.arends@gmx.de #include "foot.t"