How to install Fedora 8 on PS3
Submitted by editor on Tue, 07/29/2008 - 15:47.
in
出处:http://forums.afterdawn.com/thread_view.cfm/622170
*A SPECIAL NOTE: If you have FW 2.10+, there will be slight problems with the kboot (Screen flashes on and off sometimes).
REQUIRMENTS:
The Fedora 8 PPC image (Direct Download link: http://mirror.anl.gov/pub/fedora/linux/r...a-8-ppc-DVD.iso
BitTorrent Link: http://torrent.fedoraproject.org/torrent...dvd-ppc.torrent ).
The KBoot: http://www.sendspace.com/file/4hw38q
Storage Media to put the KBoot in (i.e. Memory Stick, Flash Drive, iPod (Yes!!!)), etc.
USB Keyboard and Mouse
Ethernet Broadband Connection (WiFi is too complex to get working)
A Brain.
1. Take your storage media, and create a folder called 'PS3' (w/o the quotes) on the root of it. (X:/) Then, within the PS3 folder, create an 'otheros' folder (w/o the quotes), and place the otheros.bld file there.
2. Connect your storage media to your PS3. Go to Settings>System Settings>Format Utility. From there, choose 'Format Hard Disk'. Make sure you allot 10GB to OtherOS. Do a quick format.
3. Restart. Then. go to Setting>System Settings>Install Other OS. It will then scan your storage media for the KBoot. Install it. Then, go to 'Default System' and choose OtherOS.
4. Restart. Assuming you had a USB Keyboard and mouse connected, and the Fedora 8 DVD in prior to the reboot, the KBoot will show all kinds of text. When it stops to 'kboot' and a blinking cursor, type (w.o quotes), 'linux64 text xdriver=fbdev'. Hit enter.
5. The installation wizard is starting... you get these questions:
Media check -> Choose: 'Skip' or 'OK', as you wish.
Welcome to Fedora -> Choose OK
Language Selection -> Choose your Language (e.g. English)
Keyboard Selection -> Choose your keyboard layout (e.g. us)
Partitioning Type -> Select 'Create custom layout. (select ps3da, 44940MB)
Now, create three partitions:
Mount point: Filesystem Type: Size:
/boot ext3 196MB
swap 512MB
/ ext3 'Fill all available space
5. Review the layout, and proceed with OK
Question about low memory, and enable swap? Choose 'Yes'
Ethernet configuration:
Configure eth0 ? -> yes
Activate on boot -> yes
Settings: (just as an example, depends on your local network)
Enable IPv4 support -> e.g. yes
IPv4 configuration -> DHCP
Hostname configuration -> manually -> ps3
Time zone selection -> System clock uses UTC
Zone Selection -> e.g. Europe/Amsterdam
Root password -> <imagine-something-yourself>
Package selection -> leave default, we customize later.
Installation to begin -> Press 'ok'
6. Find something to do for 65 minutes.
7. Once done, reboot. Once you reboot, you'll get the message: 'Cannot boot system after installation on a PlayStation 3'. Don't freak out.
Put back the Installation CD in the PS3 and press CTRL-ALT-DEL to reboot.
At KBoot, type 'linux rescue'.
Next, you will get these questions:
Language Selection -> Choose your Language
Keyboard Selection -> Choose your keyboard layout (ex. US)
Network Configuration -> not necessary
Rescue screen -> Choose Continue...
8. On the command prompt, perform these actions:
sed s@'append="rhgb quiet root=LABEL=/"'@'append="video=ps3fb:mode:138 rhgb quiet
root=/dev/ps3da3"'@ /mnt/sysimage/boot/yaboot/yaboot.conf
> /mnt/sysimage/boot/yaboot/yaboot.conf.new
The videomode value to select depends on the type of screen you are using.
YUV 60Hz 1:480i 2:480p 3:720p 4:1080i 5:1080p
YUV 50Hz 6:576i 7:576p 8:720p 9:1080i 10:1080p
RGB 60Hz 33:480i 34:480p 35:720p 36:1080i 37:1080p
RGB 50Hz 38:576i 39:576p 40:720p 41:1080i 42:1080p
VESA 11:WXGA 12:SXGA 13:WUXGA
0:auto mode, full screen mode: <video mode ID> + 128, dither ON mode : <video mode ID> + 2048
(138 is thus: 1080p Full Screen PAL mode, 50Hz.)
Now type:
mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
Hit enter.
Then type:
cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
Hit Enter.
9. Remove the Fedora DVD, Type 'exit', and the system reboots...(if the system hangs on shutdown, flip the switch).
System is now booting from harddisk...
After a while, we get a text installation menu, configure here what is needed.
Once we have a login prompt, we can login either locally, or remote through SSH. Because of the screen blanking bug, I prefer to login through SSH from another Linux-box (or if you are on Windows: for example Putty.exe).
10. login as 'root' First update the system to the latest updates by typing yum -y upgrade.
If you like to start in GUI mode instead of text mode, the following line in /etc/inittab file has to be modified:
sed s@'id:3:initdefault:'@'id:5:initdefault:'@ /etc/inittab > /etc/inittab.new
Hit enter.
Then type:
mv -f /etc/inittab{.new,}
Hit enter,
After changing this line, do another reboot, and the firstboot procedure is automatically started.
11. The original Fedora 8 kernel is quite big and, due to Fedora nature, universal.
The stock Fedora 8 kernel also has a bug in it so that the screen is blanking from time to time.
So, we build an updated kernel with a minimal set of elements.
The following steps need to be taken to build a new, smaller, kernel for Fedora 8:
Install the GCC compiler toolchain and other development tools with
yum groupinstall "Development Tools"
Install git tooling and another required package with:
yum install git ncurses-devel
Make as normal user a build directory on the target, and change the current directory to it.
mkdir -p ~/ps3_build && cd ~/ps3_build
Download, compile and install the dtc tool (Device Tree Compiler)
git clone git://www.jdl.com/software/dtc.git dtc
cd dtc
make
su (Switch to root user)
cp dtc /usr/bin/
exit
Download and extract the kernel sources at the proper location
cd ~/ps3_build/
wget http://www.kernel.org/pub/linux/kernel/p...0071219.tar.bz2
tar xjf linux-2.6.23-20071219.tar.bz2
cd linux-2.6.23-20071219
wget http://www.bohmer.net/ps3_stuff/smallkernel.config -O ./.config
sed s@'EXTRAVERSION ='@'EXTRAVERSION = -20071219'@ Makefile > Makefile.new
mv -f Makefile{.new,}
make oldconfig
make menuconfig (only if you need to do some special changes for your own needs)
make -j2
su (Switch to root user)
make modules_install && make install
cp .config /boot/config-2.6.23-20071219
exit
Adapt the bootloader startup files by adding the new installed kernel. Execute all these commands:
su (Switch to root user)
echo "default=custom" > /boot/etc/yaboot.conf.new
cat /boot/etc/yaboot.conf >> /boot/etc/yaboot.conf.new
cat >> /boot/etc/yaboot.conf.new << EOF
>
> image=/vmlinux-2.6.23-20071219
> label=custom
> read-only
> initrd=/initrd-2.6.23-20071219.img
> append="video=ps3fb:mode:138 rhgb quiet root=/dev/ps3da3"
>
> EOF
mv -f /boot/etc/yaboot.conf{.new,}
cp -f /boot/etc/yaboot.conf /boot/yaboot/yaboot.conf
exit
Reboot the system and we are done!

