Hacking [RELEASE] PS4 Gentoo by mircoho

mircoho

Active Member
OP
Newcomer
Joined
Mar 23, 2018
Messages
42
Trophies
0
Age
35
Location
Switzerland
XP
254
Country
Switzerland
## How to Install Gentoo and Turn Your PS4 into a Emulation Station

## ✏️ Intro:
If Your System Firmware is 5.05, you already know that you have the luck to use a Kernel Exploit which gives you the ability to run a Linux Distribution.
The principle is the same as Fedora for firmware 1.76, you need to copy the image file to a USB stick or hard drive. You can use the tools "RUFUS" (GUI) in Windows, Etcher for MacOSx or DD under Linux, After installation, you can enlarge the Linux partition with Gparted in Gentoo, for example if you have installed it on an SSD or HDD on the USB 3.0 port.

My Models CUH-1006A and CUH-7016B


greez mircoho
have fun ;):yayps3::switch::psp::psp::yayswitch::yaypsp::wub::wub:


gentoo4.png


small video about gentoo (https://mega.nz/#!VRUC1QCJ!98DfDKPPToQzAPEzLDwbWUE2d9xmLmWs6XnfH_iFbaM)


## Prerequisites
- A dedicated 12GB+ Usb Stick better a HDD / SSD for more Speed

- PS4Gentoo image: [Mega-Link](https://mega.nz/#!NUFjVIqY!qHKN1yJvi-cLZMClVpJ55kuIEc6TByovoiFDkiZXlp4) ||| [G-DRIVE] https://cutt.ly/Yrc7RAK (Update: 17.01.2020)
- Rufus for Windows: (https://github.com/pbatard/rufus/releases/download/v3.8/rufus-3.8.exe)
- Etcher for Mac OSX: (https://www.balena.io/etcher/)

- PS4 Exploit Host (https://ps4gentoo.github.io) (thanks @Leeful for this nice Design)


## How under Windows

- Download [Gentoo] and [Rufus]
- Open Rufus
- Select the image of Gentoo and your target USB / HDD / SDD Device
- Then click on Start Once done,
- Plug your prepared USB / HDD or SSD drive into the USB port of your PS4
- Open this (https://ps4gentoo.github.io) on your PS4 Webbrowser
- Inject the linux load from USB payload 5.05 and Wait ...
exploit.jpg

- Autoboot doesnt work? replug the USB / HDD / SSD Drive and send this command ``` resume-boot ```
- If you have a freeze or nothing that happens on the screen trying again some Models have random crashes ...............

RESIZE the linux partition after installation VIDEO ---> https://mega.nz/embed#!1MlBBCIR!0ga5sVYVD9r8TcFzwkCIif6CsNicDFDWqr_Yy1mjSGc

- others? --> (https://github.com/ps4gentoo/ps4gentoo.github.io/issues)



## Info

Partition:1 FAT32 (initramfs/bzImage)
Partition:2 ext4 (ps4gentoo)

- Username: ps4
- Password: ps4

- Username: root
- Password: ps4
change the password!!


-change portage mirror in /etc/portage/make.conf with root
Code:
nano /etc/portage/make.conf
https://www.gentoo.org/downloads/mirrors

-VirtualManger KVM you need to run libvirtd with root before you can use
Code:
systemctl start libvirtd
or
Code:
systemctl enable libvirtd

VR User. Register the PSVR in SteamVR (after install SteamVR) command with user rights
Code:
 /home/ps4/PSVR/SteamVR-OpenHMD/./register.sh


## What works / what doesn't?

CUH10XX & CUH11XX
- Ethernet : works
- Wi-Fi : works
- Bluetooth : works
- Internal HDD: works
- Audio : works
- GPU : works
- GPU acceleration : works (via mesa), with Vulkan
- Power button : works
- BD Drive : works
- USB : works
- Power management / Suspend : suspend doesnt work shutdown and reboot : works

CUH12XX & CUH2XXX
- Ethernet : works
- Wi-Fi : works
- Bluetooth : works
- Internal HDD: works (only Beikal)
- Audio : works
- GPU : Works
- GPU acceleration : works (via mesa), with Vulkan
- Power button : works
- BD Drive : works
- USB : works for some Model
- Power management / Suspend : suspend doesn`t work, shutdown and reboot : works

CUH70XX PS4 Pro
- Ethernet : works
- Wi-Fi : works
- Bluetooth : works
- Internal HDD: WIP
- Audio : works
- GPU : works
- GPU acceleration : works (via mesa), with Vulkan
- Power button : works
- USB : WIP
- BD Drive : works
- Power management / Suspend : suspend doesn`t work, shutdown and reboot : works
```


## Changelog

- System updates, u.v.m...
- Emulationstation configuration for easy use!
-


## Installed Apps

- Internet:
Brave, Chrome (Browser), Telegram, Discord (Messenger), Filezilla (Ftp-Client)
- Game & Emulation:
Emulationstation (Front End -> Retroarch (AllinOne Emulator), Steam (Steam),
Lutris (Play Games on Linux), Chiaki (PS4rViewer), ScumVM,
pcsx, pcsx2, pcsx3 (PS1-3 Emulator), Dolphin (Gamecube Emulator)
- Multimedia & Graphics:
Kodi, Vlc, MakeMKV, Gimp, Gwenview, MuPDF, Spectacle, Simplescreenrecorder,
- System:
Geany, Gkrellm, Ark, krfb, AntimicroX, Gparted, Spectacle, Ksysguard, Kinfocenter,

**coming in next release



### Bugs


- Blackscreen problem for some Screens (Kernel)
- USB Host Controller doesnt work 100% for PS4 Pro! (Kernel)

### ☎️ for more Support Join us

[Telegram](https://t.me/ps4linux4homebrews)
| [Twitter](https://twitter.com/mircoho)


### Gentoo-Sources

Linux Kernel: [Link](https://github.com/ps4gentoo/ps4-linux)
Linux Loader: [Link](https://github.com/ps4gentoo/PS4-Linux-Loader)
Linux Video Driver for gentoo: [Link](https://github.com/ps4gentoo/ps4-overlay) (thanks marcan)


### Thanks To ❤️❤️

❤️Masterzorag (we love you) & EEEply (Linux) & @Leeful (Exploit Host Menü)❤️
- qwertyoruiopz, flatz, Specter, xVortex, Stooged, OpenOrbis, 5u770n, KiiWii, LightningMods, RetroGamer74, CelesteBlue, AlAzif, c0d3m4st4, EdiTzZ, Zecoxao, Zer0xFF
- eeply, valentino, rancido, astromatik, fabien, cedasill, shim and Team in telegram group



Edit: 10.02.20 - New Exploit Host Linux Loader # Thanks to @Leeful
 
Last edited by mircoho,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,029
Trophies
1
XP
5,683
Country
United States
Which is better... this one or Fedora 31 ? I have seen Fedora 31 on YouTube for PS4 and it is awesome linux for PS2 and Dolphin Emulator as well as Citra 3DS emulator.
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,357
Trophies
1
XP
6,340
Country
United Kingdom
Oh, didn't realise there was already a thread made here :P

Anyone tried installing this yet?
I'm trying now but having no luck
upload_2020-1-18_16-15-12.gif
My Ps4 is a Slim CUH-2016A.
I've written the image to my Usb hdd and loaded the Linux Loader as specified but after loading the loader I get a blackscreen. (no loss of signal just a blackscreen) I tried two different Monitors both the same :/
I tried both Linux Loaders:
Linux Gentoo++ = Just a blackscreen
Linux Gentoo = I get the Linux Penguin and a screen full of writing, then it goes black
upload_2020-1-18_16-15-12.gif

I've tried leaving it running and left it for 16mins or so still blackscreen.

If someone manages to install it can they record it? Does it install on first boot or does is it supposed to boot to Gentoo straight away?

Thanks
upload_2020-1-18_16-15-12.gif
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,357
Trophies
1
XP
6,340
Country
United Kingdom
...found a solution.
Downloaded and replaced this bzImage on my USB drive and Gentoo is booting fine.
Did you swap the initramfs.cpio.gz file too? I tried swapping the bzimage you linked but i'm still getting a blackscreen :/

EDIT: tried swapping the initramfs.cpio.gz also... still same :(
 
Last edited by ploggy,

ango

Active Member
Newcomer
Joined
Feb 5, 2012
Messages
30
Trophies
0
XP
47
Country
Germany
Doesnt boot on my PS4 Pro CUH-7116b with Baikal Chip !
Do you have a fixed bzImage and initramfs.cpio.gz like the one for the psxitarch distro?
Did you swap the initramfs.cpio.gz file too? I tried swapping the bzimage you linked but i'm still getting a blackscreen :/

EDIT: tried swapping the initramfs.cpio.gz also... still same :(

Swapped only the bzImage file.
If I change initramfs.cpio.gz too I got on boot an error:
"mounting label=psxitarch on /newroot failed --- no such file or directory"
BTW I got this error too if I only swap bzImage but booting goes on and Gentoo is firing up

I´m using MUXI505Pro exploit menu and the integrated payload "Linux Loader 2GB Vram" to boot Linux.
 
Last edited by ango,
  • Like
Reactions: ploggy
D

Deleted User

Guest
...found a solution.
Downloaded and replaced this bzImage on my USB drive and Gentoo is booting fine.

thanks for posting that thought it was only me

also not sure why my pictures look different when i got to that site but i should be using the linux load usb payload not the gentoo or gentoo ++? it a bit confusing....

so gentoo ++ was the trick for me! Not sure if changing my bzimage helped. But once I used gentoo ++ I am in!
 
Last edited by ,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,029
Trophies
1
XP
5,683
Country
United States
Swapped only the bzImage file.
If I change initramfs.cpio.gz too I got on boot an error:
"mounting label=psxitarch on /newroot failed --- no such file or directory"
BTW I got this error too if I only swap bzImage but booting goes on and Gentoo is firing up

I´m using MUXI505Pro exploit menu and the integrated payload "Linux Loader 2GB Vram" to boot Linux.

How do you use MUXI505Pro ?

There is no site for me to type on internet browser. I don't know how to use USB if that's what I am supposed to. How ?
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,357
Trophies
1
XP
6,340
Country
United Kingdom

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,357
Trophies
1
XP
6,340
Country
United Kingdom
Did you try this link I mentioned ? Use it... but I understand that you are using PRO ?

Mine isn't PRO and its MODEL CUH-1216A.
That's the link I've been using since yesterday :P No My PS4 is a Slim CUH-2016A dunno why my PS4 is so dodgy with this, PSXita installs fine :/
 
Last edited by ploggy,

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,029
Trophies
1
XP
5,683
Country
United States
That's the link I've been using since yesterday :P No My PS4 is a Slim CUH-2016A dunno why my PS4 is so dodgy with this PSXita installs fine :/

Try clean again and follow above very very carefully. I am saying that this host work fine for me because I want to test hosts to make sure they works before I can try it out but I didn't try this Linux, thought.. I am tempting to try it this week.
 
  • Like
Reactions: KiiWii and ploggy

ango

Active Member
Newcomer
Joined
Feb 5, 2012
Messages
30
Trophies
0
XP
47
Country
Germany
How do you use MUXI505Pro ?

There is no site for me to type on internet browser. I don't know how to use USB if that's what I am supposed to. How ?

...used this manual found here (used the android install) think its a normal payload linux loader ...
I have tested a lot the last hours.
Mostly my screen is black if I load the payload .(a known problem with some PS4, Gentoo is loading in the background, blue led on PS4 and external drive led are blinking) so I tried the "Linux Loader NoEdid" . This Payload is working fine for me

PS4 Pro CUH-7116b
 
Last edited by ango,

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,357
Trophies
1
XP
6,340
Country
United Kingdom
Holy shit I got it booting :P What worked for me was a combo of bzImage and initramfs.cpio.gz from the PS4Kernel.zip from here: https://www.psxhax.com/threads/ps4-...-3-7-with-baikal-chip-patches-via-iguy0.7263/
and the v4.14 kernel Linux++ Payload. (I may have got away with just loading the v4.14 Kernel Linux++ payload i'm not sure, honestly now that it's booting I don't want to mess with it) :P
Thanks mate for your video mate it really helped me figure out where I could have been going wrong :)
 
D

Deleted User

Guest
Holy shit I got it booting :P What worked for me was a combo of bzImage and initramfs.cpio.gz from the PS4Kernel.zip from here: https://www.psxhax.com/threads/ps4-...-3-7-with-baikal-chip-patches-via-iguy0.7263/
and the v4.14 kernel Linux++ Payload. (I may have got away with just loading the v4.14 Kernel Linux++ payload i'm not sure, honestly now that it's booting I don't want to mess with it) :P
Thanks mate for your video mate it really helped me figure out where I could have been going wrong :)

cool what it turns out is going on is different models have to load different payloads. Very confusing. There is a thread on another forum that breaks it down. Since I guess it is against the rules to link to there I am going to post it here:

Bootmenü:

Linux USB for this payload you need a USB Stick for Boot into Rescue / Shell
- load the initramfs.cpio.gz & bzimage (kernel) from the FAT32 USB / HDD Partition

---

v5.3.7
- Loads the initramfs.cpio.gz & bzImage (kernel) from the PS4 Webbrowser Cache with Kernel 5.3.7
CUH 10XX & CUH 11XX works 100%
all others maybe blackscreen use 4.14 Kernel

v5.3.7++
- Loads the initramfs.cpio.gz & bzImage (kernel) from the PS4 Webbrowser Cache with Kernel v5.3.7 with a prepared initramfs.cpio.gz for my PC Monitors)
CUH 10XX & CUH 11XX works 100%
all others maybe blackscreen use 4.14 Kernel

v4.14
- - Loads the initramfs.cpio.gz & bzImage (kernel) from the PS4 Webbrowser Cache with Kernel 4.14 from the psxitarch v2
WORKS FOR ALL CONSOLES WITHOUT PROBLEMS!!

v4.14++
- Loads the initramfs.cpio.gz & bzImage (kernel) from the PS4 Webbrowser Cache with Kernel v4.14 from the psxiarch v2 and with a prepared initramfs.cpio.gz for my PC Monitors
WORKS FOR ALL CONSOLES WITHOUT PROBLEMS!! FIX if you have problem and blackscreen on rescue

source is Mircoho aka op.

So basically way I see it you have a couple of different things to check like type of usb the slot you are in what payload and what files are on the fat 32 partition once you burn the image. He doesn't seem to happy about how complicated it is. All we gotta do is share our knowledge. This is much better than where we were at before. This truly does bring linux to all ps4 consoles not just some. Thing is it takes trial and error.
 
Last edited by ,
General chit-chat
Help Users
    KenniesNewName @ KenniesNewName: https://youtu.be/bkR4rNlF14s