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: 252
  • IMG_20200406_170853.jpg
    IMG_20200406_170853.jpg
    2.8 MB · Views: 256

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: 233
  • 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
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
    Veho @ Veho: @AdRoz78 start a thread and post a photo of the chip. +2