Here's a tutorial which describes how I set up my dev environment under my favorite OS - Ubuntu.
Another tutorial on how to build ps2link:
Code:
[b]Ubuntu PS2DEV Tutorials[/b] Last update: Jul 2 2009 Tested with: Ubuntu 9.04 (Jaunty Jackalope) [b]How to set up a PS2DEV environment on Ubuntu?[/b] 1. Install the packages "subversion" and "gcc-4.2": $ sudo apt-get install subversion gcc-4.2 2. Download the ps2toolchain script: $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2toolchain 3. Run the script to download and build the toolchain: $ sudo CC=gcc-4.2 ./toolchain-sudo.sh 4. Edit your login script ~/.profile to add the following: export PS2DEV=/usr/local/ps2dev export PATH=$PATH:$PS2DEV/bin export PATH=$PATH:$PS2DEV/ee/bin export PATH=$PATH:$PS2DEV/iop/bin export PATH=$PATH:$PS2DEV/dvp/bin export PS2SDK=$PS2DEV/ps2sdk export PATH=$PATH:$PS2SDK/bin 5. Build one of the PS2SDK samples to test your environment: $ cd /usr/local/ps2dev/ps2sdk/ $ sudo chmod -R a+w samples/ $ cd samples/teapot/ $ make [b]How to update the PS2SDK on Ubuntu?[/b] After setting up a working PS2DEV environment, it's advisable to update the PS2SDK every once in a while. 1. Check out the current sources: $ svn co svn://svn.ps2dev.org/ps2/trunk/ps2sdk If you already have a working copy, simply update it: $ svn up 2. Build the SDK: $ cd ps2sdk/ $ make clean $ make 3. Install it: $ sudo -s # make install # exit Happy development!
Code:
[b]How to build ps2link on Ubuntu?[/b] In order to compile ps2link properly, we'll first need to build ps2smap.irx and ps2-packer. (1) ps2smap.irx Download and build the sources: $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2eth $ cd ps2eth/ $ make Install ps2smap.irx into PS2DEV environment: $ sudo mkdir -p /usr/local/ps2dev/ps2eth/smap $ sudo cp smap/ps2smap.irx /usr/local/ps2dev/ps2eth/smap/ (2) ps2-packer Install the required package libucl-dev: $ sudo apt-get install libucl-dev Download and build the sources: $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2-packer $ cd ps2-packer/ $ make Install ps2-packer: $ sudo -s # 'sudo make install' won't work # make install # exit (3) ps2link Finally, simply download and compile the ps2link sources: $ svn export svn://svn.ps2dev.org/ps2/trunk/ps2link $ cd ps2link/ $ make Notes: "make dist" creates a compressed archive from the binary files (ELF + IRX). "make release" is broken.


Comment