|
OurOSDevTarballs
Details of OurOS-dev tarballs - the where and what
Note - this may destroy you or your PS3, it is not tested. Proceed with caution. ouros-dev-20090601.tar.bz2Available from http://74.207.228.61/jonathan/ouros-dev-20090601.tar.bz2 is a first attempt at a developer filesystem for OurOS. UseWhat'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 :) InstallationThe 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 FSIf 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. chrootTo 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. WorkaroundsI 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:
LABEL=/boot1 /boot ext2 noauto,noatime 1 0 ie, change the number at the end to 0 so it wont try to check.
dpkg-reconfigure openssh-server upon first boot. Rolling your ownThe 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 changesThese are the change I have made - you may need to make more changes...
Notable packagesgcc, 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'. |