Go Back   PS3Hax - Sony Fears Us > OtherOS Resources > Fedora Core 8
Register FAQ Members List Calendar Mark Forums Read

Fedora Core 8 OK, here it is.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-29-2008, 07:02 PM
haxen's Avatar
haxen   is offline
I shredded my PS3
PS3Hax Leader
 
Join Date: Dec 2006
Posts: 239
Default How to Install Fedora Core 8

Howto: Install Fedora 8 on a Sony PS3

This manual describes the steps to take to get Fedora 8 running on a PS3.
It will describe every basic step to perform, so that even non-Linux acquainted users, can install Linux on a PS3.

Author: Remy Bohmer



Requisites:
  • A Sony PS3 (duh) Note: This procedure is based on Firmware 2.10, 60GB European PAL Version
  • Monitor/Flat screen-TV connected through HDMI.
  • USB keyboard/Mouse connected to the PS3.
  • A Fedora Compatible [Please register to see this link. ] (bootloader)
  • [Please register to see this link. ]
  • Internet connection to your PS3.
  • A wired Ethernet connection is required. Wifi is more complex to get operational.
Installation procedure: The installation procedure of Fedora 8 takes 3 steps:
  • Prepare the harddisk of the Sony PS3.
  • Installation of bootloader (otheros) in the Game-OS.
  • Installation of Fedora 8 in the 'Other OS'.
1. Prepare the PS3 harddisk

Originally the harddisk of the PS3 has one big partition for the Game-OS. If we want to run Linux on it, we need to create a separate partition for Linux. this chapter describes the steps to take:
WARNING: These steps will destroy ALL data that is currently installed on the harddisk and that is used by the Game-OS, such as downloaded games and personal game-save data. So, backup everything first on an external flashdisk/harddrive before continuing here!
(Note: this procedure has been copied from [Please register to see this link. ], that site is also a great resource for PS3-Linux enthusiasts)
  • Turn on the PS3. After initializing, you can see GameOS menu. You select "Settings -> System Settings".
    After selecting "Format Utility" from sub menu, following messages are displayed.
    • Format Memory Stick
    • Format SD Memory Card
    • Format CompactFlash
    • Format Hard Disk
  • To allocate a Linux partition on the Hard Disk, select "Format Hard Disk".
  • After following message is displayed. you select 'Yes'.
    Do you want to format the hard disk?
  • You can see following message.
    Select a partition setting for the hard disk.
    * Use All for the PS3 System
    * Custom
    To allocate a Linux partition on the Hard Disk, select "Custom".
  • After selecting "Custom", following messages are displayed.
    Select a partition setting for the hard disk.
    Use All for the PS3 System
    Allot 10GB to the Other OS
    Allot 10GB to the PS3 System
    To allocate a Linux partition on the Hard Disk, select one of following items.
    Allot 10GB to the Other OS
    Allot 10GB to the PS3 System
    If your hard disk size is 20GB, you have to select 'Allot 10GB to the Other OS'. (Notice that a default Linux
    install takes about 5GB, so if you do not plan to store lots of data on the Linux partition, 10 GB should be enough. Later the Linux partition can be extended by means of a USB drive, or connecting to a fileserver)
  • After selecting the item, following messages are displayed.
    Select the hard disk format method.
    Quick Format
    Full Format
    You can select either 'Full Format' or 'Quick Format'.
  • After following message is displayed. you select 'Yes'.
    If you format, all data will be deleted.
    This data cannot be restored.
    Are you sure you want to continue?
  • After selecting 'Yes', format process is started.
  • After creating a Linux partition, following messages are displayed.
    Format Complete.
    Press the X button to restart the system.
    After pressing the X button, restart the system software and you can see GameOS menu.
2. Installation of the Linux bootloader on the PS3.

To be able to install Linux on the PS3, we need to install a bootloader first. This bootloader can be anything that is capable of booting a Linux kernel, but we choose to use a Fedora compatible version of Kboot here. There are different versions of Kboot floating around, some are destined for other Linux flavors, and are incompatible with Fedora.

Kboot is in fact a very small Linux kernel and busybox userland that can be loaded from a RAM-drive. This Kboot bootloader will provide a simple boot-prompt after installation. Later, when everything is up and running the KBoot bootloader can be replaced by a Graphical bootloader like [Please register to see this link. ]
But first, for Fedora we need to have a command prompt, so we use Kboot.

Errata: Since PS3 firmware version 2.10 there is a problem with screen blanking in both Kboot as well as in the Fedora 8 kernels. The screen will go black from time to time (or sometimes even all the time), which can be very annoying. This version of [Please register to see this link. ] (20071220) has this problem fixed.

Kboot Installation steps:
  1. Burn this [Please register to see this link. ] image to a CD, with your favorite burning software.
  2. Put the CD in the drive on the PS3.
  3. Start up your PS3 (in the Game-OS) and go to the (System Settings) in the home menu.
    If you select [Install Other OS] under (Settings), the system will search for the kboot/otheros/bld file saved on the CD. Follow the on-screen instructions to complete the installation.
Now you can start KBoot by adjusting the [Default System] setting under (Settings) -> (System Settings) on the PS3 system.
Notice that you can always boot the Game-OS by entering the command 'boot-game-os' at the kboot prompt, or by holding down the power-button during power-on.
3. Installation of Fedora 8

The installation of Fedora 8 has some small problems. The easiest way to install Linux on the PS3 is by using Yellow Dog Linux, but this distro is derived from Fedora Core 5, and is therefor rather old.
It also still contains the screen-blanking bug, so it will not run properly on the Firmware 2.10.

For Fedora 8 to install correctly we have to do several steps manually when the installation is completed from the installation Wizard. We also will compile a new kernel later on that is much smaller than the original Fedora kernel, which is good because memory is a sparse resource on a PS3.

The installation procedure:
  • Insert the Fedora DVD in the PS3
  • Switch on the PS3, and wait for the KBoot prompt.
  • At the kboot: prompt type 'linux64 text xdriver=fbdev'
  • 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 3 partitions of the following sizes:<table style="text-align: left; width: 503px; height: 112px;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="background-color: rgb(204, 204, 204);">Mount point:</td> <td style="background-color: rgb(204, 204, 204);">Filesystem Type:</td> <td style="background-color: rgb(204, 204, 204);">Size:</td> </tr> <tr> <td>/boot</td> <td>ext3</td> <td>196MB</td> </tr> <tr> <td>
    </td> <td>swap</td> <td>512MB</td> </tr> <tr> <td>/</td> <td>ext3</td> <td>'Fill all available space</td> </tr> </tbody> </table>
  • 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'
The actual installation will take about 65 minutes...
  • After installation you can reboot the system...
After reboot you should get this error message: see [Please register to see this link. ]
  • Put back the Installation CD in the PS3 and press CTRL-ALT-DEL to reboot.
  • At the Kboot prompt type: linux rescue
  • On these questions:
    • Language Selection -> Choose your Language (e.g. English)
    • Keyboard Selection -> Choose your keyboard layout (e.g. us)
    • Network Configuration -> not necessary.
    • Rescue screen -> Choose Continue...
  • 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. See table below for more options: <table style="text-align: left; width: 588px; height: 139px;" border="1" cellpadding="2" cellspacing="2"> <tbody> <tr> <td>YUV</td> <td>60Hz</td> <td>1:480i</td> <td>2:480p</td> <td>3:720p</td> <td>4:1080i</td> <td>5:1080p</td> </tr> <tr> <td>YUV</td> <td>50Hz</td> <td>6:576i</td> <td>7:576p</td> <td>8:720p</td> <td>9:1080i </td> <td>10:1080p</td> </tr> <tr> <td>RGB</td> <td>60Hz</td> <td>33:480i</td> <td>34:480p</td> <td>35:720p</td> <td>36:1080i</td> <td>37:1080p</td> </tr> <tr> <td>RGB</td> <td>50Hz</td> <td>38:576i</td> <td>39:576p</td> <td>40:720p</td> <td>41:1080i</td> <td>42:1080p</td> </tr> <tr> <td>VESA</td> <td>
      </td> <td>11:WXGA</td> <td>12:SXGA</td> <td>13:WUXGA</td> </tr> </tbody> </table> 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.)
    • mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
    • cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
  • Remove the Fedora DVD, Type 'exit', and the system reboots...(if the system hangs on shutdown, just do a hard poweroff/on)
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 M$-Windoze: use for example: [Please register to see this link. ]).
  • login as 'root'
  • First update the system to the latest updates
    • yum -y upgrade
This step will take a few hours to complete...
  • 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
    • mv -f /etc/inittab{.new,}
  • After changing this line, do another reboot, and the firstboot procedure is automatically started.
  • To get rid of the screen blanking bug, you have to recompile the kernel. See chapter 4b of this howto.
4. Optimizing the Fedora installation

The Fedora distribution is a universal distro. It has therefor things enabled in the kernel and userland that uses memory, but which are not needed on a PS3. Here is a short manual that describes several things to make Fedora less heavy for the PS3.
4a. Optimize Userland

If we assume a trusted environment, and security is not important, and we do not plan to use the PS3 Linux box as a Desktop system, we can have a limited set of services running. The following services can be disabled:
  • chkconfig ip6tables off (if you not have IPv6 enabled)
  • chkconfig iprdump off
  • chkconfig iprinit off
  • chkconfig iprupdate off
  • chkconfig isdn off
  • chkconfig mdmonitor off
  • chkconfig auditd off
  • chkconfig cups off
  • (once firstboot is executed once) chkconfig firstboot off
  • chkconfig sendmail off
  • chkconfig yum-updatesd off
If selinux is disabled, the following services are also not needed:
  • chkconfig restorecond off
  • chkconfig setroubleshoot off
Install a lightweight desktop:
  • yum groupinstall XFCE (during login you can set xfce as default desktop)
Remove some applications: (if they are not used)
  • yum grouperase "Office/Productivity"
  • yum grouperase "Games and Entertainment"
  • yum grouperase "Graphics"
  • yum grouperase "Printing Support"
  • yum grouperase "Mail Server"
4b. Building a smaller kernel

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/
    • <small>wget http://www.kernel.org/pub/linux/kernel/people/geoff/cell/CELL-Linux-CL_20071220-ADDON/src/linux-2.6.23-20071219.tar.bz2</small>
    • tar xjf linux-2.6.23-20071219.tar.bz2
    • cd linux-2.6.23-20071219
    • wget [Please register to see this link. ] -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!


<imagine-something-yourself><video mode="" id=""><video mode="" id=""></video></video></imagine-something-yourself>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-31-2008, 05:40 AM
curlyxcracker   is offline
Hey ... I posted a message
 
Join Date: Jan 2008
Posts: 1
Default

I get to the video mode part, type in all the "On the command prompt, perform these actions:",
Then I exit and reboot, then It just boots to a black screen. BTW, I have a 1080i ntsc so if I was suppose to change the command in anyway please tell me what I should do.


EDIT: I relize mistake and reran linux rescue andreplaced 138 with 132 and same problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-31-2008, 09:44 AM
haxen's Avatar
haxen   is offline
I shredded my PS3
PS3Hax Leader
 
Join Date: Dec 2006
Posts: 239
Default

try the other basic modes like 1 (480i) and 4 first. just experiment to get it booted and change later. try the RGB modes 33 or 36 or try the VESA mode 11. we have no idea about your setup. Also, do this with component cables, not HDMI. trust me on that one.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-01-2008, 03:57 PM
ispydrugs   is offline
Hey ... I posted a message
 
Join Date: Jan 2008
Posts: 1
Default

I get to the first reboot and run linux rescue, then get to the shell and input the commands:
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
mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
and
cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
then remove the cd and reboot and I still get the same error message. I have tried 2 clean installations and still fail at this part...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-03-2008, 03:06 PM
jaskon   is offline
Hey ... I posted a message
 
Join Date: Jan 2008
Posts: 1
Default

How to switch to game os from Fedora core 8?
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-03-2008, 06:34 PM
Uresu   is offline
Hey ... I posted a message
 
Join Date: Feb 2008
Posts: 1
Default

Notice that you can always boot the Game-OS by entering the command 'boot-game-os' at the kboot prompt, or by holding down the power-button during power-on.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-17-2008, 09:42 PM
egilmela   is offline
Hey ... I posted a message
 
Join Date: Feb 2008
Posts: 1
Talking It worked for me...

Hi


I have found an easier solution to the input you have to do in the guide (sed s@'append="rhg.......)



Just start from the commandline, but instead type chroot /mnt/sysimage

then make your way to the /mnt/sysimage/boot/etc/ folder

and edit the yaboot.conf with nano like so

nano yaboot.conf

Replace the line: append="rhgb quiet root=LABEL=/1"

with append="video=ps3fb:mode:138 rhgb quiet root=/dev/ps3da3"

and also replace 138 with a number corresponding to your screens resolution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 08:56 AM
miha   is offline
Hey ... I posted a message
 
Join Date: Feb 2008
Posts: 1
Default

<small>[Please register to see this link. ]
has been replaced with </small>
[Please register to see this link. ]
When following the steps and replacing the string accordingly I get asked lots of kernel configuration questions. What to select? Does it work with this new version?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-02-2008, 10:04 PM
xboxgame   is offline
Hey ... I posted a message
 
Join Date: Mar 2008
Posts: 1
Default

Quote:
Originally Posted by ispydrugs View Post
I get to the first reboot and run linux rescue, then get to the shell and input the commands:
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
mv -f /mnt/sysimage/boot/yaboot/yaboot.conf{.new,}
and
cp /mnt/sysimage/boot/yaboot/yaboot.conf /mnt/sysimage/boot/etc/yaboot.conf
then remove the cd and reboot and I still get the same error message. I have tried 2 clean installations and still fail at this part...

Same problem here... some one give us more details please
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-03-2008, 02:16 AM
bejiboys   is offline
Hey ... I posted a message
 
Join Date: Feb 2008
Posts: 1
Default BluRay drive not detected by FC8

I have been successful in installing FC8. The only problem that I have is that the bluray drive is not mounted. For the other remaining drives (e.g. SD, CF, MS), attaching a device mounts the drive. I wanted to install other software using YUM or software updater with the FC8 install DVD, but since the drive wouldn't mount, I couldn't. Any ideas would be appreciated.

TY.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: kboot: install /init: eval: 1: install not found insom Yellow Dog Linux 5 12-02-2009 04:39 AM
fedora core 5 help please Skitzo Linux Applications 1 01-30-2008 02:46 PM
How to Install Gentoo Linux haxen Gentoo Linux 40 09-09-2007 09:38 AM
Fedora Core 5 crapplaya Linux Applications 0 06-27-2007 02:15 PM
yum problem in fedora core 5 SirFishouse Linux Applications 2 02-05-2007 12:05 PM


All times are GMT -5. The time now is 02:27 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by 3.0.0
© PS3Hax.com 2007 & 2008