I just wanted to add a thank you to all who worked on the tools listed below or helped me work out the issues while building the ps3toolchain these include and are not limited to:
Failoverfl0w
Geo-hot
ooPo
zeldin (zeldin is cool and completely helped work out some issues)
kakaroto
Installation guide for Fail0verfl0w ps3tools, geoHot-publictools, Psl1ght, ps3toolchain, and ps3libraries on Mac OsX 10.6.7 and Mac OsX 10.5.8. I tried to make this as simple as possible for those who are new and want to learn, so somethings may seem over explained and obvious to the experienced user.
If you find I have missed something, or are having a problem please make me aware.
first things that are needed are to install X11 and Xcode get them from your OsX install dvd or from Apple developers site just register, it is free, and download the latest version.
Apple Developer
PPC 10.5.8: you will need Xcode 314_2809_developerdvd.dmg
Intel 10.6.7: you will need Xcode 3.2.6_and_ios_sdk_4.3.dmg
next go to the MacPorts website and download the latest and install.
The MacPorts Project -- Home
when that is all done start up terminal and start installing all the ports needed. Do them one at a time and add +universal at the end of the port you are getting. so in terminal type:
sudo port install autoconf +universal
now this will grab a bunch of dependencies that are needed and take a moment to complete. The easy way to do the rest of the ports you need is to use the up arrow key to see your last entered command and then delete autoconf and enter the next on the list.
so do this list of ports:
autoconf bison flex textinfo ncurses wget libelf zlib openssl python27 libtool libmpc gmp (Even though we are installing gmp thourgh port install we will still need to do manually{see below}) mpfr gcc45 nano m4 gzip
To make things organized in your home directory make a folder labeled ps3-installs. This is where you want to put all the source code that you will be installing.
GMP installation, download the version you need:
PPC 10.5.8:
ftp://ftp.gnu.org/gnu/gmp/gmp-4.3.1.tar.bz2
Intel 10.6.7:
ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.1.tar.bz2
Directions to install gmp for both 10.5.8 and 10.6.7 just use the above specified file for your Os.
extract gmp to your ps3-installs directory. then in terminal type:
cd /users/home.directory.name/ps3-installs/gmp-5.0.1
aclocal
mkdir build
cd build
the first command changes the directory to gmp, update the configure files and then we made a folder in the gmp folder called build which we then changed to.
now we have to configure gmp from the build directory to do that open the gmp folder and find the configure file and drag it into the terminal then make sure there is only one space after the configure and copy paste the following into terminal after configure:
--enable-cxx --enable-mpbsd --enable-static --with-gnu-ld
should look like the below and hit enter, let it configure then type make, make check and you should get no errors then type sudo make install.
/users/home.directory.name/ps3-installs/gmp-5.0.1/configure --enable-cxx --enable-mpbsd --enable-static --with-gnu-ld
make
make check
sudo make install
Next you will need to install pkg-config you can get the latest from here:
http://pkgconfig.freedesktop.org/rel...ig-0.25.tar.gz
or see
Index of /releases
extract to your ps3-installs directory and in terminal type:
cd /users/home.directory.name/ps3-installs/pkg-config-0.25
aclocal
./configure
make
make check
sudo make install
Next we need to install automake-1.10 go to here to download.
Index of /gnu/automake
or
automake-1.10.tar.gz
download and extract to ps3-installs then in terminal:
cd /users/home.directory.name/ps3-installs/automake-1.10
./configure
make
sudo make install
After all of the installs are done sync and upgrade your ports by typing:
sudo port -v selfupdate
then
sudo port upgrade outdated
Then you need to install git go to:
Downloads - git-osx-installer - OSX Installer for Git - Google Project Hosting
find the version for your Os. Mount the image and install.
You will also need to install the Nvidia cg tool kit. you will need to register, takes a few moments. please go here: Cg Toolkit | NVIDIA Developer Zone
Find the image install for OsX. once you have downloaded the Cg toolkit mount image and install.
Then while we are here doing all these installations lets put the .ps3keys where they need to be to use some of the tools that we are building. First lets get the keys and some tools by cloning with git, change directory to ps3-installs and clone, so in terminal type: (if a the cloning process stalls hold 'control' and press 'c' to cancel the try again)
cd /users/home.directory.name/ps3-installs
git clone git://git-hacks.com/allps3tools/allps3tools.git
and then clone the ps3tools from gitbrew.org git, they are the Fail0verflow's tools released after 3-25-11 that are needed to use Ps3mfw and more.
git clone git://git.gitbrew.org/ps3/ps3tools.git
look in the ps3-installs folder for what you just cloned and then look for kakaroto-ps3keys and take notice of geohot-ps3publictools and the ps3tools from gitbrew.
Then we need to put the keys in a folder labeled .ps3 in your home directory. Folders labled 'dot' anything on OsX is a system folder and is invisible. My home directory is nevik. Terminal always starts up in your home directory, so start a new terminal shell and type:
sudo mkdir .ps3
then in Finder go to the 'go' menu and select 'go to folder' and type the path to the folder we just created mine would be:
(there are other methods to 'show all files' but most of these reset the finder and if you are running anything when you do this it will stop that process, so my opinion, try and use the 'go to folder' to find things invisible)
/users/nevik/.ps3
this will open that folder for you, copy the keys into there and it will ask for your password supply it.
Now install the ps3tools that are in your ps3-installs directory. enter the following into the terminal:
cd /users/home.directory.name/ps3-installs/ps3tools
./autogen.sh
./configure
make
sudo make install
This just installed:
sceverify readself readself2 unself unself2 makeself self_rebuilder ungpkg norunpack pupunpack puppack unpkg pkg cosunpkg cospkg undat dat unspp eidsplitr scekrit
These tools do a lot of things one example is take a PS3UPDAT.PUP 3.55 or below and put it in your home directory and in terminal enter:
pupunpack PS3UPDAT.PUP pup-extract-test
this will extract the pup's contents to a folder you just created named pup-extract-test. check out the files only alter anything if you know what you are doing!
Build geohots public tools.
cd /users/home.directory.name/ps3-installs/geohot-ps3publictools
make
This builds the files make_self make_self_npdrm and package_finalize
You can use these tools to make EBOOT.ELF to EBOOT.BIN and to sign a pkg for a CFW. Example being I wanted to sign the Snes.Multiman.pkg for WT-Geohot Cfw. Place the .pkg file you wish to sign in the same folder as the package_finalize from geo-hot publictools make sure there are no spaces in the package name, so I renamed mine to Snes.Multiman.pkg and in terminal change directory to where the pkg file is and type:
./package_finalize Snes.multiman.pkg
This .pkg will now be installable on a Cfw that requires Geo-hot npdrm.
Now to build the Ps3toolchain and Psl1ght and the libraries. You should only need to clone the ps3toolchain because in running it Psl1ght and the ps3libraries are installed, here are all the links you may need.
In terminal:
cd /users/home.directory.name/ps3-installs
git clone git://github.com/nevik/ps3toolchain.git
then if needed:
git clone git://github.com/nevik/PSL1GHT.git
git clone git://github.com/nevik/ps3libraries.git
Find the ps3toolchain folder you just cloned. Move it to your ps3-installs folder and look in the scripts folder. We need to change a few lines in the gcc scripts. We will use nano. it is important to know this because the ps3toolchain is updated all the time and you may need to use a different fork than the one I provided. So open a new terminal and you are going to type sudo nano (nano is a document editing program) and hit the space bar then drag the 002-gcc-4.5.2-ppu-stage1.sh file into terminal and press enter. this will open the file in nano for editing. use the directional arrows on the keyboard to go down till you see
--enable-lto \
change it to
--enable-lto --with-libelf=/opt/local --with-libiconv-prefix=/opt/local\
when you copy paste the change, the text will jump half line go to the part furthest to the left and remove the one space to bring it back up into the correct line. then use 'control x' to exit, 'y' to yes you want to save and 'enter' to overwrite current file.
do this for all the gcc scripts: 002,004,008 and 010.
in the future if you build from another fork or source of the ps3toolchain you will need to alter the gcc.xxx.xxx.sh files.
We need to make the directory that the toolchain and psl1ght will build into. In terminal type:
sudo mkdir /usr/local/ps3dev
Then in terminal type:
export PS3DEV=/usr/local/ps3dev
export PSL1GHT=$PS3DEV/psl1ght
export PATH=$PATH:$PS3DEV/bin
export PATH=$PATH:$PS3DEV/ppu/bin
export PATH=$PATH:$PS3DEV/spu/bin
You will need to enter the above into terminal each time you wish to use psl1ght.
this is going to build to a folder in the system that is hidden and you can use the 'go' menu to find. In Finder go to the 'go' menu and select 'go to folder' and type:
/usr/local
now in terminal type:
cd /users/home.directory.name/ps3-installs/ps3toolchain
sudo ./toolchain-sudo.sh
now kick back and wait.
When done without closing the terminal window go to the ps3toolchian/build/psl1ght/samples folder copy it to your ps3-installs folder . in terminal change directory to the samples folder and type 'make' it will build all the samples.
Sometimes the Ps3toolchain errors when it can't download a file or a download is interrupted. If you need to rerun the toolchain make sure to delete the files it created in the ps3dev folder as it needs to rebuild and relink everything. in the ps3toolchain folder you may need to delete the folder or the file it exited on but not everything it already successfully completed. I have run into a problem where a file won't download and wget for mac won't retry it will error you can download the file manually and place it where it needs to be and rerun the chain or change the script with nano to a working link for you but don't share the script because that link may not always be avaiable.
I have had complete success with the above method and links on a G4 10.5.8 and an Intel 10.6.7.
Hope this helps


4Likes
LinkBack URL
About LinkBacks




