Wednesday, January 12, 2011

[MAC]PSL1GHT + PS3Toolchain

Maybe you already noticed that the PS3 got pwned :).
Months ago I used an OpenKubus USB Stick to run Homebrews on my second PS3. But this is past... I'll update soon up to CFW 3.55 without using the OKUSB.

I always wanted to write some applications for PSP PS3 or something. I started a game on PSP years ago but I lost the time to spend + I sold my PSP Slim like 5 months ago for buying the PS3 Slim :D... I'm sad but I haven't used the PSP that much anymore because the iPhone is a way better MP3 Player and more useful :)

So I found the PSL1GHT + PS3Toolchain stuff and started yesterday to Install it.
Oh yes I switched to Mac and its a lil bit different to Windows+Cygwin ;0.
Well I used to find out + how to build an environment on Mac OS X SL. I googled and only got bigboss' blogentry. It's the only worth Tutorial I got there. + got helped there a lot :) thx bigboss

- To start with fink on SL you would need the Source: Link
- choose 64bit Install (to start Fink later: source /sw/bin/init.sh)
- libelf (needed for sprxlinker) + wget Install: sudo fink install wget libelf
- Create PS3DEV Directory + Git:
mkdir -p /usr/local/ps3dev/git
cd git
git clone git://github.com/HACKERCHANNEL/ps3chain or git://github.com/ooPo/ps3toolchain
- Adding EnvironmentVars to .profile:
pico .profile
->Insert:
PS3DEV=/usr/local/ps3dev;export PS3DEV
PSL1GHT=$PS3DEV/psl1ght;export PSL1GHT
PATH=$PATH:/usr/local/ps2dev/bin:$PS3DEV/bin:$PS3DEV/ppu/bin:$PS3DEV/spu/bin:$PSL1GHT/bin;export PATH
PS3LOAD=tcp:YOURPLAYSTATION3IP;export PS3LOAD
->Save(CTRL+O) - restart Terminal
- Test: echo $PS3DEV should return /usr/local/ps3dev
- execute $PS3DEV/git/ps3toolchain/toolchain.sh and wait..........
- error while compiling psl1ght: linker.c:1:20: error: libelf.h: No such file or directory
- change in psl1ght/psl1ght/tools/sprxlinker/Makefile :
INCLUDE := /sw/include /sw/include/libelf
and
LDFLAGS := -L/sw/lib -lelf
- make install
>>Installed to /usr/local/ps3dev/psl1ght
- continue with 012-ps3libraries.sh

--------Environment is ready-----------

Test:
- compile PSL1GHT/samples/ps3load/Makefile
- run make pkg

there you have a pkg :)


To Be Continued...


Credits: @bigboss

2 comments:

  1. Thanks for this, it was helpful - I used Homebrew rather than fink, I just think it's a little more "appley". I didn't have to fix psl1ght up either because it found libelf from the brew install.

    ReplyDelete