PDA

View Full Version : 3.40 SDK - Installation in Windows



pete_uk
01-04-2012, 01:40 PM
PS3 3.40 SDK Installation. Tested on Windows XP & 7 (64 & 32)
PART 1: Installing the SDK & MinGW/MSYS

PLEASE NOTE:


Unfortunately I am unable to provide links to the SDK, so you will need to find them for yourself.
Try searching for “PS3.Full.3.40.SDK.PS3-DUPLEX”


Extra Software Required

To use the SDK in Windows, we first need to install a compiler environment for the SDK to use. For this we are going to use MinGW & MSYS.
Download "Tools.zip" from http://www.multiupload.com/1S32GOPPFQ and extract its contents to a folder somewhere.

Browse to the folder you extracted tools.zip to, then:

1. Launch “mingw-get-inst-20100909.exe”
Once the installer starts, click “Next” 3 times and then accept the agreement, click “Next” another 4 times and then click “Install”. The installation will then complete and click “Finish”.

2. Launch “MSYS-1.0.11.exe”
Click “Yes” on the box that appears, click “Next” and then accept the agreement. Click “Next” 3 times and then “Install”. It will then ask if you would like to perform a post install, Press Y then enter, Press Y then enter again, input c:/MinGW then press any key. Un-tick the 2 boxes and the click “Finish”.

3. Launch “msysDTK-1.0.1.exe”
Click “Yes” on the box that appears, click “Next” and then accept the agreement. Click “Next” twice then click “Install”. “Click” next then “finish”.

SDK Installation

Browse to the folder that you extracted your SDK installer to then:

1. Launch “PS3SdkInstaller.exe”

2. Click “Next” on the first screen then select “Install (Offline)”

3. You can install the whole SDK if you wish, but for basic compiling we only need to select the following:

Tools (Generator / SN / ...) -> SN Tools (Debugger / Tuner / Compiler) - 340 -> [Compiler] SNC PPU Toolchain for Playstation(R)3 - 340.1
SDK - 340_001
SDK Patch (SDK 341) - 341_001
[Compiler] SNC PPU Toolchain for Playstation(R)3 - 340.1
[Compiler] Toolchain(Compiler) GCC4.1.1 - 340_001
[Sample] Extra SDK Samples (CgTutorial Sample) 240_001
[Sample] Extra SDK Samples (Codec Sample Data) - 1.0
[Sample] Sample Showcase - 1.0
[Sample] SDK Sample Package 340_001

4. Click “Next” and then “Install”

5. Once the installer has completed, click “Finish”

Final Configuration

Now that the SDK and MSYS environments are installed, we need to make a change to MSYS’s configuration to set the PS3 SDK as the Home folder.

Browse you computer to “c:\Msys\1.0\etc” and right click on “profile” and select open. Select “Wordpad” and then “OK”

Scroll down until you find the line “# Set up USER’s home directory” and change HOME=”/home/$LOGNAME” to HOME=”c:/usr/local/cell”
And then Save.

Signing / Packaging Tools

As the PS3 SDK will by default only produce “Debug” packages and “Fake” SELF files which will only work on DEBUG/TOOL PS3s, we need to add some signing and packaging tools to the SDK.
These are make_self.exe, make_self_npdrm.exe, psn_package_npdrm.exe and some DLL libs.
I have uploaded a zip containing the tools you will need.
Download “sign&pack.zip” from http://www.multiupload.com/X55VC8QA3E and extract the contents to “C:\usr\local\cell\host-win32\bin”

That is the PS3 3.40 SDK and MSYS compile environment setup and ready to go.


PART 2: Compiling, Signing and Packaging Twinaphex’s Snes9x-Next
(http://www.ps3crunch.net/forum/threads/2234-3.40-SDK-Installation-in-Windows?p=24124#post24124)

Rautz
01-04-2012, 05:13 PM
Shit yeah! Awesome stuff mate :) Cant wait for Part 2 since I tried to build/package a Twinapex emulator a while ago and failed miserably :(

pete_uk
01-05-2012, 11:17 AM
PART 2: Compiling, Signing and Packaging Twinaphex’s Snes9x-Next


The easiest way to get the current sources of Twinaphex’s emulators is to use GIT to clone his Github repositories.
Download GIT from http://msysgit.googlecode.com/files/Git-1.7.8-preview20111206.exe and start the installer. Keep clicking “Next” and accept any agreements until you get to “Adjusting your PATH environment”, Select “Run Git from the Windows Command Prompt” and click “Next” twice. Click “Finish” to complete the installation.

Using Git to Acquire Sources

Start “Windows Command Prompt” and enter:

cd c:\usr\local\cell

To keep things tidy inside the SDK folder, Make a folder by entering:

mkdir Emus
and then enter the folder by typing:

cd emus

To download the current source of Snes9x-Next enter:

git clone https://github.com/twinaphex/snes9x-next
Now close the command prompt.

Compiling Snes9x-Next

Start MSYS and change to the folder that you downloaded the snes9x source to by entering:

cd emus/snes9x-next

We now need to start the build process. Twinaphex includes in the source a script to build different versions. To build the stand alone version of snes9x, we need to enter:

compile_ps3.sh make

The build process will take a few minutes to complete.

Once it completes, we need to sign the elf and move it to the correct location.
To do this, enter:

make_self_npdrm snes9x-next-ps3.ppu.elf ps3/pkg/usrdir/EBOOT.BIN SNES90000

Now we need to package it all together by first changing to the correct folder:

cd ps3/pkg

And then enter:

psn_package_npdrm

That is the build procedure complete. Close Msys and browse to c:\usr\local\cell\emus\snes9x-next\ps3\pkg and you will find IV0002-SNES90000_00-SAMPLE0000000001.PKG ready for installing.

The Easy Way:

To make the process easier I have created a batch file to do all of the work for you and create a Multiman Version.

Download http://www.multiupload.com/5WL5WLGXON to “c:\usr\local\cell\emus\snes9x-next”
Start “MSYS” and enter the following:

cd emus
cd snes9x
make_mm.bat
exit

If you now browse you computer to c:\usr\local\cell\emus\snes9x\ps3\pkg you will find IV0002-SNES90000_00-SAMPLE0000000001.pkg