Post: Tutorial Install Ubuntu/cellsdk/xbmc on the ps3
05-24-2010, 02:17 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); You will need a usb keyboard
and mouse for this install.

THIS WILL NOT WORK ON FIRMARES ABOVE 3,15 AND WILL NOT WORK ON SLIM

First off decide wether you want to install on a usb hdd or the ps3's internal hdd (internal hdd will need to be formatted and a partition assigned to OtherOS).

Then get a copy of the OtherOS.bld for petitboot and put it on a usb stick at /PS3/OTHEROS/otheros.bld

Burn yourself a copy of the ubuntu desktop 10.04 ps3 .iso from the ubuntu site.

Once done goto system settings/install OtherOS, and insert your usb stick with the OtherOS.bld on it in the ps3.

Here is the crucial point if installing on a usb hdd, when prompted about the otheros partition being formatted, just say no, and proceed to install otheros without formatting your ps3's hdd (Or if you want to install onto the ps3's hdd, you can say yes to this step and follow the instructions).

Once the otheros.bld is installed, say no to rebooting to otheros and remove the usb stick from the ps3, insert a usb hdd, and the usb keyboard and mouse now, then goto system settings/default os and select otheros, then reboot to otheros when prompted or reboot the ps3 via a shutdown and pressing the power button.

Once petitboot appears on screen, (if you get a blank screen pressing number buttons 1 2 and 3 will cycle through available resolutions if you still cant get a display pressing the del key on the keyboard will reboot the ps3, back to the GameOS and you'll have to look for a solution).

Insert the Ubuntu 10.04 disc you burnt earlier (it has to be the available ubuntu10.04 desktop.ps3.iso else it wont install). and wait till you see the disc icon on screen. When it appears click it, then the top option (install).

Wait for it to load up and follow the onscreen instructions till you get to the Prepare disc space screen (step 4 of 7).

Make sure your hdd (or USB hdd) is named as the drive you are instaling to, then choose whichever option suits you, (Less advanced linux users should use the erase and install the entire disc option for ease).

Once you have your USB hdd partitioned and ready, carry on by following the onscreen prompts till step 7 then proceed to install ubuntu 10.04 (this will take a while).

Once complete proceed to log into Ubuntu using the user name and password you provided in the install and update the install when prompted by the update manager.

Go to the menu bar at the top and selct Applications/accesories/ and drag and drop the terminal icon somewhere onto your desktop, (this will save you some time as we install the cell sdk).

Open terminal and type sudo apt-get build-dep cell-sdk then hit enter and enter your login password as the root password. now wait for it to finish. ( I had issues with dependancies when installing the cell-sdk that doing this step couldnt fix, but I had installed the cell-sdk2.1 first).

Then type sudo apt-get install cell-sdk (login password again for the password if asked) then wait for the cell-sdk to install.

Once thats complete (if all went well) type sudo nano /etc/fstab and hit enter use the up/down arrow buttons on the keyboard to scroll to the bottom of the file check for a line that reads...

none /spu spufs defaults 0 0

If its not there add it so it looks as follows



You now have the cell-sdk installed

Now to install the mesa cell-driver (for people that want to test it and use it) its not essential atm for the xbmc install

goto You must login or register to view this content. and open the link for the latest build (The highest numbered file IE- at the time of writing this tut, the latest build was 7.8.1).

Save the tar.gz files for Mesalib-x.x.x.tar.gz MesaGLUT-x.x.x.tar.gz and MesaDemos.tar.gz, then open your home folder/downloads to find the files, press and hold ctrl and highlight all 3 files then right click and select cut, go back a folder to the home folder, and right click and paste the files there,

In your terminal window type

tar zxf MesaLib-X.Y.tar.gz
tar zxf MesaDemos-X.Y.tar.gz
tar zxf MesaGLUT-X.Y.tar.gz

then wait for it to finish

Open your home dir again and right click and rename the folder Mesa for ease of typing in terminal then close the window.

In terminal type sudo apt-get install libpthread-stubs0-dev xorg-build-macros xserver-xorg-video-nouveau and hit enter.

goto You must login or register to view this content. click compiling/installing on the left hand column, the get the latest version of drm2proto and libdrm in the tar.gz format, down load then then cut and paste them from home folder/downloads to your home folder, then right click each and select extract here.

In terminal cd /path/to/libdrm-x.x.x and type ./configure --enable-experimental-nouveau-api and hit enter wait for it to finish then type make and hit enter wait for it to finish again then type sudo make install and hit enter, once finished cd /path/to/drm2proto-x.x.x and type ./configure wait for it to finish, then type sudo make install and wait for that to finish, the type cd and hit enter.

Type sudo apt-get install alien and hit enter and say yes to the download, then wait,

Then get this file and cut and paste it from your home folder/downloads to your home folder then type sudo alien -d -i cell-libs-devel-3.1-1.ppc.rpm and hit enter and wait for it to install.

open your home folder/Mesa/configs and open the linux-cell build script and edit from ppu32-gcc and
ppu32-g++ to gcc and g++



and spu-gcc to spu-gcc-4.3



then save and close the file then browse to folder /opt/cell/sdk/usr/include and open the libmisc.h file, add this in line 43

#define vector __vector

Then save and close the file, and close the window.

In terminal type sudo apt-get install gcc-4.3-spu then hit enter and say yes when prompted.

Then again in terminal type sudo nano /usr/bin/ppu32-embedspu and edit where its says ppu-embed to say ppu-embedspu then press ctrl+o hit enter, then press ctrl+x



In terminal again type sudo apt-get install xorg-dev libglu-dev and hit enter then say yes when prompted, and wait for the packages to install.

Then in terminal type cd Mesa and hit enter, then type make linux-cell hit enter and wait for a while (this will take some time and you will see quite a few warnings pop up) once complete you have the mesa linux-cell driver compiled and ready to be used. Happy

If you havent rebooted after installing the cell-sdk type sudo mount /spu and hit enter now (this will enable the use of the spu's, it doesnt need to be done again after a reboot though)

Before each use of the linux-cell driver you must open a terminal window cd Mesa then type

export LD_LIBRARY_PATH=$PWD/lib/gallium:$PWD/lib/

you can then verify the cell driver is working by typing progs/xdemos/glxinfo and looking for the line "OpenGL renderer string Gallium x.x on cell"

[img][/img]

There are a number of demos found in the xdemos folder in Mesa/progs/ and some others in the demos folder.

Enjoy Happy

XBMC install on the ps3

In terminal type sudo apt-get install subversion hit enter and wait for it to install,

Then type cd and hit enter, then type svn checkout You must login or register to view this content. xbmc and hit enter, and wait for the files to finish downloading,

then type

sudo apt-get install quilt python-support ccache cmake autotools-dev autoconf automake unzip libboost-dev libgl1-mesa-dev libgl-dev libglu-dev libglew-dev libmad0-dev libjpeg-dev libsamplerate-dev libogg-dev libvorbis-dev libvorbisenc2 libfreetype6-dev libfontconfig-dev libbz2-dev libfribidi-dev libsqlite3-dev libmysqlclient-dev libasound-dev libpng-dev libpcre3-dev liblzo2-dev libcdio-dev libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libenca-dev libjasper-dev libxt-dev libxtst-dev libxmu-dev libxinerama-dev libcurl3 libcurl4-openssl-dev libcurl-dev libdbus-1-dev libhal-storage-dev libhal-dev libpulse-dev libavahi-common-dev libavahi-client-dev libxrandr-dev libavcodec-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev liba52-dev libdts-dev libfaad-dev libmp4ff-dev libmpeg2-4-dev libass-dev libflac-dev libwavpack-dev python-dev gawk gperf nasm libcwiid1-dev libbluetooth-dev zlib1g-dev libmms-dev libsmbclient-dev libtiff4-dev libiso9660-dev libssl-dev, libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs

(yes that ^ is all one cmd)

and hit enter, and wait for the required packages to install. (if you get any missing packages from the repo just remove them from the command there may be two packages that arent available or so I found when I compiled)

Then type cd xbmc hit enter then type ./bootstrap and hit enter, and wait for it to finish.

Then type ./configure and hit enter and wait for it to finish, (it will take a few minutes)

then press ctrl + alt + f1 at the same time, type in your login name hit enter, then your password to login. then type sudo /etc/init.d/gdm stop then hit enter and wait till you get the $ back again, then type cd xbmc and hit enter. (thanks to MohammadAG for this tip)

Now type make -j2 and hit enter then wait (this will take a while ((upto 3+ hours to be exact)))

once finished type /etc/init.d/gdm start and hit enter and you should be taken back to the desktop screen.

Open up a terminal window, and type xbmc and hit enter.Wait for the black screen to appear and for xbmc to crash and check the location that xbmc says its looking for xbmx-xrandr in and open up your home folder/xbmc find and copy both xbmc-xrandr and xbmc-xrandr.c to the location you just got from running xbmc in terminal.(This was added after the initial post as I forgot to include it, I'll check the location that xbmc-xrandr needs to be placed in when I get a chance and update the tut again)

Then in terminal type xbmc again and hit enter.

(NOTE :- If you are using the linux-cell driver for the next step, you will get a ppu error and xbmc will crash, to switch back to the software
rasterizer just close terminal, open it again, then type xbmc and hit enter)

You should now have a working xbmc install on your ps3 (but be warned, its slow)

Watch Video Below :n:

[ame=https://www.youtube.com/watch?v=wnhcZGw7z3I]YouTube - XBMC compiled and working on a ps3[/ame]


Huge Thanks to Madshaun1984.
05-24-2010, 03:45 PM #2
Thanks im gonna try this Happy
05-24-2010, 04:36 PM #3
No Problem =]

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo