My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
OurOSDevTarballs  
Details of OurOS-dev tarballs - the where and what
Updated Jun 7, 2009 by david.mi...@gmail.com

Note - this may destroy you or your PS3, it is not tested. Proceed with caution.

ouros-dev-20090601.tar.bz2

Available from http://74.207.228.61/jonathan/ouros-dev-20090601.tar.bz2 is a first attempt at a developer filesystem for OurOS.

Use

What's it good for? Not a lot at the moment. There are basic toolchains for both ppu and spu (gcc and spu-gcc), and not much else. No X, nothing especially interesting. This thing's for work - for making the interesting stuff :)

Installation

The image is designed to be usable either as the root filesystem of a pre-partitioned, pre-formatted PS3 Linux environment (extracted to an empty / dir), or extracted a new folder and used with chroot.

Root FS

If these instructions don't make sense, ouros-dev-20090601 may not be for you (Alternatively, I may have made a mistake...)

Install a boot-loader, format a partition as ext3 and extract the tarball in /. The partition with / must have the label "/ouros". Use e2label to set the label on ext partitions.

If you have a separate /boot partition, copy to it the files from /boot in the archive, remove /etc/kboot.conf and mv /boot/etc/kboot.conf.bak /boot/etc/kboot.conf

If you have a swap partition labelled SWAP, it will be used automatically. /dev/ps3vram will also be used for swap space.

Once correctly set up, the ouros partition should be automatically detected by kboot or petitboot, and booting should be as simple as selecting ouros.

Username is root, password is ouros.

chroot

To use the filesystem with chroot, do something like the following :

  mkdir ouros
  cd ouros
  sudo tar jxpf path/to/ouros-dev-20090601.tar.bz2

and to enter the chroot

  sudo chroot . /bin/bash

Depending on what you want to do in the chroot, you may need to mount /dev (from outside the chroot but within the ouros dir, mount --bind /dev dev) or /proc (in the chroot: mount /proc). /spu and /sys can be done like /proc.

Workarounds

I needed the following workarounds to get it to boot nicely on my ps3 (both off a USB drive and the HDD). Your mileage may vary:

  • If you don't have a separate partition for /boot, it might choke when fschking what doesn't exist. Whereever the tarball was unpacked to, edit etc/fstab so the first uncommented line looks like:
  • LABEL=/boot1            /boot           ext2            noauto,noatime  1 0

ie, change the number at the end to 0 so it wont try to check.

  • Network comes up as eth1. This is because it still remembers the MAC address of the PS3 used to build the image and treats yours as a second interface. Fix this by deleting (or commenting out the contents of): /etc/udev/rules.d/70-persistent-net.rules
  • sshd isn't happy by default. There is no host key present in the image (for security). You need to generate your own unique key with
  • dpkg-reconfigure openssh-server

upon first boot.

Rolling your own

The image was created using a debootstrap sid powerpc install, using the following command :

  debootstrap --arch=powerpc sid ./ouros/ http://mirror.internode.on.net/pub/debian/

The choice of sid was arbitrary.

From there, chroot in, install software and configure.

Notable config file changes

These are the change I have made - you may need to make more changes...

  • /etc/hostname set to ouros.
  • /etc/network/interfaces Network is set for DHCP on eth0. For wlan0, comment out the eth0 entries and set the wlan settings for your network.
  • /etc/kboot.conf and /boot/etc/kboot.conf.bak contain the boot entry for ouros. See note above regarding separate /boot partition.
  • /etc/apt/sources.list Contains entries for an ouros-specific repository (currently http://74.207.228.61/jonathan/ouros/) and a fast local-to-me debian repository.
  • /etc/fstab Mounts are defined in terms of labels - label your partitions appropriately and all should work...
  • /etc/mplayer/mplayer.conf Set alsa as default ao driver.
  • /etc/udev/rules.d/10-ps3vram-swap.rules set up swap on /dev/ps3vram at boot.

Notable packages

gcc, spu-gcc, ps3-utils and spu-tools are installed. Updated versions of the Debian gcc wrapper packages were generated to pull in gcc-4.4 for each target.

Debian's mplayer is installed and works - it brings in a lot of undesirable dependencies and lacks spu-medialib support. TODO: Package up a patched mplayer bin with more suitable deps.

The kernel is a build of kernel.org 2.6.30-rc7, with almost, but not quite, ps3_defconfig. initrd was generated using update-initramfs. TODO: Package a kernel build 'properly'.

Powered by Google Project Hosting