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: 260

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
  • K3Nv2 @ K3Nv2:
    Insurance is a thing adults have to blow off
  • BigOnYa @ BigOnYa:
    Insurance is one those things you pay all your life for, no questions asked, all is fine, they take your money. And as soon as you make a claim or something happens, they never want to payout or help, just fight you on everything if it cost them any of your money.
  • BigOnYa @ BigOnYa:
    I've never had a car accident, but I bet I've paid thousands/ million into car insurance that ill never see a dime of prob. Is crazy, but its the law.
  • K3Nv2 @ K3Nv2:
    Liability, drive a old car fuck all that over priced fancy crap
  • BigOnYa @ BigOnYa:
    When you buy a new car, or have a bank loan on it, you have to have full coverage, but yea its a racket
  • realtimesave @ realtimesave:
    u guys on crack? I got in auto accident and insurance paid $6500 to fix my car. they don't pay? whatever.
  • BigOnYa @ BigOnYa:
    But think about how much you have paid them over the years, prob way more than 6500, but that's life, not like we have a choice. Gotta have to cover your ass.
  • K3Nv2 @ K3Nv2:
    You probably drive some fancy dandy electric car that the salesman told you would get you bitches
  • BigOnYa @ BigOnYa:
    He drives a BMW or Benz I think I remember him talking about a $500 oil change
  • Psionic Roshambo @ Psionic Roshambo:
    The secret sauce is, they raise your rates after an accident. You get to pay them back lol
    +1
  • realtimesave @ realtimesave:
    volkswagen beetle
  • SylverReZ @ SylverReZ:
    Psi couldn't pay hospital bills lol.
  • Psionic Roshambo @ Psionic Roshambo:
    He found out how much the ambulance ride was going to cost lol
    +2
  • K3Nv2 @ K3Nv2:
    @BigOnYa, so one the salesman told him would get him bitches
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    In my experience women like a big shift stick with lots of power.
  • Psionic Roshambo @ Psionic Roshambo:
    Something that really burns rubbers
  • BigOnYa @ BigOnYa:
    Only thing a nice car will get you is a gold digger. What happened to falling in love, no matter if I'm on a bus, or driving a nice car. No offense tho, I do like nice cars.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Nothing like tearing ass up on a back road
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa I think narcissism has all but killed love
    +2
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I think I can agree on that.
    +1
  • K3Nv2 @ K3Nv2:
    People tend to think look at everything I have gains attention but ends up making them look worse for what it is
    +1
  • BigOnYa @ BigOnYa:
    It would be funny to pick up a girl in a real expensive car, then next date show up in a piece o shit car just to see her reaction.
  • Psionic Roshambo @ Psionic Roshambo:
    Everyone is disposable and replaceable, lies and deception are the coin of the realm. I have never felt so alone and so at odds with the world.
    Psionic Roshambo @ Psionic Roshambo: Everyone is disposable and replaceable, lies and deception are the coin of the realm. I have...