总的来说,因为网站上各种教程都有点问题,所以走了一点弯路,索性最后都纠正过来了。
我按照的是 ps3wiki.qj.net/index.php/Gentoo_Howto上的描述做的,是不错,但是有点问题需要纠正,详情见下。
====
我选择 Gentoo是因为我目前的电视只支持576i模式,YDL不支持。
另外我的PS3没有直接连上网络,但是我的笔记本可以。注意,PS3只能通过连接ethernet网线才能通过网络安装linux,因为无线网卡的驱动现在在linux下还没有。
----
安装Linux是需要一点准备的,只说一点,就是精神上的:如果你指望和windows一样的图形界面,那就放弃算了,去玩游戏好了,何必浪费时间。如果真得很感兴趣,可以坚持下去的话,继续。
----
我之所以加上自己的经历和感受,而不是那种傻瓜式的教程,一来作为自己的日志,想纪录当时的心情;另外就是我不太赞同那些傻瓜式的教程,因为如果出了什么意外,傻瓜们就不知道干什么了。
总之适当的解释是需要的,而完整的信息,就靠你自己Google了。
====
一下是我的个人经历,因为发在英文网站,直接copy过来了。中文版本以后再说吧。
注意这里只达到一个基本可用的fluxbox界面的Linux,说实话很难看。Gnome 或者 KDE以后再说。
Finally I did it, so I am writing something now, to share my experience on how to install Gentoo on your PS3.
You may want to keep page http://ps3wiki.qj.net/index.php/Gentoo_Howto open, because this is the one I following.
---
First of all, I chose Gentoo because it support 576i TV output, while YDL request at least 720p TV output.
Secondly, I am not going to persuade you install Gentoo, following my 'Tutorial for dummy', because you have to choose a distro. of Linux by yourself, more importantly, the following text only lead you to a 'usagable' linux environment. Maybe in the future I will install and write something else, such as how to install applications in linux, but now, only a usable linux.
Finally, I hope you can learn something from my experience, which can show you that intalling a linux is not such a terrible thing...(although... I kind of think so...)
====
STAGE -1 THE SITUATION
I am sorry use this -1 sign, but I just remember after I wrote everything.
The following texts is my personal experience, which means
1, My TV is a SDTV at 576i, using composite cable
2, There is no direct internet connection to my PS3, but I have a laptop which can acces the internet.
If you have a better TV, just pay attention to select correct resolution.
If you have a internet connection, something may be slightly different, but in a good way.
====
STAGE 0 DOWNLOAD
1, Gentoo install CD
http://gentoo.virginmedia.com/experi...nimal-beta.iso
only around 140MB. This is the most important ISO you want to download for the installation. Just get it.
2, Stage4 Tarball file
http://gentoo.virginmedia.com/experi...3_32ul.tar.bz2
You may 'what the hell is a Stage4 tarball file?!', all right... I can answer you with 'I have no idea'... not really... I know something, but don't know how to say it... You can understand it as a 'backup' zipped file for a system.
Notice that this is a 32-bit version, there is another 64-bit version which i used it. Don't ask what is it, just get one of them. I recommend 32 for beginner.
3,Gentoo PS3 Livecd
http://gentoo.virginmedia.com/experi...xfce4-beta.iso
LiveCD, this word is easy to explain: it is live... you just insert this cd into PS3, then you can run a full Linux directly!!! without any installation!!! Well, since we are installing something to PS3, this ISO is the least important thing here. Download it if you like.
Actually this is a beta ISO which is from another livecd, which is for both PS3 and MAC. This one is only for PS3
4, Just download them, we will talk about them later.
====
STAGE I BACKUP
This is something about PS3. You can perform a full backup, or, just copy your savegame to SD card or whatever EXTERNAL media.
Notice that if you installed some games on the PS3 (for example, 5G for RR7), a full backup will also include them, which means you need a huge External HDD to let them in.
====
STAGE II FORMAT PS3 HDD
Formating is no kidding, it will clear all the data on your PS3, please make sure you have performed backup in last stage.
I found that you can only allocate 10G for other OS now, you can't set the number of the allocation.... Please correct me if I was wrong.
Anyway 10G is enough for a linux.
====
STAGE III otheros.bld
Now, find a SD(MS/CF) card.
On your computer, mount Gentoo installation cd ISO using Daemon tools or other software, inside \ps3_otheros_images folder, you can see a otheros.default file. Copy it onto SD card in the following folder: \PS3\otheros as otheros.bld.
* There is no need to put otheros.self to SD card after you upgraded your PS3 FW to 1.6.
Then insert SD card into PS3, in the system settings, install otheros, PS3 will scan and find it, confirm to install it.
What you did is a mini system called kboot installation. So if you check the option 'default system' and pick otherOS, after the reboot, the PS3 will go to kboot instead of game system.
Don't worry, in the kboot, type boot-game-os, ps3 will come back to game interface.
Anyway now PS3 will ask you if you want to reboot, don't do anything, hold on and read on...
====
STAGE IV DEAL WITH THE HARDDRIVE
please, do the following instructions before you reboot
1, make sure your Gentoo install ISO is ready ,and burnt to a CD.
2, make sure the stage4 tarball file is ready, the find a SD/MS/CF, just drop it on the root of flashcard.
3, insert the CD, insert the SD card, yes, now, before reboot.
Now you can reboot the system.
(Let me explain something here:
*You must insert the CD to boot PS3 into Gentoo installation, this is quite straightforward
*You also want to insert SD card containing tar file NOW, because in the booting process the system will recognize the device, then you can mount and copy tarball file immediately. If you don't insert the SD card now, it's fine, but you have to reboot to let the system recognize it, and nobody loves rebooting all the time)
---
PS3 will display some little penguins, and bunch of texts, then stopped.
Notice that now you can press TAB to circle a proper resolution for your TV, for me, 576i.
You have to do this fast, because there is a timeout period, after that it will automatically go on. For me, the auto thing is fine.
---
Wait for some time and enjoy the flowing texts, you can see a livecd / # on the screen.
Now we can do something: type
Code:
fdisk /dev/sda
and I don't not say too much about this.
ltimately, what you want is such a table:
Code:
Device Boot Start End Blocks Id System
/dev/sda1 1 8584 8790000 83 Linux
/dev/sda2 8585 10239 1694720 82 Linux swap / Solaris
But there is something different happening here, from the instruction web page:
if you input +10000M, the number of start and end is not right, but if you input +9000M, it is the same as the table...
I input +9000M to make sure it agree with this table.
Then reboot the system by typing
Code:
/sbin/reboot
After the reboot, following the procedure as http://ps3wiki.qj.net/index.php/Gentoo_Howto said
The very first thing you want to do is
Code:
mkfs.ext3 -j /dev/sda1
After you mounted /dev/sda1 to /mnt/gentoo/, we have finished preparing the HDD.
====
STAGE V THE REAL INSTALLATION
If you are connected to the internet, just do as http://ps3wiki.qj.net/index.php/Gentoo_Howto said, but you are standalone ps3 as mine, you have to do something more...
type fdisk -l, you can see a table such as
Code:
Device Boot Start End Blocks Id System
/dev/sda1 1 43919 44973040 83 Linux
/dev/sda2 43920 44943 1048576 82 Linux swap / Solaris
now you can type:
Code:
cd /mnt
mkdir memstick
mount /dev/sdc1 /mnt/memstick
I think you are clever enough to decide whether sdc1 or sdc2 by yourself.
Then you can copy the tarball file on your memorystick to the HD, which is
Code:
cp /mnt/memstick/xxxxxx /mnt/gentoo
-----------
OK!!! time to the REAL installation.
In fact it is just a procedure to extract the file from tar file, by typing
Code:
tar -xjpf stage4-970-ps3_32ul.tar.bz2
When it finished, move on to next stage
====
STAGE VI CONFIGURATION (It reminds me of STAR WARs...)
I don't want to talk about the full detail here, just following the procedure on http://ps3wiki.qj.net/index.php/Gentoo_Howto
HOWEVER, there is some major confusions here I want to mention
1, kboot.conf
When you reach the point to edit kboot.conf as they said, please make sure
Code:
Gentoo='sda1:/boot/kernel-genkernel-ppc-2.6.16-ps3 initrd=sda1:/boot/initramfs-genkernel-ppc-2.6.16-ps3 root=/dev/ram0 real_root=/dev/sda1 init=/linuxrc video=ps3fb:mode:8 rhgb'
Their oringinal idea is to copy an example kboot.conf then you can modify it, make sure the last super long line is correct, don't forget to choose your TV mode.
Pay attention that for a 64 version tarball, the name is slightly different, it is a PPC64 instead of PPC.
2, /etc/fstab
THERE IS A HUGE MISTAKE HAPPENING HERE
All right, the sample fstab in the tutoral is correct, but they ONLY mention that you have to add some lines to enable a SD/MS device.
In fact the sample fstab file you meet during the installation is VERY DIFFERENT from the sample on the webpage.
Pay attention the red fonts part in the following sample fstab
Code:
# .......
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/sr0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/sdc1 /mnt/memstick auto noauto 0 0 (60GB version only!)
/dev/sdd1 /mnt/sd auto noauto 0 0 (60GB version only!)
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
none /spu spufs default 0 0
Failing to do this, you will be unable to boot the system!! which was my shocking experience.
[if you are stuck at the boot up later, simply insert the CD and boot PS3, just chroot in and change this conf file, reboot, and you will be fine.]
----
All right , reboot the system, remember to remove the CD, and just wait and see, you will meet the login window then input login name 'root' and your defined password.
Now you are in the Fluxbox graphic interface. it is ugly, but at least you succeed!!!
=====
STAGE VII INSTALL APPS
I will not say anything about this, because I didn't actually do it last night, will keep you updated.
You may following the instruction on webpage
http://ps3wiki.qj.net/index.php/Gentoo_-_The_next_step
to do something more
====
RESCUE
If you meet something bad and unexpected, read on.
First of all don't panic. You can not harm your PS3 game and hardware (on theory).
If you messed up, the bottom line is that reboot the system without any CD, and enter boot-game-os to get back to PS3 XMB, to enjoy your life. Or, you can boot with Gentoo install CD, mount the HDD (/dev/sda1) and delete everything under /mnt/gentoo via command
Code:
cd /mnt/gentoo
rm -rf *
NOTE that rm -rf * is no kidding, it will delete everything in the current directory, including all the folders and files. Use this only you are desperated and want a completely new installation.
******************************
Please correct me anything wrong and leave any comment and question you have.
and good luck!
+++++++++++
This is only the beginning, the fluxbox is really terrible, you may want to install another X interface such as Gnome or KDE or whatever you like. But if you finished the basic installation, I think you are capable to carry on.
The Gentoo installation is not so straightforward as Windows (
), YDL, or some other graphic based system installation guide, but it is good for you to get familiar with Linux, because you can not always look forward to a graphic installtion for other small applications in Linux platform anyway. If you are expecting windows-style 'keep clicking next and finished' install, stop dreaming and go back to play PS3 games now.
If you are willing to spend time to keep typing all kinds of beautiful unix command such as 'ls' instead of 'dir', this is what you want!
