Today Scognito has http://scognito.wordpress.com/2010/11/04/setup-a-build-environment-for-compiling-and-running-homebrew-for-ps3/ a guide on how to setup a build environment for compiling and running PS3 homebrew using the PSL1GHT open-source SDK.
To quote: With the breaking out of PSJailbreak this summer, the homebrew sceene didn't wait so long to appear on PlayStation 3.
So we are finally talking about the possibility to run our own unsigned code, using any of the available dongles (you can even build one yourself).
Before actually start writing our application it is necessary to build our development envirement. For doing this we need a toolchain and a SDK: I'll use ps3chain and PSL1GHT.
The latter one is very young (project started 29-oct-10) and continously mantained, so the are chances that something may not work as you would expect.
Updating git daily, reporting bugs and contributing is appreciated :)
Prerequisites
First of all we need to set our PS3 dev directory and some system variables, as well as all software needed to build our toolchain.
This guide is written for user with Ubuntu 10.10 32bit, but also other Linux distribution are supported, I think.
Let's start from software needed to build the toolchain:
[code]
sudo apt-get install autoconf automake bison flex gcc make wget
git libppl0.10-dev libcloog-ppl-dev libelf-dev
libncurses5-dev texinfo build-essential
['code]
I've set my PS3 dev directory to ~/dev/ps3
Add these lines at the end of ~/.bashrc for setting needed system variablesCode:mkdir -p ~/dev/ps3
Update bashrc for apply changes:Code:export PS3DEV=$HOME/dev/ps3 export PATH=$PATH:$PS3DEV/bin:$PS3DEV/ppu/bin:$PS3DEV/spu/bin
Finish :)Code:. .bashrc
Installing the ps3chain toolchain
Let's clone ps3chain git repository:
Execute the automated script frorm the ps3chain directory just cloned:Code:cd $PS3DEV git clone git://github.com/HACKERCHANNEL/ps3chain.git
Have a loooooong break, then if you don't see any error you can say to all your friends that the toolchain is installed :)Code:cd ps3chain ./buildit.sh all
Installing the PSL1GHT SDK
Now clone the psl1ght git repository:
Add these lines at the end of ~/.bashrc for setting needed system variables:Code:cd $PS3DEV git clone git://github.com/HACKERCHANNEL/PSL1GHT.git
Build and install it:Code:export PSL1GHT=$PS3DEV/PSL1GHT/psl1ght/build
That's all! :)Code:cd $PS3DEV/PSL1GHT/psl1ght make make install
Compiling and running samples
Samples are included in PSL1GHT samples directory: I suggest to start with VideoTest.
Last command will create a .pkg file that can be installed on your jailbreaked PS3.Code:cd $PS3DEV/PSL1GHT/samples/VideoTest make make pkg
Copy it over a USB pendrive, start the PS3 in jailbreak mode, go to "Install package files", select your app, install and finally run it!
A nice gray to red gradient screen will appear, press X to exit.
Using ps3load
The above process is fine, but a bit slow. There is a smart way though: compile and launch via wifi using ps3load.
Ps3load is a tool like Nintendo Wii Wiiload that let us loading packages over the network.
First of all set this environment variables as we did with other ones, specifying your PS3 ip address (for example 192.168.0.10):
Compile and install ps3load under samples directory, just like the previous VideoTest.Code:export PS3LOAD=tcp:192.168.0.10
Once loaded on PS3 you'll be welcomed (at least for now) with a nice black screen: this is normal.
You can now compile other samples with usual make command, then run over the network with:
A lot easier, uh?Code:make run
Hello World!
You can start your own "hello world" program using the template under PSL1GHT directory.
Here it is mine (using libpng).
Happy coding!
More PlayStation 3 News...
13261 HeyManHRU
13219 PS3 News
11307 elser1
11169 oVERSoLDiER
9248 GrandpaHomer
8628 Tidusnake666
7968 saviour07
7340 condorstrike
7258 deank
6858 OGroteKoning
25103 PS3 News
5279 Starlight
2964 HeyManHRU
2178 elser1
2174 CJPC
1815 cfwprophet
1756 her0
1573 oVERSoLDiER
1294 GrandpaHomer
1080 barrybarryk






