by Stefano Silvestri and Giovanni Venturi
version 0.2.3, date 9th April 2008
Ecco a voi l’articolo promesso qualche giorno fa su come installare Fedora Core 7 su una PS3 con l’IBM Cell SDK 3.0 .
Buona lettura. L’articolo è in inglese. Magari un giorno lo traduco anche in italiano.
- Why this Howto
- The “shopping list”
- Starting the installation
- Cell Linux Addons installation
- SDK installation
Why this Howto
Installing Fedora Core 7 on Playstation 3 it’s not so easy, due to the lack of precise documentation steps. So we wrote this article to help people doing this task.
The PS3 can be used as a low cost testing and programming environment for IBM Cell Broadband Engine and the last IBM SDK for this kind of CPU needs Fedora Core 7 or Red Hat RHEL 5.1 as Operating System so you can’t install other types of GNU/Linux distribution if you want to use the SDK. You could also try, using alien to convert the packets, but it could be not so quick as using directly the RPM packages and the final result could not be guaranteed.
We want to share with you our results to make your life easier if you need to install Fedora Core 7 GNU/Linux on PS3.
The “shopping list”
Before starting the installation, you need the following things:
- A USB mouse and keyboard.
- Fedora Core 7 PPC DVD. You can download it from the official home page.
- Cell Linux Addons. You can download it from Linux kernel website.
- IBM Software Development Kit (SDK) for Multicore Acceleration Version 3.0.1 from the IBM website.
When you download the Fedora Core ISO, remember to get the DVD one and precisely the PPC version.
There are differents versions of the Cell Linux Addons. This howto refers to the 20080201 version. Download and burn 20080201 ISO.
To have a complete development environment, you need an IBM id to have the permission to download this software. Go to the download page (as told at the point 4) and register yourself. After a couple of days, IBM will sent you a confirmation to let you get the Developer package and the Extras package. Now they know all about you: where you live, your age, your job and so on. Be careful what you are going to do 😉 .
Starting the installation
First of all, update the PS3 firmware to the lastest version. Power on the PS3, then access to menu and go the Settings and choose the System Update.
Be sure that your PS3 is connected to the Internet and the networking parameters are corrects and let you surf the Net.
After the firmware update (at the time we write it’s available 2.20 version), you need to format the PS3 hard disk (this will erase all data on the entire drive). Go the menu Settings and choose System Settings/Format Utility. PS3 will ask to you what to do.
There are four options for the harddrive:
- All to PS3.
- All to Other OS.
- 10 GB to PS3 and rest to Other OS.
Choose to format the disk using 10 GB for the PS3 system and leave the rest of the space for the other Operating System. Be sure to select Quick format (it takes 10 seconds) or you’ll be waiting 3.5 hours.
Put the Cell Linux Addons 20080201 CD into the PS3 tray and go to the menu Settings and choose System Settings/Install Other OS. The console will automatically detect the right file to install from the CD.
Go to the menu Settings and choose System Settings/Default System. And change it from PS3 to Other OS.
Reboot the PS3 and you will see the Linux kboot booting.
The CD inside has to be ejected and changed with the Fedora Core 7 DVD. At the kboot prompt now you enter:
cd //mnt/root/ppc/ppc64 kexec -f --initrd=ramdisk.image.gz --command-line="video=720p" vmlinuz
It will start the Anaconda installer.
Fedora Core 7 will ask you the hard disk driver. Simply select the PS3 one (the name in the list is ps3_storage). Now be carefull to choose the right disk partition scheme. After some work we’ve seen that the linux kernel on the Linux Cell Addons CD doesn’t boot on a partition scheme with a Logical Volume Manager (LVM). The problem is that the default Fedora Core 7 installation create an LVM, so you have to remove the default partition scheme and create a custom one without any LVM. So remove all partions and create the following ones:
- One GByte of SWAP memory.
- All the remaining space for the whole Fedora Core 7 system.
With this scheme you’ll avoid the problem of having a small /boot partition, as setted in the Fedora Core 7 default partitioning scheme and the problem of booting the custom kernel for the Cell processor.
Anaconda installer will ask also if you want to customize the distro. We suggest to install the office and developing packages. Moreover, choose to customize your operating system (KDE or Gnome, etc.) at the moment of installation and not after have installed all packages from DVD.
Wait about five hours to complete Fedora Core 7 installation.
When installation’s completed you have to force PS3 to shutdown, pressing the power on/off button until it turns off. This is a Linux kernel bug with the PS3 that will be resolved updating the kernel (see later). Eject the DVD-ROM and wait for the Fedora boot. Complete the installation disabling Firewall and SELinux and wait for the Fedora boot again.
Cell Linux Addons installation
Now get the CD you burned to install the Cell Linux Addons 20080201. This is a CD containing some utilities for PS3, for example the last Linux kernel precompiled for the Cell Processor (so you can fix the power off bug and you can shutdown the PS3 without forcing this operation handly).
How to proceed? Mount the CD-ROM and go into the mounted directory; go into the target directory and type:
rpm -ivh --force *.rpm
Then go back into the wifi directory and do the same thing, if you want to enable the wireless network card on PS3. The wireless network device will have the same alias of the wired one: eth0.
After the RPMS installation you have to copy the initrd file into the boot directory. Go back into the CD-ROM target directory and type:
cp initrd.img-2.6.24 /boot
Open the file /etc/yaboot.conf with your favourite text editor and add the following lines:
image=/boot/vmlinux-2.6.24 label=linux24 read-only initrd=/boot/initrd.img-2.6.24 append="video=720p rhgb quiet root=LABEL=/"
You can select the kernel in kboot pressing the TAB button at the prompt (after the reboot). If everything worked fine, you’ll see other six pengiuns in the kboot screen, after have selected the new kernel.
Test the kernels and choose the right one. To set the default kernel to automatically boot, edit the /etc/yaboot.conf adding the following line:
Add the following line in the file /etc/yum.conf:
exclude=kernel blas oprofile numactl blas-devel kernel-headers blas-debuginfo
Now you can update the whole system typing:
yum update -y
Be careful: this operation could fail because the Fedora Repositories are not always full updated and some dependencies can be wrong. In this case try again the day after or manually remove the packets that break the dependencies. The operation can lasts 3-5 hours.
After you have updated the system you can install the SDK. First of all stop the YUM updater daemon typing:
Edit another time the /etc/yum.conf file removing all the exclude list, except kernel.
The SDK installer needs some packages to work, so type:
yum install rsync sed tcl wget
Mount the Developer package SDK CD-ROM and type:
rpm -ivh cell-install-22.214.171.124.noarch.rpm cd /opt/cell ./cellsdk install
Agree the IBM license and go on waiting the installation process will be completed. If you want to install also the Extras package mount the CD-ROM you burned and type:
Now you have to re-insert the complete exclude list in the /etc/yum.conf file and restart the YUM updater daemon, typing:
The directory /opt/cell/sdk/src contains the programming examples in some tarball: unpack in the same directory.
Everything now should work fine. We hope that our experience could help anybody to install correctly the Fedora Core 7 on the PS3 and save lots of time (that we spent on this task!).