PS3:Tools
Contents |
General
To ease compilation and finding libraries (which will prevent you from having to edit every Makefile):
- sudo ln -s /usr/src/linux-2.6/include/* /usr/local/include/
Development
Dependencies
Almost all tools require git make libc libc-dev libc6-dev-ppc64
- sudo apt-get install git make libc libc-dev libc6-dev-ppc64
For Debian Squeeze (and possibly other Distros as well?)
- sudo apt-get install git make libc6 libc6-dev libc6-dev-ppc64 libX11-dev
python
- aptitude install python python-pytools
- this installs python and pyopencl
Enable RSX RAM as SWAP
- sudo su -
- swapon -s
- Check current SWAP
- mkswap /dev/ps3vram
- swapon /dev/ps3vram
- vim /etc/udev/rules.d/10-ps3vram-swap.rules
# udev rules to automatically enable swap on /dev/ps3vram # Copy this file to /etc/udev/rules.d/10-ps3vram-swap.rules # Choose only one of the rules below # Initialize and enable swap unconditionally KERNEL=="ps3vram", ACTION=="add", RUN+="/sbin/mkswap /dev/ps3vram", RUN+="/sbin/swapon -p 10 /dev/ps3vram"
- reboot
- sudo swapon -s
- Verify additional SWAP space
Notes
Higher priority means the system will use that SWAP sooner than lower priority SWAP. You want RSX RAM to have highest priority.
OpenSSL for ppc64
Check and make sure you're getting the latest source of OpenSSL[1]
Installation
- wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz
- tar -xvzf openssl*.tar.gz
- cd openssl*
- vim Makefile or PS3:Tools#General
- You need to add this option to the end of the CFLAGS option list: -I/usr/src/linux-2.6/include
- ./Configure linux-ppc64
- make
- make test
- sudo make install
Notes
- Modification of header files is needed for non-current kernels.
ps3dm-utils
Dependencies
Installation
- git clone git://git.gitbrew.org/ps3/ps3linux/ps3dm-utils.git
- cd ps3dm-utils/
- sudo cp /usr/src/linux-2.6/arch/powerpc/include/asm/ps3dmproxy.h /usr/include/asm/
- vim Makefile
- Append -L /usr/local/ssl/include -L /usr/local/ssl/lib -ldl to the end of LDFLAGS
- make
Attention: With the latest version of ps3dm-utils you don't need OpenSSL anymore !!!
Notes
- ps3dm-utils requires DEVICE to get information from. Normally, /dev/ps3dmproxy is used.
- If /dev/ps3dmproxy does not exist: sudo modprobe ps3dmproxy
IBM Cell SDK 3.1
This works only on Debian & Ubuntu on PS3 All Tools need download form ibmsdk31.tar.gz
Installation
wget -r -H -A.tar.gz http://www.multiupload.com/T6IFLL5SGD mv */*/*/ibmsdk31.tar.gz ./ rm *multiupload.com* -rf tar -xvzf ibmsdk31.tar.gz cd deb/ dpkg -i openrpm/*.deb dpkg -i devel/*.deb dpkg -i extra/*.deb
Some of these packages have a newer version, You may want to hold (keep back) these packages:
echo ppu-gcc hold | sudo dpkg --set-selections echo spu-gcc hold | sudo dpkg --set-selections
Java 6 IBM
Download from: http://goo.gl/ngV0b
mkdir /opt/ibm/java-ppc64-60/ cd /opt/ibm/java-ppc64-60/
Put ibm-java-sdk-6.0-5.0-linux-ppc64.tgz in /opt/ibm/java-ppc64-60/
tar -zxvf ibm-java-sdk-6.0-5.0-linux-ppc64.tgz chcon -R -t texrel_shlib_t /opt/ibm/java-ppc64-60/jre chcon -R -t texrel_shlib_t /opt/ibm/java-ppc64-60/bin chcon -R -t texrel_shlib_t /opt/ibm/java-ppc64-60/lib
ps3mfw
Dependencies
- TCL 8.5
- wget http://prdownloads.sourceforge.net/tcl/tcl8.5.9-src.tar.gz
- tar -xvzf tcl*
- cd tcl*
- cd unix
- vim Makefile or PS3:Tools#General
- You need to add this option to the end of the CFLAGS option list: -I/usr/src/linux-2.6/include
- ./configure && make && sudo make install
- TK 8.5
- wget http://prdownloads.sourceforge.net/tcl/tk8.5.9-src.tar.gz
- tar -xvzf tk8.5*
- cd tk8.5
- cd unix
- ./configure && make && sudo make install
Installation
Read up on any notes on any experimental options/tasks you shouldn't be using. Ask in #otheros if you are unsure.
- git clone git://git.gitbrew.org/ps3/ps3mfw/ps3mfw.git
- cd ps3mfw/
- rm -rf tasks
- git clone git://git.gitbrew.org/ps3/ps3mfw/tasks.git
You should be able to run the program with ./ps3mfw --gui "false"