[Main Page]

PS3 OtherOS++

From EurAsiaWiki

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy
Categories: PS3 | Linux

Source: http://www.ps3devwiki.com/index.php?title=OtherOS%2B%2B


Contents

OtherOS++

This guide is roughly copypasted from Gitbrew wiki and Glevand' documentations

Firmwares

With SS Patches

No SS Patches

Documentation

Packages

Petitboot Images

Scripts

PS3 Kernels

Git

http://git.gitbrew.org/

Master Servers

Gitweb Mirrors

Git Mirrors

partial backup

gitbrew-backup.zip (1.59 MB)

http://www.multiupload.com/ULBPNLOHJ7 (143.1 MB)
http://www.multiupload.com/MDNVQSFL00 (143.1 MB)
http://www.multiupload.com/O737BH53N6 (143.1 MB)
http://www.multiupload.com/EOG7ABG05F (143.1 MB)
http://www.multiupload.com/CSG2IHRESD (143.1 MB)
http://www.multiupload.com/AL658V0ZUU (143.1 MB)
http://www.multiupload.com/W5BIRAZTUM (143.1 MB)
http://www.multiupload.com/BR410045AK (143.1 MB)
http://www.multiupload.com/RFPAKBP1BD (27.7 MB)

Features


QA Flag

Reports state if you flag your ps3 you will lose all psn .act files making any bought psn content unuseable (warning: these are dev tools, remember this.)


SS Patches

Do not use these pups if you play games via backup managers of your legal games. You will get trophy errors. You need this patch to use ps3dm,sm, and other ps3 dev tools. We're currently working on a patch in petitboot so it only runs when you use linux and not mess with GameOS backup managers -> use dispmgr_access.sh

OtherOS++ How-To

Referenced from http://www.gitbrew.org/otheros/

PS3 Models

PS3 Fat (NAND):

PS3 Fat (NOR):

PS3 Slim (NOR):

256MB = NAND, 16 = NOR. Follow Accordingly


Install OtherOS on HDD (for all PS3 models)

   All tools are here: http://gitbrew.org/~glevand/ps3/
    
   NOTICE: All my tools should beep. If you don't get beep during one of the steps below
           then stop doing anything and contact me. I will help.
           OtherOS++ support: irc.gitbrew.org (ssl) #otheros
    
   ALL PS3 MODELS ARE SUPPORTED !!!
    
    1. Install my latest CFW
    2. When installation is finished, reboot in Recovery Mode (not the Backup/Restore in XMB) and choose "Restore PS3 System"
    3. Now your GameOS should use only the half of your HDD
       (Currently working on a better approach)
    4. Run setup_flash_for_otheros.pkg (for all PS3 models)
    5. Reboot (It's important to shut down and turn on your PS3)
    6. Store dtbImage.ps3.bin on USB drive, plug it in and run install_otheros.pkg
       (NAND owners should use dtbImage.ps3.bin.minimal, rename it to dtbImage.ps3.bin).
       Try different USB ports if you don't get any beeps.
    7. Run boot_otheros.pkg
    8. Run reboot.pkg (use the package, not manually reboot!)
    9. You should be in petitboot now.
       Exit from CUI to shell or switch to another virtual console.
   10. Run script create_hdd_region.sh
   11. Reboot and boot petitboot again
   12. You should see now new HDD device on petitboot, /dev/ps3dd.
       That's your OtherOS HDD region.
       Don't touch any other HDD regions if you don't know what you are doing. Use only ps3dd
       device for your Linux installation. Use parted to partition it and create GPT partition
       table on ps3dd. GPT is supported by both, Linux and FreeBSD.
    
   Be warned, if you damage your GameOS HDD region, GameOS will reformat HDD and
   remove your Linux HDD region in the process. You have to do the above steps again.
   Don't mess with GameOS HDD region and GameOS won't mess with your OtherOS HDD region.

For users who installed OtherOS on VFLASH region 7 previously

You have to restore your VFLASH before doing the above steps.
Be warned, this step is NOT for NAND owners.
1. Install my latest petitboot
2. Boot petitboot
3. Run script restore_vflash.sh
4. Reboot. GameOS should reformat your HDD again.

Partition the PS3 Drive

1. parted /dev/ps3dd
2. mklabel gpt
3. mkpart primary 0 2GB
4. print
5. mkpart primary 2GB (the rest of the hard drive here.)
6. quit.

In case you need it: full manual of Parted


You may now continue to Install Linux // (google-cache)




PS3:Linux

Example

Generic Guide to install any PPC64 Linux Distro (vflash only)

umount ps3db
umount ps3dc
wget http://gitbrew.org/~glevand/ps3/scripts/hdd_access.sh
chmod a+x hdd_access.sh
./hdd_access.sh
kexec -l vmlinuz --initrd of the distro you want to install

Fedora

Installed with Fedora 9 Full DVD Tested on Slim PS3 (3.55) & Phat PS3 (3.15)

When installing Fedora 9, when you are asked about partitioning, choose "Custom layout" and select ps3da.


3.55 (Custom CFW)

umount ps3db
umount ps3dc
./hdd_access print|patch|restore?
mkdir /mnt/fedora
cp /tmp/petitboot/mnt/sr0/ppc/ppc64/* /mnt/fedora
kexec -l vmlinuz --initrd=ramdisk.image.gz

Reboot the PS3 and it will start the installer

NOTE: When installing Fedora 9 (possibly all versions), choose "Custom layout" and select ps3da. The hdd_access.sh script disables ps3da-c and makes it so that ps3dd reads as the "first" hard drive. After the installer finishes, DO NOT HIT REBOOT. You must unplug or hardware reset your console.


3.15 PHAT (Stock OFW)

mkdir -p /media/usbstick/PS3/otheros/
wget http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-petitboot/otheros.bld
cp ./otheros.bld /media/usbstick/PS3/otheros/otheros.bld


NAND 3.15 Notes before Tweaks

Tweaks

root     ALL=(ALL) ALL
snowy    ALL=(ALL) ALL
KERNEL=="ps3da1", ACTION=="add", RUN+="/sbin/mkswap /dev/ps3da1", RUN+="/sbin/swapon -p 1 /dev/ps3da1"
 # udev rules to automatically enable swap on /dev/ps3vram
 # Copy this file to /etc/udev/rules.d/10-ps3vram-swap.rules
 # Choose only one of the rules below

 # Initialize and enable swap unconditionally
 KERNEL=="ps3vram", ACTION=="add", RUN+="/sbin/mkswap /dev/ps3vram", RUN+="/sbin/swapon -p 10 /dev/ps3vram"

 # Initialize using /etc/fstab and standard init scripts
 # KERNEL=="ps3vram", ACTION=="add", RUN+="/bin/bash -c '/bin/grep -q ^/dev/ps3vram[[:space:]]*swap /etc/fstab && /sbin/mkswap /dev/ps3vram'"

Fedora is now installed and configured.

Debian

Debootstrap HOWTO by glevand (geoffrey.levand@mail.ru)
-------------------------------------------------------

Links:

* http://www.debian.org/releases/stable/i386/apds03.html.en
* https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/linux-upgrade.html

Installing Debian Squeeze with debootstrap on petitboot
--------------------------------------------------------

- Configuring the base system

1. umount /dev/ps3dd2
2. mkdir /mnt/debian
3. mkfs.ext3 /dev/ps3dd2
4. mount /dev/ps3dd2 /mnt/debian
5. rm -rf /mnt/debian/*
6. debootstrap --arch powerpc squeeze /mnt/debian http://ftp.us.debian.org/debian
7. mount -t proc none /mnt/debian/proc
8. mount --rbind /dev /mnt/debian/dev
9. LANG=C chroot /mnt/debian /bin/bash
10. export TERM=xterm-color

- Mounting partitions

File /etc/fstab
----------------

/dev/ps3dd2			/			ext3		defaults		        	0 1
/dev/ps3vram		        none		        swap		sw					0 0
/dev/ps3dd1			none		        swap		sw					0 0
/dev/sr0			/mnt/cdrom	        auto		noauto,ro		        	0 0
proc				/proc		        proc		defaults		        	0 0
shm			        /dev/shm        	tmpfs		nodev,nosuid,noexec             	0 0

- Setting timezone

1. vi /etc/default/rcS
2. dpkg-reconfigure tzdata

- Configuring networking

1. echo "Name of your computer here" > /etc/hostname

File /etc/network/interfaces
-----------------------------

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

File /etc/resolv.conf (cat /etc/resolv.conf, if you see nameservers already skip this step)
----------------------

nameserver 192.168.1.1

- Configuring apt

File /etc/apt/sources.list
---------------------------
deb http://ftp.us.debian.org/debian squeeze main
deb-src http://ftp.us.debian.org/debian squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

1. aptitude update

- Configuring locales and keyboard

1. aptitude install locales
2. dpkg-reconfigure locales
3. aptitude install console-data
4. dpkg-reconfigure console-data

- Finishing touches

1. tasksel install standard
2. aptitude clean
3. passwd
4. aptitude install git build-essential ncurses-dev
5. mkswap /dev/ps3dd1
6. swapon /dev/ps3dd1

- Installing kernel

1. cd /usr/src
2. git clone git://git.gitbrew.org/ps3/ps3linux/linux-2.6.git
3. ln -sf linux-2.6 linux
4. cd linux
5. cp ps3_linux_config .config
6. make menuconfig
7. make
8. make install
9. make modules_install

If you compile your kernel on PS3 then make sure you activate swap because
compiling kernel needs much RAM. I used /dev/ps3dd1 as swap which
you have to create with fdisk first of course or some other program.

- Creating kboot.conf
1. ls /boot/
2. edit kboot.conf and replace what you see for > vmlinux-2.6.* from below (example. vmlinux-2.6.38-gf77c53d)

File /etc/kboot.conf
---------------------

debian=/boot/vmlinux-2.6.* root=/dev/ps3dd2
debian_Hugepages=/boot/vmlinux-2.6.* root=/dev/ps3dd2 hugepages=1

- Creating /dev/ps3flash device (needed for ps3-utils)

File /etc/udev/rules.d/70-persistent-ps3flash.rules
----------------------------------------------------

KERNEL=="ps3vflashf", SYMLINK+="ps3flash"


Ubuntu

Debootstrap HOWTO by glevand (geoffrey.levand@mail.ru) 
(Redone by snowy)
(Updated by thom)
-------------------------------------------------------
Installing Ubuntu Lucid (10.04) with debootstrap on petitboot
--------------------------------------------------------
For different versions of Ubuntu, just change all occurrences of lucid, to natty or whatever build you would like.

You can also edit the config files in whatever text editor you would like. Nano and Vi are the preferred text editors

- Configuring the base system

1. umount /dev/ps3dd2
2. mkdir /mnt/ubuntu
3. mkfs.ext3 /dev/ps3dd2
4. mount /dev/ps3dd2 /mnt/ubuntu
5. rm -rf /mnt/ubuntu/*
6. debootstrap --arch powerpc lucid /mnt/ubuntu http://ports.ubuntu.com
7. mount -t proc none /mnt/ubuntu/proc
8. mount --rbind /dev /mnt/ubuntu/dev
9. LANG=C chroot /mnt/ubuntu /bin/bash
10. export TERM=xterm-color

- Mounting partitions
if you want to use nano editor you will need to type "apt-get install nano" without quotes

File /etc/fstab
----------------

/dev/ps3dd2			/		ext3		defaults			0 1
/dev/ps3vram			none		swap		sw				0 0
/dev/ps3dd1			none		swap		sw				0 0
/dev/sr0			/mnt/cdrom	auto		noauto,ro			0 0
proc				/proc		proc		defaults			0 0
shm				/dev/shm	tmpfs		nodev,nosuid,noexec		0 0

- Setting timezone

1. dpkg-reconfigure tzdata

- Configuring networking

1. echo "Name of your computer here" > /etc/hostname

File /etc/network/interfaces
-----------------------------

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

File /etc/resolv.conf (cat /etc/resolv.conf, if you see nameservers already skip this step)
----------------------

nameserver 192.168.1.1

- Configuring apt

File /etc/apt/sources.list
---------------------------
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-updates restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security multiverse

OR (Use the following if you have trouble with above sources.)

deb http://ports.ubuntu.com/ubuntu-ports/ lucid main restricted
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates main restricted
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid-updates main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid universe
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates universe
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid-updates universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid multiverse
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-updates multiverse
deb-src http://ftp.usf.edu/pub/ubuntu/ lucid-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ lucid-security multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ lucid-proposed restricted main multiverse universe


1. apt-get update

- Configuring locales and keyboard

1. apt-get install locales
2. dpkg-reconfigure locales
3. apt-get install console-data
4. dpkg-reconfigure console-data

- Finishing touches

1. tasksel install standard
2. apt-get clean
3. passwd
4. apt-get install build-essential ncurses-dev git-core gitosis
5. mkswap /dev/ps3dd1
6. swapon /dev/ps3dd1

- Installing kernel

1. cd /usr/src
2. git clone git://git.gitbrew.org/ps3/ps3linux/linux-2.6.git
3. ln -sf linux-2.6 linux
4. cd linux
5. cp ps3_linux_config .config
6. make menuconfig
7. make
8. make install
9. make modules_install

If you compile your kernel on PS3 then make sure you activate swap because
compiling kernel needs much RAM. I used /dev/ps3dd1 as swap which
you have to create with fdisk first of course or some other program.

- Creating kboot.conf
1. ls /boot/
(After running ls /boot/, look for vmlinux... in this directory, and user it's fiel name in the next commmand.)
2. edit kboot.conf and replace what you see for > vmlinux-2.6.* from below (example. vmlinux-2.6.38-gf77c53d)

File /etc/kboot.conf
---------------------

Ubuntu=/boot/vmlinux-2.6.* root=/dev/ps3dd2
Ubuntu_hugepages=/boot/vmlinux-2.6.* root=/dev/ps3dd2 hugepages=1

- Creating /dev/ps3flash device (needed for ps3-utils)

File /etc/udev/rules.d/70-persistent-ps3flash.rules
----------------------------------------------------

KERNEL=="ps3vflashf", SYMLINK+="ps3flash"
Another Way to get Ubuntu on you PS3
-----------------------------------------------
...is to use an Installer-Disk.

1. Download these ISO
[http://cdimage.ubuntu.com/ports/releases/10.04/release/ubuntu-10.04-alternate-powerpc+ps3.iso Ubuntu.10.04.Alternate.PS3.iso]
These is the alternate-installation for PS3. Its a rudimentary installer. He is faster than the graphical one of 
the normal installtaion. 

2. Burn to disk 
it is needed, to burn these image. An installation from usb-pen is with these installation not possible.

3. Installation.
Put the CD in the drive and reboot to pettitboot. Choose the first normal installation.
Follow the instructions. If you get ask for the partition, my proposal is to use the whole linux-partition.
The assistant should choose a port of it for swap. After the installation you cloud chance the swap to ps3vram
The installation-process take a quite a while. (3-4h)
  
4. Post installation
it could be that you have to chance the fstab. (which described which /dev ubuntu mount to what you want)
From Petitboot go to Terminal. cd /tmp/petitboot/mnt/ps3dd1/etc/ and nano fstab.


Ubuntu should run like a weasel (a handicapped)

Post Installation

After you've set up Linux on your PS3... http://wiki.gitbrew.org/index.php/PS3:Tools // (google-cache)

Tools

Information about setting up PS3-specific tools found on git.gitbrew.org can be found at PS3:Tools

Wireless

Setting up wireless requires you to take down networking. You must have a direct connection to your PS3 to continue. More information.

Enabling Wireless with the latest Linux kernel

You don't need to use WLAN script with the latest Linux kernel anymore. Add the following boot parameter to your kboot entry:

ps3_gelic.disable_eurus_ctrl_iface=1

Attention: It will work on PS3 PHAT models only.


Enabling Sound

Sound HOWTO by c4pt and durandal


Cleaning up Errors

exim4

Kernel


plymouth

dev /dev tmpfs rw 0 0
ubuntu=/boot/vmlinux root=/dev/ps3dd1 video=ps3fb:mode:133 noplymouth nosplash

Enabling 7th SPU with the latest Linux kernel

Add the following boot parameter to your kboot entry:

spu_base.enumerate_shared=1

To disable it at boot time again, set it to 0.

Attention: Enabling 7th SPU on Linux will make most of SS services unusable because they use the 7th SPU !!!

Screenshot of OpenCL running on 7spu


Alternate precompiled Debian kernels

Origin: https://github.com/DirtyJerz/PS3-Debian-Kernels

install: dpkg -i ./*.deb
modify kboot.conf as needed
that is all.

Retrieved from "http://www.eurasia.nu/wiki/index.php/PS3_OtherOS%2B%2B"

This page has been accessed 686 times. This page was last modified 02:31, 29 August 2011.