Search:  
Gentoo Wiki

HOWTO_PSP_Development

Contents

Introduction

This article covers all of the steps required to install the PSP development environment on Gentoo. If you are looking to develop for your PSP and you have Gentoo installed, this is the article for you.

Become Root

Make sure that you are running as the root user, the majority of the following requires administrative privileges and so it is highly recommended that you start by using su or sudo -s.

Preparing the Environment

The first step is to add/edit a couple environment variables in /etc/env.d/99psp. Create the file using your favorite editor (eg, nano) and add the following to it:

Code: /etc/env.d/99psp
PSPDEV=/usr/local/pspdev
PATH=/usr/local/pspdev/bin

Instead of logging out and logging back in, execute these two commands to update your environment now:

Code: Export Environment Variables
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin

Installing Subversion

Subversion is required to grab the necessary files for the PSP toolchain. If Subversion is not already installed on your system, type the following:

Code: Installing Subversion
emerge subversion

After the emerge finishes, continue on with the next step.

Downloading the Necessary Files

At the time of writing, the latest available toolchain was the 20070626 snapshot. You can download this file from the mirror provided by calebgray.com: http://www.calebgray.com/psp/development/psptoolchain-20070626.tar.bz2. Though, the latest can usually be found at the bottom of this page: http://www.ps2dev.org/psp/tools/toolchain/

There is also an SDK with tutorials that can be found on the same site (http://www.ps2dev.org/psp/projects), or just download it directly from Caleb Gray's mirror: http://www.calebgray.com/psp/development/pspsdk-20070626.tar.bz2.

Code: Download the Files
cd /usr/local/src/
wget http://www.calebgray.com/psp/development/psptoolchain-20070626.tar.bz2
wget http://www.calebgray.com/psp/development/pspsdk-20070626.tar.bz2

Extract, Configure, and Install the Toolchain and SDK

Start by saving the files somewhere that you prefer compiling from (/usr/local/src/ will be assumed). Navigate to the directory with the file(s) you just downloaded and extract them to /usr/local/src/.

Code: Extract the Files
tar xjf psptoolchain-20070626.tar.bz2 -C /usr/local/src/
tar xjf pspsdk-20070626.tar.bz2 -C /usr/local/src/

Execute the following to install the toolchain:

Code: Navigate to the Toolchain Sources and Execute the Install
cd /usr/local/src/psptoolchain/
./toolchain.sh

Execute the following to install the SDK:

Code: Navigate to the SDK Sources and Execute the Install
cd /usr/local/src/pspsdk/
./bootstrap
./configure
make && make install

Wrapping Up

Assuming all went well you should be able to compile one of the samples provided by the SDK:

Code: Navigate to the SDK Sources and Execute the Install
cd /usr/local/pspdev/psp/sdk/samples/gu/morph/
make

And finally, assuming that also went well, copy the resulting EBOOT.PBP to your PSP's game (or game150) directory but make sure it's in its own folder: /mnt/psp/game/morph/EBOOT.PBP.

Retrieved from "http://www.gentoo-wiki.info/HOWTO_PSP_Development"

Last modified: Fri, 05 Sep 2008 11:06:00 +0000 Hits: 5,351