This manual describes the steps to take to get Fedora 8 running on a PS3.
It will describe every basic step to perform, so that even non-Linux acquainted users, can install Linux on a PS3.
Author: Remy Bohmer
Requisites:
A Sony PS3 (duh) Note: This procedure is based on Firmware 2.10, 60GB European PAL Version
Monitor/Flat screen-TV connected through HDMI.
USB keyboard/Mouse connected to the PS3.
A Fedora Compatible [Please register to see this link. ] (bootloader)
[Please register to see this link. ]
Internet connection to your PS3.
A wired Ethernet connection is required. Wifi is more complex to get operational.
Installation procedure: The installation procedure of Fedora 8 takes 3 steps:
Prepare the harddisk of the Sony PS3.
Installation of bootloader (otheros) in the Game-OS.
Installation of Fedora 8 in the 'Other OS'.
1. Prepare the PS3 harddisk
Originally the harddisk of the PS3 has one big partition for the Game-OS. If we want to run Linux on it, we need to create a separate partition for Linux. this chapter describes the steps to take: WARNING: These steps will destroy ALL data that is currently installed on the harddisk and that is used by the Game-OS, such as downloaded games and personal game-save data. So, backup everything first on an external flashdisk/harddrive before continuing here!
(Note: this procedure has been copied from [Please register to see this link. ], that site is also a great resource for PS3-Linux enthusiasts)
Turn on the PS3. After initializing, you can see GameOS menu. You select "Settings -> System Settings".
After selecting "Format Utility" from sub menu, following messages are displayed.
Format Memory Stick
Format SD Memory Card
Format CompactFlash
Format Hard Disk
To allocate a Linux partition on the Hard Disk, select "Format Hard Disk".
After following message is displayed. you select 'Yes'.
Do you want to format the hard disk?
You can see following message.
Select a partition setting for the hard disk.
* Use All for the PS3 System
* Custom
To allocate a Linux partition on the Hard Disk, select "Custom".
After selecting "Custom", following messages are displayed.
Select a partition setting for the hard disk.
Use All for the PS3 System
Allot 10GB to the Other OS
Allot 10GB to the PS3 System
To allocate a Linux partition on the Hard Disk, select one of following items.
Allot 10GB to the Other OS
Allot 10GB to the PS3 System
If your hard disk size is 20GB, you have to select 'Allot 10GB to the Other OS'. (Notice that a default Linux
install takes about 5GB, so if you do not plan to store lots of data on the Linux partition, 10 GB should be enough. Later the Linux partition can be extended by means of a USB drive, or connecting to a fileserver)
After selecting the item, following messages are displayed.
Select the hard disk format method.
Quick Format
Full Format
You can select either 'Full Format' or 'Quick Format'.
After following message is displayed. you select 'Yes'.
If you format, all data will be deleted.
This data cannot be restored.
Are you sure you want to continue?
After selecting 'Yes', format process is started.
After creating a Linux partition, following messages are displayed.
Format Complete.
Press the X button to restart the system.
After pressing the X button, restart the system software and you can see GameOS menu.
2. Installation of the Linux bootloader on the PS3.
To be able to install Linux on the PS3, we need to install a bootloader first. This bootloader can be anything that is capable of booting a Linux kernel, but we choose to use a Fedora compatible version of Kboot here. There are different versions of Kboot floating around, some are destined for other Linux flavors, and are incompatible with Fedora.
Kboot is in fact a very small Linux kernel and busybox userland that can be loaded from a RAM-drive. This Kboot bootloader will provide a simple boot-prompt after installation. Later, when everything is up and running the KBoot bootloader can be replaced by a Graphical bootloader like [Please register to see this link. ]
But first, for Fedora we need to have a command prompt, so we use Kboot.
Errata: Since PS3 firmware version 2.10 there is a problem with screen blanking in both Kboot as well as in the Fedora 8 kernels. The screen will go black from time to time (or sometimes even all the time), which can be very annoying. This version of [Please register to see this link. ] (20071220) has this problem fixed.
Kboot Installation steps:
Burn this [Please register to see this link. ] image to a CD, with your favorite burning software.
Put the CD in the drive on the PS3.
Start up your PS3 (in the Game-OS) and go to the (System Settings) in the home menu.
If you select [Install Other OS] under (Settings), the system will search for the kboot/otheros/bld file saved on the CD. Follow the on-screen instructions to complete the installation.
Now you can start KBoot by adjusting the [Default System] setting under (Settings) -> (System Settings) on the PS3 system. Notice that you can always boot the Game-OS by entering the command 'boot-game-os' at the kboot prompt, or by holding down the power-button during power-on. 3. Installation of Fedora 8
The installation of Fedora 8 has some small problems. The easiest way to install Linux on the PS3 is by using Yellow Dog Linux, but this distro is derived from Fedora Core 5, and is therefor rather old.
It also still contains the screen-blanking bug, so it will not run properly on the Firmware 2.10.
For Fedora 8 to install correctly we have to do several steps manually when the installation is completed from the installation Wizard. We also will compile a new kernel later on that is much smaller than the original Fedora kernel, which is good because memory is a sparse resource on a PS3.
The installation procedure:
Insert the Fedora DVD in the PS3
Switch on the PS3, and wait for the KBoot prompt.
At the kboot: prompt type 'linux64 text xdriver=fbdev'
The installation wizard is starting... you get these questions:
Media check -> Choose: 'Skip' or 'OK', as you wish.
Welcome to Fedora -> Choose OK
Language Selection -> Choose your Language (e.g. English)
Keyboard Selection -> Choose your keyboard layout (e.g. us)
Partitioning Type -> Select 'Create custom layout. (select ps3da, 44940MB)
Remove the Fedora DVD, Type 'exit', and the system reboots...(if the system hangs on shutdown, just do a hard poweroff/on)
System is now booting from harddisk...
After a while, we get a text installation menu, configure here what is needed.
Once we have a login prompt, we can login either locally, or remote through SSH. Because of the screen blanking bug, I prefer to login through SSH from another Linux-box (or if you are on M$-Windoze: use for example: [Please register to see this link. ]).
login as 'root'
First update the system to the latest updates
yum -y upgrade
This step will take a few hours to complete...
If you like to start in GUI mode instead of text mode, the following line in /etc/inittab file has to be modified:
sed s@'id:3:initdefault:'@'id:5:initdefault:'@ /etc/inittab > /etc/inittab.new
mv -f /etc/inittab{.new,}
After changing this line, do another reboot, and the firstboot procedure is automatically started.
To get rid of the screen blanking bug, you have to recompile the kernel. See chapter 4b of this howto.
4. Optimizing the Fedora installation
The Fedora distribution is a universal distro. It has therefor things enabled in the kernel and userland that uses memory, but which are not needed on a PS3. Here is a short manual that describes several things to make Fedora less heavy for the PS3. 4a. Optimize Userland
If we assume a trusted environment, and security is not important, and we do not plan to use the PS3 Linux box as a Desktop system, we can have a limited set of services running. The following services can be disabled:
chkconfig ip6tables off (if you not have IPv6 enabled)
chkconfig iprdump off
chkconfig iprinit off
chkconfig iprupdate off
chkconfig isdn off
chkconfig mdmonitor off
chkconfig auditd off
chkconfig cups off
(once firstboot is executed once) chkconfig firstboot off
chkconfig sendmail off
chkconfig yum-updatesd off
If selinux is disabled, the following services are also not needed:
chkconfig restorecond off
chkconfig setroubleshoot off
Install a lightweight desktop:
yum groupinstall XFCE (during login you can set xfce as default desktop)
Remove some applications: (if they are not used)
yum grouperase "Office/Productivity"
yum grouperase "Games and Entertainment"
yum grouperase "Graphics"
yum grouperase "Printing Support"
yum grouperase "Mail Server"
4b. Building a smaller kernel
The original Fedora 8 kernel is quite big and, due to Fedora nature, universal.
The stock Fedora 8 kernel also has a bug in it so that the screen is blanking from time to time.
So, we build an updated kernel with a minimal set of elements.
The following steps need to be taken to build a new, smaller, kernel for Fedora 8:
Install the GCC compiler toolchain and other development tools with
yum groupinstall "Development Tools"
Install git tooling and another required package with:
yum install git ncurses-devel
Make as normal user a build directory on the target, and change the current directory to it.
mkdir -p ~/ps3_build && cd ~/ps3_build
Download, compile and install the dtc tool (Device Tree Compiler)
git clone git://www.jdl.com/software/dtc.git dtc
cd dtc
make
su (Switch to root user)
cp dtc /usr/bin/
exit
Download and extract the kernel sources at the proper location
I get to the video mode part, type in all the "On the command prompt, perform these actions:",
Then I exit and reboot, then It just boots to a black screen. BTW, I have a 1080i ntsc so if I was suppose to change the command in anyway please tell me what I should do.
EDIT:I relize mistake and reran linux rescue andreplaced 138 with 132 and same problem.
try the other basic modes like 1 (480i) and 4 first. just experiment to get it booted and change later. try the RGB modes 33 or 36 or try the VESA mode 11. we have no idea about your setup. Also, do this with component cables, not HDMI. trust me on that one.
I get to the first reboot and run linux rescue, then get to the shell and input the commands:
sed s@'append="rhgb quiet root=LABEL=/"'@'append="video=ps3fb:mode:138 rhgb quiet root=/dev/ps3da3"'@ /mnt/sysimage/boot/yaboot/yaboot.conf > /mnt/sysimage/boot/yaboot/yaboot.conf.new
mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
and
cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
then remove the cd and reboot and I still get the same error message. I have tried 2 clean installations and still fail at this part...
Notice that you can always boot the Game-OS by entering the command 'boot-game-os' at the kboot prompt, or by holding down the power-button during power-on.
<small>[Please register to see this link. ]
has been replaced with </small> [Please register to see this link. ]
When following the steps and replacing the string accordingly I get asked lots of kernel configuration questions. What to select? Does it work with this new version?
I get to the first reboot and run linux rescue, then get to the shell and input the commands:
sed s@'append="rhgb quiet root=LABEL=/"'@'append="video=ps3fb:mode:138 rhgb quiet root=/dev/ps3da3"'@ /mnt/sysimage/boot/yaboot/yaboot.conf > /mnt/sysimage/boot/yaboot/yaboot.conf.new
mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
and
cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
then remove the cd and reboot and I still get the same error message. I have tried 2 clean installations and still fail at this part...
Same problem here... some one give us more details please
I have been successful in installing FC8. The only problem that I have is that the bluray drive is not mounted. For the other remaining drives (e.g. SD, CF, MS), attaching a device mounts the drive. I wanted to install other software using YUM or software updater with the FC8 install DVD, but since the drive wouldn't mount, I couldn't. Any ideas would be appreciated.