welcome to www.hangar-eleven.de - your premier resource for console development





Development Env

Installing Cygwin

Building EE (R5900) toolchain
Compiling EE binutils
Compiling EE GCC

Building IOP(R3000) toolchain
Compiling IOP binutils
Compiling IOP GCC

Compiling PSX2LIB

PS2 Independence Exploit

Testing LIB and the Compilers
Writing the first program
Compiling the first program
Uploading to the PS2

Making a CD

Back to News

 

  Compiling BINUTILS for the PS2-EE platform
  Updated: August 22, 2003 @ 11:43 PM By: Thorsten Titze
 
 

Before being able to compile the C compiler itself, we will have to start compiling the cross binutils (these include assembler, linkers and some additional tools) for the  EmotionEngine Processor (the main processor of the PS2). Just follow this small step-by-step tutorial and everything should work out !

  • Download the following patch for the binutils toolchain (you should download them to the directory where you put the sourcetree tarballs), which enables the PS2 target configurations:

    binutils-2.13.2.1-EE.diff.gz
  • Apply the patch to your binutils sourcetree (unzip them and then patch the sourcetree):

    gunzip binutils-2.13.2.1-EE.diff.gz
    patch -p0 <binutils-2.13.2.1-EE.diff

    NOTE:
    You have to be in the /GCC-PS2/ directory for these patches to work
  • Now, set the needed environment variables in your shell with the following commands:

    target=ee
    prefix=/usr/local/ps2/$target
    binaries=$prefix/bin
    PATH=$binaries:$PATH

    NOTE:
    With these current compiler sources you are not able to produce big-endian binaries for the target mips64r5900-sce-elf (which I had in these guides prior)
  • Change to your BUILD-BINUTILS directory

    cd /gcc/build-binutils
  • Configure your makefile so that it reflects your TARGET and DIRECTORIES

    ../binutils-2.13.2.1/configure --target=$target --prefix=$prefix

    (as usual with compiling compilers this might take some time depending on your build machine)

  • Start the make-procedure including install

    make all install

  • Also to be able to use the binutils and compilers we have to add the directory to our path in either .profile or .bashrc add the following line: (this line puts both the binutils and gcc into your path)

    PATH=/usr/local/ps2/mips64r5900-sce-elf/bin:$PATH

    NOTE: If you used an other path in prefix. Please add your own path to your .bashrc or .profile !

Now you have your EE-BINUTILS sitting in /usr/local/ps2/ee/bin (or any other path you defined in $prefix) . And are ready to comile the remaining parts of the toolchain.


  Go to the sourceforge homepage of KallistiOS

Back to Playstation 2 Development Main


DISCLAIMERS:
Website Design © 2002 by Thorsten Titze / hangar-eleven.de
(the pictures used for the design were taken from a WindowsXP Skin and WindowsXP)
All brand names used on this site are registered trademarks of their respective owners
No copyright infringement is intended
Last updated @ 23-Aug-2003 5:10 PM Contact me via eMail