Ps4ProGamer

Senior Member
Contributor
Here's a PS4 Linux on Slim installation guide from ecHs, to quote: Hi everyone,

i have successfully started linux on my CUH-2016B slim.

here is what i have done so far (and the problem that remains: video output):

1. compile a ps4pro compatible kernel
  • there has been a bug on newer linux/gcc versions but other then that it was straightforward
Code:
# we only need latest commit from the pro branch
$ git clone  fail0verflow + ps4-linux.git --branch=ps4pro --single-branch --depth=1
[*]
# apply fix for ilog2 bug (see git:kernel:org pub + scm + linux + kernel + git + torvalds + linux.git + commit + ?id=474c90156c8dcc2fa815e6716cc9394d7930cb9c), needed to build on newer linux versions
# just apply the attached patch

# copy old kernel config over
# linux + master + scripts + extract-ikconfig
$ extract-ikconfig bzImage > .config

# check config and build
$ make menuconfig
$ make
2. update initramfs to include static networking and a reverse shell
  • sets eth0 to a static IP address and for the sake of simplicity i just generated some initramfs for common IPs.
  • The PS4 IP will always be .245 (e.g. for 192.168.0 it will be 192.168.0.245)
  • on your Host you have to open Port 1337 and the IP has to be .244 (you can change that inside the initframfs if you know how)
This is currently working but i have no video output yet. maybe someone can look into this.

In theory this should work on all models that had problems before (12xx / 20xx / 70xx) but i only have a CUH-2016B Slim with 4.05.

I will try to boot the modified fedora image and see if i can do anything about the video output. maybe an usb DisplayLink adapter will work for now.

Also the loader did not work 1/3 of the time, but you can see if it did by checking the power LED. once linux is loaded it should be blue with white pulses every 2 seconds.

Usage
  • copy bzImage and a initramfs.cpio.gz file that matches your network (or setup your Host accordingly), (make sure to rename initramfs.cpio.gz)
  • use normal PS4 Linux Loader payload (as an exploit i used IDC)
  • open Port 1337 with netcat
Code:
nc -l -p 1337 </dev/stdin
  • once PS4 linux has started you should see a shell prompt in your terminal! :)
Download

includes kernel image and initramfs for 192.168.0.X / 192.168.1.X / 192.168.2.X / 10.0.0.X networks
  • ps4-linux-pro.zip (13.9 MB)
  • MD5 af5f285287a2c19bef16c3c9e614bb4f
  • SHA256 169d12a5a2f4a9e5cc263522c4dd2717fd5774c47c03356f5c03eb99a3f4118b
# updated kernel for Slim (ID 9923)
  • bzImage (5.4 MB)
  • MD5 9d7cf3c18e7807a679291ffd363dc7df
  • SHA256 dd6ca032ac079c605b9d9c40fe73d8b03023028195155a5cc37d3381269a1d94
Debug

lspci

Spoiler


cpuinfo

Spoiler


dmesg

Spoiler
 

PSXHAX

Staff Member
Moderator
Contributor
Verified
Thanks for the heads-up on this @Ps4ProGamer! (y)

I moved it to a separate thread and re-linked it so those with a PlayStation 4 Slim who give it a try can report their results here, as the other thread focuses more on Fedora with Steam and emulators versus trying to get 4.05 PS4 Linux working on a Slim.
 

Ps4ProGamer

Senior Member
Contributor
I just made a link somewhere forgot really from the gbatemp source I have no effort in making this thread rofl ;) I was like what how did this happen? lol but thanks psxhax (y) for posting this hopefully we can get linux running on those slims :)
 

PSXHAX

Staff Member
Moderator
Contributor
Verified
How it happened is by following the Rules, specifically this one:
  • No spam / recruiting: include linked content referenced in your post
What that means is, blind links without any content or value added is a no no... so the guide was included with the GBATemp link to fulfill this requirement.

In other words, those who are lazy and just spam links will find their posts updated by the Staff to comply with the rules here. ;)
 

Califfis

Member
Contributor
This weekend i try on ps4 slim and ps4pro but i have zone question: ps4slim and ps4pro have a same CPU but different clock, why haven't 2 type of kernel
 

shimon albo

Member
Contributor
Linux don't work on PS4 models CUH-12xx (fat), CUH-2xxx (slim) and CUH-7xxx (pro) because they have the same HDMI decoder chip (MN864729 from Panasonic).

This chip is so confidential that no one around me has managed to find drivers, information or datasheet (even on internet)

Solve this problem may make Linux able to run on any PS4 model.
 

PSXHAX

Staff Member
Moderator
Contributor
Verified
Another update via FabOne from eeply:
PSXITArch Linux based on Arch Linux:

:arrow: Below are some RPCS3 emulator videos from SOUNDTRICK on YouTube via deadfortoday:

SoulCalibur IV RPCS3 ON PS4 LINUX
Dragon Quest Builders RPCS3 ON PS4 LINUX
Ni no Kuni: Wrath of the White Witch RPCS3 ON PS4 LINUX
 
Recent Articles
Mednafen PlayStation 4 Emulator v0.3 Config Mod Update via Markus95
Following the Mednafen PS4 2-Players Config Mod and his recent N64 PS2 on PS4 Port Demo, developer @Markus95 (aka @Kus00095) shared via Twitter a PS4 Mednafen v0.3 configuration update featuring...
Final PlayStation State of Play for 2019 Next Week, No PS5 News Planned
Today Sony announced their final 2019 PlayStation State of Play Conference will take place next Tuesday, December 10th at 6:00am Pacific Time / 9:00am Eastern Time. ❄ Their previous PS State of...
PS4 CEX2Semi-DEX: CEX Console with DEX Debug Settings via LightningMods
Following his previous release, PlayStation 4 developer @LightningMods shared a screenshot on Twitter of what he calls PS4 CEX2Semi-DEX geared towards those with a retail jailbreakable PS4 5.05...
PS4 IOCTL Nabber IDA 7.0-7.2 Script for IOCTL Requests by SocraticBliss
Proceeding his PS4 Module Dumper Payload and PS4 Kernel Fixup Script, PlayStation 4 developer @SocraticBliss (Twitter) added a PS4 IOCTL Nabber to his Github repository for use with the IDA...
Top