Table of Contents

PS2SDK

Description

The PS2SDK is a software development kit (SDK or “devkit”). PS2SDK is a collection of Open Source libraries used for developing applications on Sony’s PlayStation 2 (PS2). PS2SDK contains the work from a number of PS2 projects which can now be built with a single source tree. PS2SDK replaces ps2lib, ps2drv, ps2ip, ps2hid and libhdd projects. PS2SDK is currently licensed under the Academic Free License, which allows both commercial and non-commercial usage of the SDK.

PS2SDK includes the following libraries and features, allowing:

Graphics Rendering

PS2 graphics is a complex area with a large number of solutions using EE, VU0, VU1. For this reason, the SDK does not currently contain a graphics library.

History

The PS2SDK project was proposed by sjeep with the support of administrators of the PS2DEV forums in an effort to make PS2 development cleaner and more integrated.1)

PS2SDK brings together a number of open source projects developed for the PlayStation 2. These projects include ps2lib, ps2drv, libhdd, ps2ip and ps2hid. These projects are now all closed and have been migrated to PS2SDK.

ps2lib was the first library to be released. Created by Gustavo Scotti, the library was released in October 2001. Over the years a number of people have contributed to provide the base functionality required to access the internals of the PS2. ps2lib has gone through a number of versions and was last released as Version 2.1 in October 2003.

ps2drv was started by Marcus R. Brown to provide an area to look at more of the internals of the IO Processor and related hardware. It was started in June 2003 and has grown considerably. ps2drv is where the irx imports method was created used in ps2sdk. ps2drv was last released as Version 1.1 in February 2004.

ps2ip was started by David Ryan(Oobles) in late 2002 to provide a TCP/IP stack for open source development. boman666 provided the last big improvement to the design and his changes are used in PS2SDK.

libhdd was started by Nick Van Veen(Sjeep) in 2003 to provide a Hard Disk Drive driver and file system that is compatible with the commercial Sony HDD and other non-Sony HDDs. The work was sponsored by DMS3, and the resulting code kindly provided back to the ps2dev community. The last release before ps2sdk was version 1.2 released in February 2004.

ps2hid was started by Tyranid in October 2003 to provide USB mouse and keyboard drivers compatible with the Sony USB Driver.

Usage

PS2SDK today provides a large number of the basic software libraries required to access the underlying PS2 system. As the PS2 has two independent CPUs - the Emotion Engine(EE) and the IO Processor (IOP) the source tree is split into two different major areas representing the functions available on each processor. For a list of the different modules and their usage, see the IOP Module List.

PS2SDK Source Code

PS2SDK source tree is considerably different from the binary or release distribution. You should only use the binary release when using PS2SDK in your own projects.

The source tree is a built as a collection of separate projects; each with their own Make file. The file Defs.make provides the basic definitions required when building PS2SDK. The two main variables required are PS2SDKSRC which points to the source base directory, and PS2SDK which points to the release directory.

The main make file has three targets:

Each sub project has a tree structure which can include:

Contributers are encouraged to review the Makefiles to see how to create their own subproject in the tree.

Current Issues

28th of May 2004: (Lukasz Bruun)

printf and family will not work with floats if used together with -fshort-double compiler option, this is a compiler issue.

Authors

The following people have contributed to the ps2sdk project:

    NOTE: If your name is not in the list below and you have contributed to this
    project, please contact David Ryan.
Alias Real Name e-mail
csh Gustavo Scotti gustavo@scotti.com
Oobles David Ryan oobles@hotmail.com
Sjeep Nicholas Van Veen nickvv@xtra.co.nz
Pukko N/A N/A
Karmix Doug Knight fsdck@uaf.edu
adresd ??? adresd_ps2dev@yahoo.com
mrbrown Marcus R. Brown mrbrown@0xd6.org
loser N/A loser@internalreality.com
TyRaNiD That Guy tiraniddo@hotmail.com
ooPo Dan Peori peori@oopo.net
gawd Gil Megidish gil@megidish.net

... and many others from the ps2dev community for feedback and fixes :)

Links

PS2SDK Development Homepage

1) Original PS2SDK thread - forums.ps2dev.org