Hacking [RELEASE] PS4 Gentoo by mircoho

Changhui

Member
Newcomer
Joined
Mar 31, 2020
Messages
12
Trophies
0
Age
48
XP
86
Country
Malaysia
@Changhui
You can test if linux will work on your PS4 without plugging in a usb drive.

Got to the ps4gentoo.github.io page in your PS4 browser without any usb plugged in.
Run Hen, Press the PS button when Hen loads.
Open the browser again and select the Gentoo payload.

  • If your PS4 LED changes from white to red/blue this means that linux will work. If there is nothing on your screen this means that your display is the problem.
  • If your PS4 LED stay white or your PS4 shuts down, this means that your PS4 is not compatable with linux.
  • If you see the linux #rescueshell on your screen, this means that your USB is formatted wrong or you are using the wrong files.

You can also test the above by seleting the debug payload instead of the gentoo one.
Unfortunately after test, PS4 LED stay white as per point no.2 above. So i am really out of luck for my model. :(

--------------------- MERGED ---------------------------

Successfully installed Gentoo Linux on my PS4 CUH-2016A

:grog::mthr::toot::hrth:
Wow good !:grog: I think it should be CUH-2106A right? I also miss spell my model to 2016A :rofl:
 

Attachments

  • IMG_20200406_170838.jpg
    IMG_20200406_170838.jpg
    1.5 MB · Views: 257
  • IMG_20200406_170853.jpg
    IMG_20200406_170853.jpg
    2.8 MB · Views: 261

Leeful

GBAtemp Member
Developer
Joined
Sep 4, 2015
Messages
1,903
Trophies
1
XP
7,068
Country
United Kingdom
Unfortunately after test, PS4 LED stay white as per point no.2 above. So i am really out of luck for my model. :(
You should try it a few times to be sure. Sometimes it does crash.

Wow good !:grog: I think it should be CUH-2106A right? I also miss spell my model to 2016A
There are 2016A and 2106A models.
 
Last edited by Leeful,

Changhui

Member
Newcomer
Joined
Mar 31, 2020
Messages
12
Trophies
0
Age
48
XP
86
Country
Malaysia
Maybe I'll help someone if I post what I did.

I installed gentoo like psxitarch, formatted my usb-hdd to FAT32, copied kernel + initframs by Iguy0 ( with Baikal chip kernel patches ), then copied ps4gentoo01-2020.tar.xz (2,17GB), changed name to psxitarch.tar.xz and proceed installation same as psxitarch distro.

I used VRAM1 PSXITARCH LINUX V2 LOADER from X-PROJECT B-) to boot into rescue-shell.
I am trying your alternative method, seems working and installing now ! :)
 

Attachments

  • IMG_20200406_175915.jpg
    IMG_20200406_175915.jpg
    3.8 MB · Views: 236
  • Like
Reactions: Leeful

Changhui

Member
Newcomer
Joined
Mar 31, 2020
Messages
12
Trophies
0
Age
48
XP
86
Country
Malaysia
Did You copy kernel (bzImage) + initframs by Iguy0 (with Baikal chip kernel patches) ?

No I've got everything OK (green ones) after install.
Yes, i did download this and copy both files into usb hdd with fat32 formatted and finish installing. But when boot up, it stop halfway with some false errors lines(something related to failed mounting) as i attached in previous post.
 

MostlyUnharmful

Well-Known Member
Member
Joined
Feb 8, 2018
Messages
410
Trophies
0
Age
42
XP
1,446
Country
Italy
By the look of it, it seems to fail when pivoting from the initrd to the FS on the disk, well kinda as '/dev' and '/sys' are the special mount points used as kernel interface, but I really never had the pleasure <grin> to debug such errors, at least in the last ten years.

If you launch the 'journalctl' command, the last lines should have some clues why it's failing, maybe search for 'tmpfs' (should work as a pager, PageUp, PageDown, cursor up, cursor down, and '/' to search forward for a string).

Did you mixed kernel, initrd or installed a different distribution?
 

Changhui

Member
Newcomer
Joined
Mar 31, 2020
Messages
12
Trophies
0
Age
48
XP
86
Country
Malaysia
By the look of it, it seems to fail when pivoting from the initrd to the FS on the disk, well kinda as '/dev' and '/sys' are the special mount points used as kernel interface, but I really never had the pleasure <grin> to debug such errors, at least in the last ten years.

If you launch the 'journalctl' command, the last lines should have some clues why it's failing, maybe search for 'tmpfs' (should work as a pager, PageUp, PageDown, cursor up, cursor down, and '/' to search forward for a string).

Did you mixed kernel, initrd or installed a different distribution?
This seems to be too technical for me to understand as i am not familiar with linux command. :mellow: i follow the step from @3mam4me and it just halt in mid of booting after success install and my keyboard cannot response to any input.
 

lotus78

Member
Newcomer
Joined
Nov 8, 2017
Messages
14
Trophies
0
Age
44
XP
158
Country
Austria
Hi - as i have read, some people are interestet about Gentoo on internal HD, I´ll tell you my last experience about that.

At first - as I know - only 10XX/11XX phat are supported !!
(mine is a CUH-1116A)

I installed Gentoo V7 - gentoops4kdebeta7.tar.xz - with the (I think) latest kernel on internal HD.
(unfortunally, the file was deleted in the net... - and I can´t upload 3 GB) -
but I´m sure, you can take any other gentoo version or distri which has tar.gz.

V7 is not the latest gentoo version, but it was the latest version that was delivered in tar.gz,
because as you see the latest gentoo was deliveredas an img and I was not able to build my own tar.gz from them.
(maybe @mircoho will upload the latest as tar.gz...)

- then I took the latest kernel from the gentoo/linux page from here (5.3.7 - without debug) - see the screeshot at the end.
you also can test some other kernels (f.ex. Baikal ones..) - you only have to copy them to the right path on the HD
(you can do that after installing - I tried 3 different ones...)
https://github.com/ps4gentoo/ps4-linux/releases

- the intiramfs.cpio.gz from here -
(for my opinion, you can´t change the initramfs, because there is the "referenc" to the install commands for internal HD)
https://drive.google.com/file/d/1d16yWE04cDwrnYz8v8qaoCbKz2kLRiIb/view

I did the install procedur, as posted here on PSXHAX:
https://www.psxhax.com/threads/inst...ard-drive-hdd-5-05-loader-payload.6800/page-6

To load the linux from internal, in the past I had realy trouble because it was very unstable,
but yesterday fortuitously I saw that the linux always (!) load, when I activeted HEN 2.3.1 befor activating the linux payload.

I take the linux payload from my own host on the NAS, and to be honest I donn´t know exacly with version it is.
It is a html file and its a VRam 2 payload - I think I converted the bin file to html from the original download
that was together with the initramfs. (see the link above)
If anyone has interesting, I can upload them.

This is a little confuse and not real one direction -
I´m also not sure, if everything is 100% correct that I written, but in this way it works for me.

Everything is at your own risk - I do not responibility for any damage!!

All credits go to @mircoho for the work on gentoo for PS4 and (I think) to @itmania for the initramfs
and all the developer for the linux payload. (sorry - I dont know them all by name...)


gentoo.jpg
 
Last edited by lotus78,
  • Like
Reactions: Leeful

Leeful

GBAtemp Member
Developer
Joined
Sep 4, 2015
Messages
1,903
Trophies
1
XP
7,068
Country
United Kingdom
... To load the linux from internal, in the past I had realy trouble because it was very unstable,
but yesterday fortuitously I saw that the linux always (!) load, when I activeted HEN 2.3.1 befor activating the linux payload
Yeah, Its always best to run hen first.:)

The reason is when you first run any payload on a freshly booted PS4 it has to patch the kernel first and then run the payload.
If you run hen first, the PS4 kernel is already patched when the time comes to run the linux payload so all the linux payload has to do is boot linux.

If you just try and run the linux payload from a fresh boot the process of patching the kernel and then booting linux is very unstable, hence more chance of a kernel panic.
 
  • Like
Reactions: lotus78

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...