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
  • K3Nv2 @ K3Nv2:
    Those IHOP chips are actually pretty damn good
  • BigOnYa @ BigOnYa:
    They're made with left over pancake/wafle batter, that's been sitting out all day.
  • BigOnYa @ BigOnYa:
    3 hours on a riding lawn mower, my butt is numb and my whole body is still vibrating. Gonna be a long summer. :cry: I just need to buy some goats.
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, Did you leave your buttplug in?
    +2
  • BigOnYa @ BigOnYa:
    I feel like I spent the night with Ancientboi
    +3
  • Flame @ Flame:
    Ancientboi at it again.
    +2
  • Flame @ Flame:
    is it a bird is it a plane... no its Ancientboi banging your ass away !
    +3
  • K3Nv2 @ K3Nv2:
    Took along time to fit it in?
  • K3Nv2 @ K3Nv2:
    Snow days $25 on steam may grab it
  • SylverReZ @ SylverReZ:
    Measuring sizes with AncientBoi, I see.
  • K3Nv2 @ K3Nv2:
    I guess Ancientboi would be Peter
    +2
  • SylverReZ @ SylverReZ:
    Loooooool :rofl2:
  • SylverReZ @ SylverReZ:
    So true
  • BigOnYa @ BigOnYa:
    @K3Nv2 Snow Day is pretty fun. My only bitch would be the camera controls, when you move around, say down, you have to move the right stick left or right to get camera to turn and get your view, other than that I like it so far.
  • K3Nv2 @ K3Nv2:
    From what people say pvp isn't even worth it
  • BigOnYa @ BigOnYa:
    I just been playing offline, and they give you a few bots here n there on your team to help battle. I don't think it's as funny as the other games tho, more battle oriented than humor, which kinda sucks, but I'm still early in it
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, doesnt the game have a campaign mode?
  • BigOnYa @ BigOnYa:
    Yea, and co-op, but you can also start a pvp session and battle just with friends. You get special skill cards (powers) the more you play. And higher value cards, but you can only enable so many cards at a time.
  • K3Nv2 @ K3Nv2:
    If you can find enough for it
  • BigOnYa @ BigOnYa:
    Toilet paper is considered the money, you collect and buy stuff with TP, kinda funny. Graphics are def better than the other games tho, I think they used Unity 5 engine.
    BigOnYa @ BigOnYa: Toilet paper is considered the money, you collect and buy stuff with TP, kinda funny. Graphics...