Following the PS4 *** Installer Script, PlayStation 4 developer @BadChoicesZ recently shared a guide to PS4SDK setup on Windows using either CTurt's PS4 *** or PS4Dev's PS4SDK with details below.
To quote via the Pastebin from BadChoicesZ:
Update: Below is another tutorial on How To Setup the PS4SDK on Windows 10 by 0x199 for those interested, to quote:
Today I'm going to explain how to setup the PS4SDK on Windows 10. Get that VM out of the way, it's time for the real deal.
Requirements
Part 1: Installing Bash on Ubuntu on Windows 10
First things first, we're going to enable developer mode on your Windows 10 desktop.
Go to Settings -> Update and Security -> For Developers -> Developer Mode.
Now head over to the Control Panel and click Programs. Once there, click "Turn Windows Features On or Off" under Programs and Features. A list will appear:
Enable "Windows Subsystem for Linux (Beta)" in that list and click OK. Reboot your desktop so Windows 10 can install Bash.
Once restarted, type in the search bar "bash" and hit enter.
The first time you run the bash.exe file, you'll be prompted to accept the terms of service. The command will then download the "Bash on Ubuntu on Windows" application from the Windows Store. You'll be asked to create a user account and password for use in the Bash environment.
Just follow the setup.
When you're being asked for your username, enter anything but "root", same goes for your password.
You're now done with setting up Bash on your Windows 10 desktop.
Part 2: Installing the *** on Bash
So the first thing we want to do is install updates. For this, we type in Bash the following:
It will ask you for your password, enter the password you used in the setup.
Now we're going to install the required packages to build our ***:
Once that's done, we're going to pull our ***. Type the following:
And hit enter. This will install the *** to /home/yourusername/PS4-***.
Time to set up our environment variable for the *** and export the ***. Type the following:
This will open .bashrc, go to the very end of the file using the arrow down key.
Once at the end of the file, type this:
And now save the file using CTRL + X, hit Y and press enter like last time.
Now refresh Bash:
Part 3: Getting the *** Ready
We're going to CD to our ***:
Once there, type
And type
The *** library libusbfatfs will now be ready. Just one more to build.
CD back to the PS4-*** like so:
Now CD into libPS4:
And type
(Ignore this if you're not on Windows 10: If you're on Ubuntu and getting a __dev_t declaration error, please click here for a fix.)
Some users may experience an error. If you got an error, do the following:
There will be these lines at the top of the file:
Uncomment the second line and comment the third one, like so
And now save the file using CTRL + X, hit Y and press enter. Type make again and it should compile correctly.
The PS4 *** has been setup now and is ready to compile payloads.
Part 4: Compiling Payloads
To compile payloads, you want to CD into the payload folder and type make. This will compile your payload so you can inject it into your PS4.
Things should be a lot easier now that you don't have to boot up a VM everytime to compile a simple payload. Thanks to ZeraTron for helping me out fixing errors! Happy modding!
Update #2: Here's another tutorial from FBML via email on How to Setup the PS4SDK on Windows 10 Without VM:
Spoiler
Cheers to both @HydrogenNGU and @raedoob for sharing the news in the PSXHAX Shoutbox!
To quote via the Pastebin from BadChoicesZ:
Code:
#
# BadChoicesZ guide to PS4SDK setup on Windows:
# using CTURTS ***, although can use PS4DEV's *** aswell.
# revision 2.0
#
1.
# Download cygwin x86_64 from browser:
# https://www.cygwin.com/setup-x86_64.exe
2.
# Create folder:
C:\cygwin64
# And copy the setup-x86_64.exe into it.
3.
# setup (using cmd.exe)
cd C:\cygwin64
setup-x86_64 -q -P wget,tar,qawk,bzip2,subversion,vim
4.
# Download/install apt-cyg using the cygwin terminal:
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin
5.
# Install required. ( using cygwin terminal )
apt-cyg install nano git make python binutils clang
git clone https://github.com/kR105/PS4-dlclose.git
git clone https://github.com/CTurt/PS4-***.git
6.
# make Environmental variable "PS4SDK" point to PS4-***'s folder.
# replace <user> with profile name..ie. BadChoicesZ
export PS4SDK=/home/<user>/PS4SDK/PS4-***
7.
# Install GCC -
# Run the cygwin installer again "setup-x86_64.exe" this time by double clicking on it ( not using cmdline )
# and make sure to download the GCC as shown below.
# https://i.stack.imgur.com/E4uZh.png
# (just click on the 'skip' to toggle install..)
8.
# Compile Cturts *** ( Could also use PS4DEV's.. )
cd PS4-***
cd libPS4
make
cd ..
cd libusbfatfs
make
cd ..
9.
# you can now compile projects with ps4sdk on windows.
Today I'm going to explain how to setup the PS4SDK on Windows 10. Get that VM out of the way, it's time for the real deal.
Requirements
- Desktop with Windows 10 installed
Part 1: Installing Bash on Ubuntu on Windows 10
First things first, we're going to enable developer mode on your Windows 10 desktop.
Go to Settings -> Update and Security -> For Developers -> Developer Mode.
Now head over to the Control Panel and click Programs. Once there, click "Turn Windows Features On or Off" under Programs and Features. A list will appear:
Enable "Windows Subsystem for Linux (Beta)" in that list and click OK. Reboot your desktop so Windows 10 can install Bash.
Once restarted, type in the search bar "bash" and hit enter.
The first time you run the bash.exe file, you'll be prompted to accept the terms of service. The command will then download the "Bash on Ubuntu on Windows" application from the Windows Store. You'll be asked to create a user account and password for use in the Bash environment.
Just follow the setup.
When you're being asked for your username, enter anything but "root", same goes for your password.
You're now done with setting up Bash on your Windows 10 desktop.
Part 2: Installing the *** on Bash
So the first thing we want to do is install updates. For this, we type in Bash the following:
Code:
sudo apt-get update
Now we're going to install the required packages to build our ***:
Code:
sudo apt-get install make
sudo apt-get install clang
sudo apt-get install gcc
sudo apt-get install llvm
sudo apt-get install binutils
Code:
cd ~
git clone https://github.com/idc/ps4-payload-*** PS4-***
Time to set up our environment variable for the *** and export the ***. Type the following:
Code:
sudo nano .bashrc
Once at the end of the file, type this:
Code:
export PS4SDK=~/PS4-***
Now refresh Bash:
Code:
source ~/.bashrc
We're going to CD to our ***:
Code:
cd PS4-***
Code:
cd libusbfatfs
Code:
make
CD back to the PS4-*** like so:
Code:
cd ..
Code:
cd libPS4
Code:
make
Some users may experience an error. If you got an error, do the following:
Code:
sudo nano source/syscall.s
Code:
#If your assember complains about the following uncommented line change it to:
#.section .sc_rop,"w"
.section .sc_rop,"wb"
Code:
#If your assember complains about the following uncommented line change it to:
.section .sc_rop,"w"
#.section .sc_rop,"wb"
Code:
make
Part 4: Compiling Payloads
To compile payloads, you want to CD into the payload folder and type make. This will compile your payload so you can inject it into your PS4.
Things should be a lot easier now that you don't have to boot up a VM everytime to compile a simple payload. Thanks to ZeraTron for helping me out fixing errors! Happy modding!
Update #2: Here's another tutorial from FBML via email on How to Setup the PS4SDK on Windows 10 Without VM:
Spoiler
Cheers to both @HydrogenNGU and @raedoob for sharing the news in the PSXHAX Shoutbox!