You are not logged in.
A short guide how to install Gentoo Linux on the Playstation 3
These are compilations of several Guides in 1.
Worked for a Linux Noob like Myself so I hope it will work for you too.
Prerequisites
Hardware
•Playstation 3 – Don’t need internet for the installation.
•screen
•USB keyboard
•USB mouse
•computer with internet connection for downloading the software to memory stick
•CD writer and a blank CD
•USB memory stick (at least 1.5 GB)
Playstation 3 specific software
•otheros.self: The “other OS" installer from Sony
•PS3 “Addon Packages CD”: A collection of items needed for a linux install, including some good doc’s (source included) ftp://ftp.uk.linux.org/pub/linux/Sony-P … -ADDON.iso
Gentoo software
•Gentoo PPC64 Playstation 3 Stage 4 tarball
•Gentoo portage snapshot (see http://www.gentoo.org/main/en/mirrors.xml for a mirror) gentoo/snapshots/portage-latest.tar.bz2
Installation
•burn CELL-Linux-CL_20061208-ADDON.iso to the blank CD
•partionize and format the harddisk: “Settings → System Settings Format Utility Hard Disk”. You’ll need at least 10 GB for “other OS" •on the memory stick, make a directory called PS3, and in that directory another
directory called otheros. Copy otheros.self and kboot/otheros.bld from the CD to
the otheros directory. Copy both Gentoo files to the memory stick and ps3-mtb-
gnome-01.tar.bz2. Unpack the files, so you’ll have these files and directories
on the memory stick:
USB Flahdrive file structure.
PS3/otheros/otheros.self
PS3/otheros/otheros.bld
(root of the drive) stage4-ppc64-ps3_32ul.tar.bz2
(root of the drive) portage-latest.tar.bz2
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!
Kboot first steps
To 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, usb flash drive and restart.
If you have done above correctly, after the kboot boot process, 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.
After the kboot boot process, you should have access to a command prompt. Partition your Linux disk with fdisk. Do this for two partions: one partition for Linux and 512 MB swap. You can choose different layouts, if you want. For the 2 partitions enter these commands. After every line press “enter”. Comments are in parantheses.
fdisk /dev/sda
n (new partition)
p (primary)
1 (first partition number)
1 (first cylinder)
512 (last cylinder)
t (change the type)
82 (Linux swap)
n (new partition)
p (primary)
2 (second partition number)
(press enter twice for the first and last cylinder to allocate the rest of the harddisk for this partition)
a (toggle bootable flag)
2 (second partition)
w (write changes to disk)
After partioning, reboot the PS3, this will add the sda1 and sda2 partitions to /dev:
reboot
Mount the memory stick and start the first installer. This will format /dev/sda2 and prepares the rest of the installation. It needs about 30 minutes.
mount /dev/__?_ /mnt/tmp
( for here use your thumb drive’s drive letters. For example mine was sde1)
mkfs.ext3 /dev/sda2
mount /dev/sda2 /mnt/gentoo
Copy the files from USB drive
cp /mnt/tmp/stage4-ppc64-ps3_32ul.tar.bz2 /mnt/gentoo
cp /mnt/tmp/portage-latest.tar.bz2 /mnt/gentoo
cd /mnt/gentoo
tar xvjpf /mnt/gentoo/stage4-ppc64-ps3_32ul.tar.bz2
tar xvjpf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
Finally you’ll see the “kboot:” prompt again. Now chroot to the installation and start the second installer. Depending on your internet network speed this will need about another 30 minutes.
chroot /mnt/gentoo /bin/bash
cd /
env-update
source /etc/profile
emerge --sync
e2label /dev/sda2 /
mkswap /dev/sda1
swapon /dev/sda1
passwd
At the end it will ask you for “New UNIX password”. This will be your root password. After entering your password, restart your system.
exit
reboot
When the PS3 has rebooted to kboot, wait 10 seconds and then Gentoo starts booting. Now you can login with “root” and your password and enter “startx”. Your mouse should work and in Applications are some programs to start.
Now you can start exploring the ADD-ONCD you’ve burned. There are some samples in “src” and documentation in “doc”.
If you are using Windows as your development platform, you may want to install Samba.
USE="-gtk -X" emerge samba
cd /etc
cd samba
wget http://www.luaplayer/ps3/smb.conf -O smb.conf
smbpasswd -a root
/etc/init.d/samba start
rc-update add samba default
This installs samba, downloads a configuration file and installs it as a service. From Windows you can connect a network drive. Login with your root account (for security reasons you may want to create a normal user on the PS3 and login with this account). Enter “ifconfig eth0” to see which address your Playstation 3 has and use this for connecting to it, e.g. “\\192.168.1.123\root”.
.
If you are tired of playing with Linux, you can type “boot-game-os” at the “kboot:” prompt before it starts booting Gentoo to boot the Playstation 3 Game OS. In the settings menu you can change it to Linux again.
Congrats, you are running the latest version of Gentoo.
About Videos, I’ll post in another post.
It’s late and I’m tired. Goodnight all .
Many source of the guide came from ps3news.
Me and My friend looked through all the coding to make sure all the typos were fixed.
(I think… I hope I didn’t make any while typing this thing up…)
Well correct me if I’m wrong guys and have fun!
Last edited by siptang (2007-03-03 17:05:11)
Offline
thanks man, im gonna try this out
Offline
Cool, I'll try it when I get home from school.

Offline
how did it go?
I tried to simplify it as much as possible
Offline
for me it did not work... i think you skipped editting the fstab and kboot.conf files for it to bout properly
Offline
also at the top you say we need the ps3-gnome01.tar.bz but in the instructions you list the stage4 tarball
i Tried both just to be safe (then installed YDL just to get somethine working to mess around with lol)
Offline
sorry about that!
i thought i fixed it.
Well i edited...
try again.
Sorry for that friend.
It was late at night and i was tired as hell XP
Offline
Yeah I did the stage 4 tarball and did all the things you said. And it did not boot
I believe you need to add
'
nano /etc/kboot.conf
And have it read something like
Default=gentoo
Timeout=10
Gentoo='sda2...... someything where it specifies where the kernel is and proc is and sets the videomode'
You should also need to edit fstab
nano /etc/fstab
And have the entries for sda1 and sda2 for the swap and / root
For everyone else I found this information on plenty of other websites but I am at work and limited in time and resources.......
The first instal I did was similar and after I did all that it booted well I jus could not get any DE to install or anything else without six hours of compiling.
Offline
yea i got this from 3,4 different guides.
I got it to work compiling them together, fixing all the typos and fixing all the directory mistakes.
Looks like I transffered some of their errors also when i retyped it here.
Sorry for that guys, it was really late at night and I was really tired, but I thought some people were waiting for this tut so I hurried. Sorry once again for the inconvinience.
gotta read more throughly to find more bugs i guess.
Default=gentoo
Timeout=10
Gentoo='sda2...... someything where it specifies where the kernel is and proc is and sets the videomode'
I don't think this is necessary though.
I'll look into the kboot.conf also once I get home.
Offline
hey is there any way, you can do this w/out the memory stick?

Offline
Well I did that in a variation when I got it to install correctly before it was something like
cp /etc/kboot.example.conf /etc/kboot.conf
And then nano
When I followed these it did not boot for me so maybe you do or I missed a step
I really wish someone would come out with a gentoo tarball that had that kde?vlc with everything needed, and samba and opera.....
I wonder if all you need to do is just get all that installed and up to date and then tar your whole drive.... then people could just use that instead of stage4 tarball and everything would work and be awesome
Offline
Anything usb I believe I used my ipod...... not sure about cd though can always try to burn the ps3/otheros files to a cd with that directory system to a cd....... might even be able to mount the cd with the tarballs on it as well during install
I think it is
mount /dev/sr0 /mnt/tmp
I think though not sure have not tried
Offline
but a ipod will work? i have a 4g nano with linux installed on it... it should work huh?

Offline
So I think the tarball idea would work.... so if anyone has gentoo updated and working with say vlc and DE or WM and opera or something like it and it is a clean install just tarball your whole drive and post it lol
Offline
Um linux? That is off topic but what do you mean..... I believe that if you can use it to play music off of it through the ps3 and it acts like a hard drive then yeah just do it that way
My ipod is just normal one formatted for windows and acts like an external hd for me so it worked fine you should be able to tell as soon as you install the other os. If it cannot find it... do something different lol
And for my ipod it was /dev/dd2 I believe to mount it
Offline
Thanks siptang i try as soon as possible ![]()
Offline
i do wish that gentoo will someday have a gui like ydl.
then we don't have to go through all this non-sense.
I am going to try to do a full format once I go home and then fresh install.
Hmmm ipod hey? I personally didn't try ipod so i can't tell you but it should work.
oh and you can just use cd to do the installation.
I will find out how and will post it.
Offline
Very nice tuto. Wish I would of had this the first time I installed but where would the fun be!![]()
Offline
ahhh ~ gentoo is not fun at all :p
Offline
i've gotten it to work up to the part where i have to mount my memory stick.
i put in "mount /dev/sdb1 /mnt/tmp" and it gives me:
"Mounting /dev/sdb1 on /mnt/tmp failed: No such file or directory"
is there any way to make/mnt/tmp?
EDIT: i got it to work. i figured out that sdb1 is the cd drive.
for future reference
sda - harddrive
sdb - cd/dvd/bd drive
sdc - memory stick pro
sdd - sd/minisd
sde - compact flash
not 100% sure, but pretty sure.
but now i have a new problem. i get to the part where i put in "cd /mnt/gentoo" and it says "/mnt/gentoo/: not found"
Last edited by baggy (2007-03-19 23:57:30)
Offline
for me, my usb flash was sde1. Not comp. flash.
and I also ran into the problem before.
I actually printed this tut and went step by step, highlighting the items along the way.
Fixing all the typos that were there. Once I find the paper I will edit again.
Sorry... just have been too lazy to do anything.
Offline
For people with internet hooked up to ps3. (wire access)
http://ps3wiki.qj.net/index.php/Gentoo_Howto
This is much more accurate.
It worked on my friend's ps3 on first try.
Offline
yeah, i just finished that guide. it worked nicely, but i don't like fluxbox. i'm gonna try to get kde on it.
Offline
hi!
i almost installed gentoo on ps3 but had some problems with the file below i really dont know what to to do with it i just need some more detailed information
"ps3-mtb-gnome-01.tar.bz2."
i also have problems with the startx i have already installed but i cant work the desktop
please help me!!
Offline