[TUTORIAL] Make your own PS4 Linux distro from scratch

ps4linux.com.png

With the PS4 Linux scene slowly catching traction, especially with the awesome dev Nazky having ported SteamOS 3 to PS4, I am sure many of you are wondering how this is done, right? Like, how do they port Linux distros on to the PS4? How are the drivers made compatible with the PS4? How is Vulkan running so fine on the PS4? Well, the technical jargons aside, if you are anything like me, then, I am sure you have wondered and have wanted to try making your own Linux distro for the PS4.

Please understand that I am not claiming to be the first person to make a tutorial on this. I am sure somewhere around the web, a tutorial might exist. But, I plan to make this available for every beginner. Keeping that in mind, I have created a noob friendly tutorial covering each step of the process in extreme detail. And, I also have made video guides for everyone to follow properly.

On the forum, I will post a brief textual tutorial for building your own PS4 Linux distro from scratch. For a complete detailed tutorial, please visit my article on the blog.

Requirements
1. ISO of the distro
2. VirtualBox
3. VirtualBox Extension Pack
4. USB drive
You can check our Downloads section for these.

Build your first PS4 Linux distro
I am going to divide the whole tutorial into 4 different parts

Part 1. Setup & install Linux to Virtual Machine
1. Install VirtualBox and Extension pack.
2. Setup a New VM on VirtualBox with atleast 12GB of space.
3. Install the Linux distro on it. Make sure you have a single partition mounted to /.

Detailed Video Tutorial for Part 1


Part 2. Install & Uninstall Packages, Update system
I will be showing the example for Fedora, but, if you need instructions for Ubuntu based distros, check the article.
1. Remove unnecessary packages. Eg.-
Code:
sudo dnf remove clipit
2. Install necessary packages. I would suggest you to check the command database for installing the most popular apps including Steam, Wine, Lutris, etc.
3. To update the system,
Code:
sudo dnf update

Detailed Video Tutorial for Part 2


Part 3. Install Linux drivers for the PS4
1. Download the Linux drivers for your distro from here.
2. Install them on Fedora by going into the folder one by one (for 64 bit and 32 bit) and run
Code:
sudo yum reinstall *.rpm
If you face driver conflicts, you will have to remove the older drivers. Instructions for the same can be found here.

Detailed Video Tutorial for Part 3


Part 4. Backup distro for installation on PS4
1. While on the distro on the Virtual machine, change directory to root by typing
Code:
cd /
2. Run
Code:
sudo tar -cvf ps4linux.tar.xz --exclude=/ps4linux.tar.xz --exclude=/var/cache --one-file-system / -I "xz -9"
3. After the process is complete, you will find the ps4linux.tar.xz in the root of your Linux filesystem.
4. Mount USB and copy the archive to USB for installation.

Detailed Video Tutorial for Part 4


And, that's it. You are ready to install the distro on your PS4. Btw, if you are looking to save time on installation, I suggest you check this article out where I show you a faster method of installation.

If you have any queries, please comment below or on my blog.

 

xdarkmario

Philosopher
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
you know, long ago when i had a ps3 with otherOS capabilities, me being a windows only user back then i never thought much or even tried anything with the linux install. Me being a Full time linux user today would LOVE to have linux on my ps4 if i cared to own one.
 

Noctosphere

Nova's Guardian
Member
Joined
Dec 30, 2013
Messages
6,769
Trophies
3
Age
30
Location
Biblically accurate Hell
XP
19,031
Country
Canada
Why is it always "You can now install Linux on this console"
I mean, why not windows and make in compatible with 99% of pc games?
Btw, i really mean the question, i'm not saying it like "im tired of this shit", no, i really want to know.
 
  • Like
Reactions: SimisFul

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,713
Trophies
3
Website
defaultdnb.github.io
XP
27,292
Country
United Kingdom
Why is it always "You can now install Linux on this console"
I mean, why not windows and make in compatible with 99% of pc games?
Windows kernel isn’t open or something.. I can’t remember.. basically there is no kernel for windows to load on these machines.. yet.
 

Noctosphere

Nova's Guardian
Member
Joined
Dec 30, 2013
Messages
6,769
Trophies
3
Age
30
Location
Biblically accurate Hell
XP
19,031
Country
Canada
Windows kernel isn’t open or something.. I can’t remember.. basically there is no kernel for windows to load on these machines.. yet.
Okok, so it really is JUST because windows isn"t opensource?
 

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,713
Trophies
3
Website
defaultdnb.github.io
XP
27,292
Country
United Kingdom
Okok, so it really is JUST because windows isn"t opensource?
Like I said, I can’t remember exactly, but something to do with the kernel. Idk if it’s just encrypted or something else, but I’m sure some people have attempted it.. I’m sure I asked eeply or ita back in the day…
 

Taleweaver

Storywriter
Member
Joined
Dec 23, 2009
Messages
8,691
Trophies
2
Age
43
Location
Belgium
XP
8,102
Country
Belgium
I'm going to try out that distro on an old laptop. Kind of stupid to see the steamos iso on this tutorial first, but there's no harm in trying...

Okok, so it really is JUST because windows isn"t opensource?
I think the fact that steamos is made for using a controller instead of keyboard /mouse is also an important factor
 

Noctosphere

Nova's Guardian
Member
Joined
Dec 30, 2013
Messages
6,769
Trophies
3
Age
30
Location
Biblically accurate Hell
XP
19,031
Country
Canada
I'm going to try out that distro on an old laptop. Kind of stupid to see the steamos iso on this tutorial first, but there's no harm in trying...


I think the fact that steamos is made for using a controller instead of keyboard /mouse is also an important factor
wait... aren't we talking about linux?
What is SteamOS doing here?
 

Taleweaver

Storywriter
Member
Joined
Dec 23, 2009
Messages
8,691
Trophies
2
Age
43
Location
Belgium
XP
8,102
Country
Belgium
wait... aren't we talking about linux?
What is SteamOS doing here?
Erm... I take it you haven't read the OP more clearly? :)

Here's the thing: Linux comes in a ridiculous amount of flavors because everyone can make their own list of programs to include, graphical user interface and some more aspects. So steamos isn't different in that aspect(it's something else for android, but that's not the topic here)... Valve just did what so many others have done and built their own Linux distribution.
 
  • Like
Reactions: Noctosphere

K3Nv2

Village Idiot
Member
Joined
May 26, 2013
Messages
1,459
Trophies
3
Age
32
XP
5,091
Country
United States
Okok, so it really is JUST because windows isn"t opensource?
It's probably the same exact reason why ios is only locked to apple devices and why you only see iOS on apple certified devices compared to Android that's open source and theirs like millions of different Android devices.

Linux can already do basically everything windows can just takes a bit of tweaking. Though it is a bit of a thought process that we're seeing hand helds (eg: SD/ aya neo) run windows completely fine for the most part, definitely a bit of a head scratcher.
 

chrisrlink

Has a PhD in dueling
Member
Joined
Aug 27, 2009
Messages
5,581
Trophies
2
Location
duel acadamia
XP
5,872
Country
United States
It's probably the same exact reason why ios is only locked to apple devices and why you only see iOS on apple certified devices compared to Android that's open source and theirs like millions of different Android devices.

Linux can already do basically everything windows can just takes a bit of tweaking. Though it is a bit of a thought process that we're seeing hand helds (eg: SD/ aya neo) run windows completely fine for the most part, definitely a bit of a head scratcher.
also the reason for the custom Rom's/OS for androids that are bootloader unlocked i mean i just installed Liniage 18 (based on android 11) on my pixel 2 phone downside of custom roms in my experience are that some features are broken and being in a rooted state means pkm masters ex/Go and other games will ban you just for being rooted (or refuse to launch even) unless you us majisk and even then its iffy
 

smf

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
6,651
Trophies
2
XP
5,908
Country
United Kingdom
Okok, so it really is JUST because windows isn"t opensource?
That certainly makes it more complicated.

It would take a lot more effort, not only are you having to reverse engineer the ps4 and write drivers but you need to reverse engineer windows too.

I think someone showed windows 10 running under a VM on ps4 linux though.
 

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,810
Trophies
2
Age
48
Location
Japan
XP
3,717
Country
United States
Why is it always "You can now install Linux on this console"
I mean, why not windows and make in compatible with 99% of pc games?
Well, to be fair, @shutterbug2000 did get dosbox and subsequently Windows 95 running on the N3DS... sort of...

If you're in the Windows insider program, you can download Windows 10 ARM64 for free... so honestly I don't fully buy this whole encrypted kernel thing being a problem. It's just that people with the skills don't have much interest. All the documentation needed to init the hardware and pass the loading process over to the Windows installer/bootloader must already be in fusee/Hekate/Atmosphere, and the Windows installer is pretty good at not being picky about the hardware it's on. Most of the time, the installer can pick out the best drivers for the hardware and puts your efi and HAL together for you, during initial install.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
    cearp @ cearp: It's nice to not have to have a lot of physical things though, saves space +1