要准备的东西:
1. PS3 (这台是60G的)
2. PC
3. U盘
4. 空CD-R
5. 宽带
首先,PS3里给Linux分出10G的空间。System Setting -> "Format xxx"
(选项名记不清了,有个format)。把PS3的系统软件版本升级到最新,现在为1.9版。此机器为新机,所以没有做备份。如果你的硬盘里已经有东西,要先备份。
然后,下载刻录Gentoo minimal install CD。http://gentoo.osuosl.org/experimental/ppc64/livecd/
然后,在U盘根目录 mkdir -p PS3/otheros。把Gentoo光盘里的ps3_otheros_images里的otheros.default,拷贝到PS3/otheros下,重命名为otheros.bld
然后,下载32 userland stage4 tarball,放到U盘里。
然后,把U盘插到PS3上。System Setting下选择Install OtherOS。这样PS3就能从U盘里检测到需要的东西,然后按提示继续安装过程。重启前,在default system中选择other OS。重启。
然后,按照这个网页 http://overlays.gentoo.org/proj/cell/wiki/InstallGentooOnPS3从Prepare the hard disk for installation继续安装。这里要注意的是/dev/sda就是你前面第一步给Linux分出的10G。它是作为一个设备出现的,而不是一个分区。
之后就是正常的Gentoo安装过程。唯一一个要注意的是,如此装好的系统内核为64位,用户层为32位。编译内核时要设定CROSS_COMPILE变量
make CROSS_COMPILE=powerpc64-unknown-linux-gnu- oldconfig[menuconfig,...]