Tutorial How to install Payload-SDK for 4.05 by IDC (3226:2143) in Ubuntu (17.10 included)

ConsoleHax

Administrator
Staff member
Jul 31, 2016
7
3
3
www.consolehax.com
#1
This is a tutorial for those of you who want to build payloads from source in Ubuntu. This tutorial is written for Ubuntu 16.04 - 17.10, but with an extra and necessary step for Ubuntu 17.10 users because otherwise it'll throw you an error. If you run a lower version, you should be able to build payloads without the extra step. This should in theory also work for other Ubuntu distributions as long as they are installed with ENGLISH as main language (Xubuntu etc.).

Requirements:
  • Ubuntu 16.04 or higher installed and configured
  • IDC's Payload SDK (download here (click on clone or download and choose Download Zip))

Step 1: Put the required files in Desktop
  1. Extract ps4-payload-sdk-master.zip that you downloaded earlier
  2. Open the extracted folder and copy/cut all files and folders
  3. Navigate to your Desktop and create a new folder PS4SDK
  4. Paste the folders and files in the PS4SDK folder
Your directory should now look like this:


Step 2: Getting the SDK to work
  1. Open Terminal (CTRL+ALT+T) and typ: sudo apt-get update
  2. In Terminal typ: sudo apt-get install binutils
  3. In Terminal typ: sudo apt-get install llvm
  4. In Terminal typ: sudo nano /etc/environment and press enter
  5. Start a new line and typ: PS4SDK="/home/yourusername/Desktop/PS4SDK"

  6. Press CTRL+X to exit and save changes by pressing Y

IMPORTANT: After the installation of both packages is completed, restart Ubuntu.


Step 3: Prevent errors
  1. Navigate to /Desktop/PS4SDK/libPS4/source and open syscall.s with a text editor
  2. Uncomment the line: .section .sc_rop, "w"
  3. Comment the line: .section .sc_rop, "wb"
It should look like this:


THE NEXT STEP IS ONLY REQUIRED IF YOU ARE WORKING WITH UBUNTU 17.10!
  1. Navigate to /Desktop/PS4SDK/libPS4/include and open types.h with a text editor
  2. Comment the line: typedef uint32_t __dev_t; (change it to /* typedef uint32_t __dev_t; */)

STEP 4:
  1. Open PS4SDK/libusbfatfs and right click in the folder
  2. Choose 'Open in terminal'
  3. Typ: make

STEP 5:
  1. Open PS4SDK/libPS4 and right click in the folder
  2. Choose 'Open in terminal'
  3. Typ: make

Done! You should now be able to compile payloads. To be sure navigate to examples, choose an example, open the folder, right click, choose open in terminal and typ make. You should now see a .bin file in the folder, that's an example payload.