Instructions on setting up the compiler and libs can be found here.
# tar xzvf ps2dev-toolchain_20050313.tar.gz -C /
Now append the following to e.g. your /etc/profile
PS2DEV=/usr/local/ps2dev
EE=$PS2DEV/ee
PS2LIB=$PS2DEV/ps2lib
PATH=$PATH:$PS2DEV/bin:$EE/bin
export PS2DEV EE PS2LIB PATH
Get your copy of TEKlib here.
$ tar xzvf teklib-1.0.4-r1.tar.gzStart your favourite loader and try some of the tests in teklib/bin/ps2.
Dynamic loading of modules is not yet supported; modules are linked statically.