[原创]Reduce the Pain for Setting Up CellSDK Environment on FC6 PS3

Download FC6 for PS3(ppc64), burn it into disc, BUT RETAIN THE ISO IMAGE FOR LATER USE!
Download PS3 Linux Additional Disc(kernel), burn it into disc
Download otheros.bld and otheros.self, put it into "/PS3/otheros/"(capital sensitive) directory of the SD/MS card [Note] otheros.bld for Fedora 7, which is recommended by Cell SDK 3.0 is here. Otheros.self is no longer exists from SONY since firmware 1.60.
Plug the network cable on your PS3
Connect a usb keyboard on your PS3

PS3->Format HDD, 10 GB for OtherOS, 50 GB for GameOS
Install OtherOS
DefaultSystem -> OtherOS
Reboot PS3

FOR FC6:
Type "install-fc sda" in kboot prompt
When prompt, insert FC6 disc and hit 'y'
Select "1. Fedora Core 6 minimal install", NEVER select option 2, which may take you more than 4 hours to install, and with NO component option!
Just do the yes/no to proceed with the install
After less than 5 minutes, the FC6 disc automatically eject, insert Additional Disc, and hit 'y'
After less than 2 minutes, type in root password and the Additional Disc automatically eject. Type 'reboot' to reboot your machine

FOR FC7:
Type "linux video=720p" in kboot prompt
If prompted "Unable to find device", scroll down to find ps3_storage and hit ok.
Just do the yes/no to proceed with the install

After rebooting, insert FC6 disc again, and mount it onto /mnt/cdrom
In /mnt/cdrom/Fedora/RPMS/, type 'rpm -Uvh dhclient*', this will install dhclient to help you bring up the ethernet interface
Type 'dhclient' to obtain IP address. This should gives you dynamic IP address(well, of course, prepare your network cable and set your router to DHCP enabled).
Type 'yum install openssh-server'. This will install ssh server(sshd) on your PS3, later on you can remote your PS3 on a PC terminal.
Type 'service sshd start' to bring up ssh server

[Optional]
Open your PC and ssh to login your PS3 using putty or something similar

On your PC, setup an http server to expose all the FC6 iso image contents. Note: using tools to extract iso image files is a bad idea(I got missing files!). I just take Daemon Tools to load the image and redirect my http server to the virtual drive.
On your PS3, edit /etc/yum.repos.d/*, to redirect all baseurl to http://yourpc/fc6 and comment out all mirrorlist.
After that, do the following script:

yum groupinstall "KDE (K Desktop Environment)"

yum install pirut k3b mikmod

yum groupinstall 
"Server Configuration Tools"

yum groupinstall 
"Sound and Video"

#yum groupinstall 
"GNOME Desktop Environment"

yum groupinstall 
"Legacy Software Support"

yum groupinstall 
"Development Libraries"

yum groupinstall 
"Development Tools"

#yum groupinstall 
"Windows File Server"

yum groupinstall 
"System Tools"

yum groupinstall 
"X Window System"

yum install switchdesk lslk logwatch dump lftp bind-utils sendmail nss_ldap device-mapper-multipath ypbind yp-tools

yum install parted.ppc64 rdist.ppc man-pages.noarch talk.ppc pam_ccreds.ppc nc.ppc traceroute.ppc unix2dos.ppc setarch.ppc pam_passwdqc.ppc words.noarch cpuspeed.ppc netdump.ppc crontabs.noarch fbset.ppc acl.ppc dosfstools.ppc usbutils.ppc redhat-lsb.ppc rsync.ppc mgetty.ppc time.ppc man.ppc pam_passwdqc.ppc64 pam_smb.ppc wget.ppc

yum install diskdumputils.ppc ftp.ppc pinfo.ppc ksh.ppc jwhois.ppc psacct.ppc ipsec-tools.ppc dhcpv6_client.ppc lsof.ppc readahead.ppc pcmciautils.ppc sudo.ppc yum-updatesd.noarch pam_smb.ppc64 cyrus-sasl-plain.ppc sysreport.noarch pam_pkcs11.ppc64 rdate.ppc finger.ppc anacron.ppc nano.ppc pam_ccreds.ppc64 parted.ppc attr.ppc tcsh.ppc specspo.noarch stunnel.ppc mlocate.ppc tcpdump.ppc dos2unix.ppc rsh.ppc irda-utils.ppc numactl.ppc tree.ppc

yum install pam_pkcs11.ppc tmpwatch.ppc gnupg.ppc vconfig.ppc iptstate.ppc pax.ppc mtr.ppc nss_db.ppc rp-pppoe.ppc krb5-workstation.ppc pam_krb5.ppc64 mdadm.ppc quota.ppc pam_krb5.ppc symlinks.ppc smartmontools.ppc tcp_wrappers.ppc64 mtools.ppc setuptool.ppc telnet.ppc rng-utils.ppc irqbalance.ppc

#yum groupinstall 
"Office/Productivity"

yum install netpbm netpbm-devel tk-
8.4.*

yum install --enablerepo
=extras freeglut freeglut-devel mesa-libGLU-devel mesa-libGL-devel libX11-devel libXmu-devel libXext-devel

yum groupinstall "Chinese Support"

If you get 'No match' error for freeglut or freeglut-extra, just open /etc/yum.repo.d/fedora-extra.repo, and change "enable=0" to "enable=1" in [extra] section. Save and restart yum install.

This will grab rpm packages on your local pc http server, rather than the remote mirror, which can be painful when downloading. When all is finished, we can proceed with the CellSDK.

Reminder: if you want to use X window for normal users other than root, you should do
$ chmod 1777 /tmp
Otherwise you will not be able to bring up X window for normal users.

So, wget CellSDK21.iso from your http server. Mount it onto, for example, /mnt/iso.
$ cd /mnt/iso/software
$ ./cellsdk install

Then the script will automatically download some missing components(about 300M), and you should wait it unitl all installation is done. If you have problem downloading some fils, maybe the network sucks, you can download it via your PC and wget it into /tmp/cellsdk-2.1, and install it.

After cell sdk is installed. We can now build the sample code:
$ cd /opt/ibm/cell-sdk/prototype
$ ./cellsdk build --gcc #or
$ ./cellsdk build --xlc

Reference:
http://www.ps3coderz.com/index.php?option=com_content&task=view&id=73&Itemid=31
http://forums.qj.net/f-ps3-linux-283/t-how-to-install-fedora-core-6-linux-for-ps3-88431.html
http://docs.fedoraproject.org/yum/en/
posted @ 2007-07-08 14:14  eygneph  阅读(401)  评论(0编辑  收藏  举报