[原创]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/

转载于:https://www.cnblogs.com/eygneph/archive/2007/07/08/810075.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值