PS3 [Tutorial] (Read Warning) Installing Red Ribbon Linux on Rebug 4.81.2 - 4.84.2 D / REX

You can reserve up to 1TB for linux, you just have to patch emer_init.self with the correct value.
I would really like to give my whole drive to Linux. How do we go about setting the emrer_init.self value? Will the same resize tool work with other values? IIRC the old Sony stuff would give you the option of 'all but 10GB' to Linux.
 
I would really like to give my whole drive to Linux. How do we go about setting the emrer_init.self value? Will the same resize tool work with other values? IIRC the old Sony stuff would give you the option of 'all but 10GB' to Linux.
You can use ps3mfw-builder to patch emer_init.self. The values are hardcoded so you will need to modify the script.
Basically for FW >= 4.20, they are patching the opcode 0x3b49fff8 (addi r26,r9,-8) with 0x3f49XXXX (addis r26,r9,XXXX) where XXXX is the size to reserve for OtherOS.
It's a bit long to explain what's going on, but essentially if you want to reserve xGB, replace XXXX in the patched opcode with the hex value of -x*32.
It's easier to just assemble this instruction with size = x*32 and then objdump to get the opcode:
Code:
addis r26,r9,-size

For 22GB they patch with 0x3f49fd40 (addis r26,r9,-704) because 22*32 = 704 and -704 in hex is 0xfd40

This will brick your console if you mess up and patch with an invalid opcode, so you might not want to try this if you don't have a hardware flasher.
 
pls help me
i wrote the command cd /tmp/petitboot/mnt/sda1 and hit enter nothing happened then i typed IS not green file was shown. what should i do
 
So I managed to do this a week or two ago, and successfully installed, then updated to 4.84 Rebug. I expected it to work as well on 4.85 Overflow, but I couldn't get it to boot from Overflow. Managed to downgrade back to 4.84 Rebug, still works fine. Only, for some reason, I can't get it connected to Wi-Fi when booted to Red Ribbon. Also, having trouble getting anything else installed to it(partly because of Wi-Fi issue). Trying to download everything from my PC. So, what can I get/do with this? I would wanna find a fan control program, as I would normally rely heavily on webMAN Mod to control my fan speed. Also, I cannot seem to get anything on CFW to copy Bluray movies, so I was looking for software to do that from Red Ribbon Linux. Handbrake, maybe?
 
Hi,

About the wifi issue, try restoring filesystem and database on recovery mode.

To solve the installation issue, you need to fix the online repository. Please open a lxterminal and download the patch:

Code:
wget https://redribbongnulinux.000webhostapp.com/downloads/online-fix-2019-06-05.sh

Then, you can execute it:

Code:
sudo sh online-fix-2019-06-05.sh

Regards
 
Ok, thanks for the reply, even though you didn't answer any of my actual questions, and it kinda seemed like you didn't even read my post, but thanks anyway. At least you replied, and tried to provide some helpful information, even though it didn't help to restore WiFi, and the rest I pretty much already knew. Still, thanks.
Sooo, for anyone else reading and/or following this, WiFi is still not working from Red Ribbon, nor is bluetooth, btw. I managed to use a router in "Range Extender" mode to connect to the Internet(using a mobile hotspot atm), then I tried updating all the software, at the same time as trying to install Handbrake, and a few other utilities. In the end, this seemed to break the system, and I couldn't do anything(thinking back, I suppose I may not have given it enough time to load before forcing the system off). I reinstalled Red Ribbon to start from scratch, and had all kinds of problems getting back up, the biggest hurdle being assigning a username and password. During setup, before rebooting, this doesn't work well with better, more complicated passwords. I found, however, that setting a simple password while installing Red Ribbon allows you to finish, and then after rebooting, I set a much better, more secure password. Sooo, then I tried updating again from Synaptics Package Manager, this time making sure I told it not to upgrade, replace, or change any configuration files(or, I think I tried to merge the Samba configuration file, which didn't work, so I kept the old one, all others I just kept the old ones). I also allowed it to replace whatever "linux image" or whatever it was, which at first, I had tried to not do, but not allowing this seemed to not allow the upgrade process to finish. After this upgrade process finished, I rebooted, and was presented with an error, talking about some authentication software in or around "free desktop," or something like that. I went into Synaptics Package Manager, and proceeded to try to find whatever software was causing this problem. I found several installed packages involving free desktop, various authentication softwares, and several other packages, many of which seemed to be doing the same thing, in particular, "authenticating." Some were labeled from Gnome, some from lxde, some from freedesktop, some being Gnome's, lxde's, or freedesktop's implementation of whatever authentication. As you might imagine, by this time, I am pulling my hair out trying to figure this out, and I decided to give up on solving this problem today.
Sooo, I now turned instead to trying to get Bluray movie discs to copy: well, I installed handbrake, and made sure some other software was installed that I thought would allow reading bluray discs, only handbrake still would not allow reading from/copying bluray discs(I have not yet tried a second, different bluray disc, nor have I yet tried any DVD). So I proceeded to try to find software(s) that would allow me to *play* the bluray disc, so that I would know that all software was installed and working to be able to read the disc(as copying the disc first requires reading the disc). I couldn't get anything available to play the disc, and I at this point realized there was not much in the first place to play any video, much less bluray discs. Going back to Synaptics Package Manager, I realized that I had libraries installed to "play" bluray discs, but none to *decrypt* them. So, I searched for, found and installed several libraries for bluray, and several for "aacs"(which I guess is what is needed to decrypt bluray discs?), along with vlc, and other video players that I found along the along the way(the other player that I remember-I think I installed three separate players-was gxine), and then proceeded to try to play the bluray disc. I couldn't get anything to play the disc, even though I found now in file manager(not entirely certain whether it was there before or not) what appeared to be the bluray disc in question.
WHAT A MESS. Geesh. So, to try and sort this out, can anyone explain some of this to me? Like, what software/libraries do I need? For the first problem, what exactly is "freedesktop," and what "authentication agents" should be needed for Red Ribbon to work properly, and which should be removed? And any ideas what I am missing to play/copy bluray discs? If anyone could give me any helpful information, I would greatly appreciate it. Also, I am wondering at this point if I might be better off trying a different distribution of Linux. What are my options there?
Edit: Oh, and after pretty much giving up on solving this problem on my own, for my last troubleshooting step, I rebooted to "Game OS" and tried to play the bluray disc I was trying to copy. Playing the disc from here worked fine. Still can't seem to copy the disc from CFW. What would have seemed to me years ago to be a simple problem with a simple solution has turned out to be a headache and a half, although these days, I know that the encryption on blurays makes the process much more complicated.
 
Last edited:
Hi,

I have read all your post, but I have answered the questions that I could help you.

In my case, the PS3 locks sometimes the wireless device and only works again through the recovery mode. I have tested the wireless connections using a fat and a slim models and also works perfectly for me.

You said that the wifi doesn't works, OK, but to help you I need more information about the PS3 model and the wireless configuration that you use.

About the system break after the package installation, OK I'm working to solve this issue.

Regarding the password, noone has reported me this issue, OK, I'll solve it for the next release.

To rip blurays you need to install MakeMKV also, but It doesn't supports the ppc64 platform. :(

Have you tryed to create an iso image using Multiman or another backup manager and rip it later using the pc?

Regards
 
When clicking on Install RedRibbonLinux and running through the steps, when I select Automatic Partitioning it says "Warning: The resulting partition is not properly aligned for best performance" and then it won't install.

Any advice?
 
When clicking on Install RedRibbonLinux and running through the steps, when I select Automatic Partitioning it says "Warning: The resulting partition is not properly aligned for best performance" and then it won't install.

Any advice?
Apparently its to do with the fact that the partitions on the drive are not aligned properly, try using the Manual Partition option, or if failing that, retrace your steps and make sure everything was done correctly.
 
@fokps3 you should comment your problems on here in the future so i can actually respond properly xD. As for your problem, make sure the .iso is extracted onto the root of your usb stick and that it is plugged into the far right port of your ps3 system.

There can be a few problems with certain makes of usb sticks as some aren't detected by ps3's at all. So if the problem isnt that the .iso isnt extracted right, it's most likely the usb stick you are using.
 
I'm having some problems booting linux. i get to the petitboot menu but my keyboard isn't working. should i try different keyboards or is my usb port dead? It's the left USB Port on which i have had problems before.

Console: Playstation 3 CECHL04 4.81.2 Rebug

EDIT: i can report success with a different usb keyboard
 
Last edited:
After selecting "Restore PS3™ system", it's been asking me to connect storage media that contains the firmware but it says it's corrupted.
View attachment 10730 View attachment 10729 View attachment 10728 View attachment 10727 View attachment 10726 View attachment 10725
As far as I know, Rebug can't installed via recovery. I can install another CFW and then replace it with Rebug but then the HDD won't be properly formatted for Linux, will it?

EDIT: I did it one more time and apparently it worked!
For those who have the same problem, I used Player's CFW 4.81, then installed the patched Rebug via XMB and finally selected "Restore PS3™ system" in safe mode.

Hi, have exactly same issue there. What do you mean by "Player's CFW"? Thanks
 
Hi, have exactly same issue there. What do you mean by "Player's CFW"? Thanks
I resolved problem, i used Ferrox CEX 4.81 to restore ps3, then upgraded by usb to these firmware and then everything was ok.
I installed everything but i have problem with Bluetooth. I can not pair any bluetooth device with console. Any ideas how to solve it?
 
Back
Top