| Installing Gentoo on the PS3 |
|
|
|
| Written by Administrator | |
| Sunday, 03 December 2006 | |
|
At the beginning of December 2006 if I want to install Linux on my Playstation 3, the obvious options are FC5 and Yellow Dog. I'm sure both are fine distributions, but I use Gentoo for all my home machine and at work and so step one when I unpacked my PS3 was to puzzle out how to install Gentoo. Note: The method described below is for making a standard Gentoo install from Stage 3 on a PS3 - there is no handholding and is aimed at someone who is experienced with linux. Recently the Gentoo-PPC64 team have built a stage 4 and LiveCD which simplifies the process, there are instructions at http://overlays.gentoo.org/proj/cell/wiki/InstallGentooOnPS3 However... For me half the fun of Gentoo is in building the system and a stage 4 is one stage too many:) So below are instructions on how to do a stage 3 Gentoo install on the Sony PS3.
Needed ItemsTo make the install, there are a number of items you need: A Playstation 3Doh! A ScreenI did my install on a TV as I'm waiting on a cheap HDMI to DVI cable to turn up. On a standard decent quality TV the text in kboot is very readable. A USB keyboardAnnoyingly my PS2 Linux kit keyboard didn't work with kboot, so if you have a problem with "sticky" keys find another keyboard. otheros.selfThe "other OS" installer from Sony, which you can download at: http://www.playstation.com/ps3-openplatform/index.html The "Addon Packages CD"A collection of items needed for a linux install, including some good doc's, you can get this from: ftp://ftp.uk.linux.org/pub/linux/Sony-PS3/ as CELL-Linux-CL_20061110-ADDON.iso. Recently a new cd was released,CELL-Linux-CL_20061208-ADDON.iso, that includes the source so the "Addon Packages source CD" isn't needed.
The "Addon Packages source CD"The source code for the contents of the "Addon Packages CD" - most importantly for us, pre-patched kernel source. ftp://ftp.uk.linux.org/pub/linux/Sony-PS3/ as ftp://ftp.uk.linux.org/pub/linux/Sony-PS3/CELL-Linux-CL_20061110-SRCCD.iso A Gentoo PPC64 Stage 3 tarballGet this from your local Gentoo mirror, for example for the UK a good location is: http://gentoo.blueyonder.co.uk/releases/ppc/2006.1/ppc64/stages/stage3-ppc64-64ul-2006.1.tar.bz2 A Gentoo portage snapshotAgain, best to get this from a local mirror, I got mine from: http://gentoo.blueyonder.co.uk/snapshots/portage-latest.tar.bz2 Optional - A Gentoo LiveCDRecently a LiveCD for Gentoo has been created, and it can be used during the install process - the advantage is that instead of sitting in font of your TV you can do the install via ssh.
Preparing for installationThe first task is to put the installer and bootloader onto a readable medium. The easiest way to do this is to use a USB stick. You need two files, the "other OS" installer called otheros.self, and the bootloader kboot called otheros.bld. It seems that Sony's idea is that different distributions can create their own kboot packages complete with scripts to install their specific distribution. As the Gentoo install is a manual process, we can cheat and use someone else's kboot, and the easiest one to get hold of is the one for installing Fedora Core 5, and that is on the "Addon Packages" cd image, a file called otheros.bld in the folder kboot. On a USB stick, make a directory called PS3, and in that directory another directory called otheros. Then copy otheros.self and otheros.bld into the otheros directory. Also, if your USB stick is big enough, copy the stage 3 tarball and the portage snapshot onto it, and also the kernel source from the Addon Packages source CD image, linux-20061110.tar.bz2 - if there isn't enough space you could burn them to a cdrom.
Setting up the Playstation3Before you continue, make sure your PS3 has been updated to the latest firmware. The first step is to partition your hard disk. Be aware that the process will destroy any save data on the PS3 HD, so back them up! The following is copied directly from the SCE install documents: Creating a Linux partition1) Turn on the PS3. After initializing, you can see GameOS menu. You select "Settings -> System Settings".2) After selecting "Format Utility" from sub menu, following messages are displayed.Format Memory Stick To allocate a Linux partition on the Hard Disk, select "Format Hard Disk". 3) After following message is displayed. you select 'Yes'.Do you want to format the hard disk? Yes No 4) After following message is displayed. you select 'Yes'.If you format, all data on the hard disk will be deleted. Yes No 5) You can see following message.Select a partition setting for the hard disk. Use All for the PS3 System To allocate a Linux partition on the Hard Disk, select "Custom". Select a partition setting for the hard disk. Use All for the PS3 System To allocate a Linux partition on the Hard Disk, select one of following items. Allot 10GB to the Other OS If your hard disk size is 20GB, you have to select 'Allot 10GB to the Other OS'. 6) After selecting the item, format process is started.7) After creating a Linux partition, following messages are displayed.Format Complete. After pressing the X button, restart the system software and you can see GameOS menu.
The only thing I need to add to that is that the two games I've installed to my PS3 HD take over 4GB each, so you would be better off keeping the larger partion for the GameOS if you have a 60GB drive. Installing the bootloader(kboot)The process of installing the bootloader is pretty simple, and is done though the PS3's menu's. Insert the USB stick containing the bootloader into the PS3. Go to the System settings menu, and then find the sub menu called "Install Other OS" and follow the instructions. If there is an error, check the folder structure on the stick. If there are no errors, congratulations, you are now ready to boot your PS3 with kboot! To LiveCD or not to LiveCD When I built my first install and created these docs there was no Gentoo LiveCD for PS3, so the instructions below are for an install using the PS3 bootloader. It works fine but an issue is that you need to directly type all commands into the console on your TV, there is no option to use sshd and a remote session on another computer. If you want to do a more traditional LiveCD based Gentoo install, you can get the CD image from the experimental section of your local PS3 mirror, for example I got mine from http://gentoo.virginmedia.com/experimental/ppc64/livecd/installcd-ps3-minimal-beta.iso. Kboot first stepsTo boot up with kboot, first go to the System settings menu of the GameOS, and then choose the sub menu "Default System" - choose "Other OS".Now when your PS3 boot's it will use kboot instead of the GameOS -to return to booting the GameOS if you quit the Gentoo install before finishing, type the command "boot-game-os" in kboot to change the boot settings. Now shutdown your PS3, plug in the USB keyboard, and restart. At this point you could boot up on a LiveCD, start sshd and continue this tutorial via ssh. If you are not using a LiveCD, after the kboot boot process completes, you should have access to a command prompt. Kboot is a simple bootloader, and includes a rescue mode with BusyBox, meaning we have access to nearly all the commands we are used to during a normal Gentoo install. To get away from the Kboot prompt, and to see our old friend BusyBox's welcome, just type sh. Creating the Linux partitionsYou can go crazy with multiple partitions, but I wanted to keep my first test install simple, and with no need of a boot partition, I created just two, swap and root. If you don't know how to use fdisk, see the wonderful Gentoo install handbook. The Fedora Core install seems to use 512MB for swap, and that size makes sense, so my final partition layout is: Disk /dev/sda: 10.7 GB, 10737414144 bytes |
|
| Last Updated ( Monday, 05 March 2007 ) |
| < Prev |
|---|


