THIS FORUM IS NOW CLOSED FOR ALL NEW POSTING. PLEASE GO TO THE NEW PSUBUNTU FORUMS TO POST NEW TOPICS.
This forum will still be available and searchable, but no posting is allowed. We encourage all users to sign up for an account on the new forums.
You can help us maintain valuable information from this forum by copying it over to the new forums or adding it to the PSUbuntu Wiki.
| View previous topic :: View next topic |
| Author |
Message |
Protheus
Joined: 12 Sep 2007 Posts: 142 Location: Germany
|
Posted: Sun Sep 16, 2007 6:27 pm Post subject: HOWTO: Install actual kernel with WIFI+UDF2.50+SIXAXIS |
|
|
Hi all,
PLEASE DON'T ASK ANY QUESTIONS IN THIS THREAD. PLEASE ASK YOUR QUESTIONS HERE: http://psubuntu.com/forum/viewtopic.php?t=905
as we dug out all the stuff from the net we got everything up and running for the PS3 with the actual kernel.
This means, we have the following parts in place:
kernel 2.6.23 (rc6 at the moment)
WIFI support
Bluetooth support for SIXAXIS controller
Blueray support for BD movies with UDF 2.50
Rick (aka mrvh) and me compiled this Howto, to enable you to achieve the same. We start using a scratch installation of Ubuntu 7.04 and go from there the direct way. If you already have a Ubuntu 7.04 in place you can do the appropriate steps after this, but make sure you don't have changed your installation to much.
This howto was derived from many sources including
Howto make debian standard debs from scratch
http://ubuntuforums.org/showthread.php?t=51003
HOWTO: Kernel Compilation for Newbies
http://ubuntuforums.org/showthread.php?t=56835
PS3 Linux Distributor's Starter Kit
http://www.kernel.org/pub/linux/kernel/people/geoff/cell/
We strongly recommend to read all those pages as they have plenty of informations in it, which are in general useful for further steps in this document.
Part 1 - Install feisty
Okay get this Install-Image (and only this) from Ubuntu servers.
http://cdimage.ubuntu.com/ports/releases/feisty/release/ubuntu-7.04-alternate-powerpc+ps3.iso
Instructions are here:
http://psubuntu.com/installation-instructions
Part 2 - Upgrade to gutys
1) Create a backup of the kernel image and configure in kboot.conf.
| Code: | | cp /boot/initrd.img /boot/initrd.img-feisty |
| Code: | | cp /boot/vmlinux /boot/vmlinux-feisty |
Now edit /etc/kboot.conf and copy the line that looks like this one.
| Code: | | linux='/boot/vmlinux initrd=/boot/initrd.img root=/dev/sda1 quiet splash' |
Change the first word from 'linux' to 'feisty' and add '-feisty' to /boot/vmlinux and /boot/initrd.img. Add the line to end of the file. The line should look something like this.
| Code: | | feisty='/boot/vmlinux-feisty initrd=/boot/initrd.img-feisty root=UUID=/dev/sda1 quiet splash' |
When you see "reboot-to-feisty" in this howto, you should reboot and then type in feisty at the kboot: prompt. This is also the backup plan if something goes wrong.
2) Edit the sources.list file
Add these lines to the end of /etc/apt/sources.list
3) Run apt-get to upgrade to gutys
| Code: | | apt-get dist-upgrade |
The installation of libpam0g will prompt you with a configuration question. Just hit enter a couple of times. When complete reboot-to-feisty.
In the next part we upgrade the kernel to 6.2.23. So hold on.
Rick and Chris _________________ If you want to contact me over ICQ - please leave me a message with regards to ubuntu on ps3 or something. Otherwise you will be droped into spam list.
Thx.
Protheus
Last edited by Protheus on Mon Sep 24, 2007 9:41 am; edited 3 times in total |
|
| Back to top |
|
 |
Protheus
Joined: 12 Sep 2007 Posts: 142 Location: Germany
|
Posted: Sun Sep 16, 2007 6:43 pm Post subject: |
|
|
Part 3 - update the kernel
There are three ways to get a new kernel.
1) Install from Cell sdk.
You can start by looking here:
http://psubuntu.com/forum/viewtopic.php?t=688
2) Download custom build deps
This torrent has the 2.6.23-rc6 kernel with the UDF patch applied. It also includes a build of the ps3_utils and wifi-radar from the Cell sdk.
ps3 ubuntu linux-kernel-2.6.23-rc6+tools
http://www.demonoid.com/files/details/1348148/25736160/
Or download the debs files from rapidshare or megaupload:
http://rapidshare.com/files/56414988/linux-kernel-2.6.23-rc6_tools.tar.bz2.html
http://www.megaupload.com/?d=0SW58JQ6
this is sha1sum:
51cd89eeb0615df59c506d7de6324224e776f335 linux-kernel-2.6.23-rc6+tools.tar.bz2
please check it after download
3) Install kernel from source.
These steps will build an updated version of the same kernel available in the Cell sdk.
a) Install needed packages.
Run 'apt-get install' for each of these packages. There will be many dependencies, just hit enter when prompted.
git-core
kernel-package
device-tree-compiler
build-essential
libncurses5-dev
libqt3-mt-dev
autoconf
automake
fakeroot
libc6-dev-ppc64
dh-make
| Code: | | # apt-get install git-core kernel-package device-tree-compiler build-essential libncurses5-dev libqt3-mt-dev autoconf automake fakeroot libc6-dev-ppc64 dh-make |
b) Download the kernel source.
Run these commands. The git command will take a while.
| Code: | # cd /usr/src
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git linux-2.6.23-rc6
# ln -s linux-2.6.23-rc6 linux |
If something goes wrong later on, use the next commands to reset the kernel tree to its original state and start over. There is no need to run the 'git clone' command over again.
| Code: | # cd /usr/src/linux
# git checkout -f |
c) Patch the kernel with UDF 2.50.
Download the patch to /usr/src/ from http://sourceforge.net/tracker/index.php?func=detail&aid=1795804&group_id=295&atid=300295
After downloading install the patch to the downloaded kernel. Remember to do this any time you reset the kernel with git checkout -f.
| Code: | # cd /usr/src/linux
# bzcat /usr/src/UDF_2.50-linux-2.6.23-rc6.patch.bz2 | patch -p1 |
d) Configure the kernel for ps3.
| Code: | # cd /usr/src/linux
# make ps3_defconfig |
If you want to make changes to the kernel config, run this command.
e) Modify setlocalversion
In order for the .deb build to work properly, I had to change the setlocalversion script. It keeps trying to append '-dirty' to the kernel version (the deb build fails). Run these commands.
| Code: | # cd /usr/src/linux
# echo \#\!/bin/sh > ./scripts/setlocalversion |
This is a complete hack. If you know of a better way, please enlighten me.
f) create an additional link.
Update-initramfs.sh is run during the deb install. It looks for ubuntu restricted stuff in /lib/firmware/2.6.23-rc6-powerpc64-smp-custom. Since we do not have a restricted modules build for this kernel, we have to create a link to an existing one.
| Code: | | # ln -s 2.6.22-11-powerpc64-smp lib/firmware/2.6.23-rc6-powerpc64-smp-custom |
g) build the kernel as debs.
This command will build the kernel debs. You should end up with two .deb files in /usr/src.
| Code: | | # make-kpkg --initrd --append-to-version=-powerpc64-smp-custom --revision=20070914 kernel_image kernel_headers |
h) install the new kernel.
| Code: | # dpkg -i /usr/src/linux-headers-2.6.23-rc6-powerpc64-smp-custom_20070914_powerpc.deb
# dpkg -i /usr/src/linux-image-2.6.23-rc6-powerpc64-smp-custom_20070914_powerpc.deb |
i) Change kboot.conf
With beginning of kernel 2.6.22 the devices for the ps3 are natively supported. This means the hard drive is not longer used as a scsi device but we have a special device /dev/ps3da1. This means we have to edit kboot.conf again.
change the line
| Code: |
linux='/boot/vmlinux initrd=/boot/initrd.img root=/dev/sda1 quiet splash' |
again, so that the we juse the new boot device:
| Code: | | linux='/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1 quiet splash' |
Alternativly you can choose use the UUID of the boot device.
1. Look into /etc/fstab. Ubuntu alread mounts the partitions by UUID, so just copy the UUID from there.
find the line with your root partition (this is the one with / as mountpoint)
| Code: | # /dev/sda1
UUID=ef6ece50-37d5-4b61-9bbf-fd5330b93354 / ext3 defaults,errors=remount-ro 0 1 |
On my Ubuntu it looks like this. In other configuration you would find in the first column /dev/sda1 instead of UUID=xxxx
2. now copy the complete UUID entry - means UUID=ef6ece50-37d5-4b61-9bbf-fd5330b93354
and edit your kboot.conf again:
change this line
| Code: | | linux='/boot/vmlinux initrd=/boot/initrd.img root=/dev/sda1 quiet splash video=ps3fb:mode:5' |
so that it looks like this:
| Code: | | linux='/boot/vmlinux initrd=/boot/initrd.img root=UUID=ef6ece50-37d5-4b61-9bbf-fd5330b93354 quiet splash video=ps3fb:mode:5' |
Make sure you insert the copied UUID from Step 1. alas you will insert my UUID Which will lead to an unbootable system again.
You can now reboot to the new kernel. If something goes wrong, reboot-to-feisty. _________________ If you want to contact me over ICQ - please leave me a message with regards to ubuntu on ps3 or something. Otherwise you will be droped into spam list.
Thx.
Protheus
Last edited by Protheus on Wed Sep 19, 2007 5:21 pm; edited 6 times in total |
|
| Back to top |
|
 |
Protheus
Joined: 12 Sep 2007 Posts: 142 Location: Germany
|
Posted: Sun Sep 16, 2007 7:09 pm Post subject: |
|
|
Part 4 - additional configuration
As we did not have the new ps3pf-utils right now, we need to build them.
First remove the old ones with:
| Code: | | # apt-get remove ps3pf-utils |
Get the new .dep from http://eve.l-nibelungia.de/ps3pf-utils-2.0-powerpc.deb, and install them
| Code: | # wget http://eve.l-nibelungia.de/ps3pf-utils-2.0-powerpc.deb
# dpkg -i ps3pf-utils_2.0.deb |
The tools are needed for restart game os and such things.
Remember - now you start your game os with
which is located in /usr/local/bin
Part 5 - getting SIXAXIS over bluetooth to work
The main research is done here and we follow their guidelines.
http://www.pabr.org/sixlinux/sixlinux.en.html
a) First get the software
We need to get some additional software:
joystick
jscalibrator
bluez-utils
| Code: | | # apt-get install joystick jscalibrator bluez-utils |
b) Configure Bluetooth
Change /etc/default/bluetooth so that HIDD_ENABLED is enabled.
HIDD_ENABLED=1
c) Testing it
Now we need to stop bluetooth so that we can see whats going on.
| Code: | | # /etc/init.d/bluetooth stop |
Now start the hidd manually:
| Code: | | # hidd --server --nocheck -n |
You will see something like this:
| Code: | | hidd[10169]: Bluetooth HID daemon |
Press the PS button on controllers. You should see an output like this:
| Code: | hidd[10190]: New HID device 00:19:C1:3F:9E:AA (Sony Computer Entertainment Wireless Controller)
|
Press ctrl-c to exit hidd.
Look in /var/log/messages with tail to find something like this:
| Code: | # tail /var/log/messages
Sep 15 09:02:08 ps3 kernel: input: Sony Computer Entertainment Wireless Controller as /class/input/input1
|
At least start bluetooth again by
| Code: | # /etc/init.d/bluetooth start
|
Now test the controllers.
| Code: | | # jstest /dev/input/js0 |
If you see stuff like this ... everything is okay - up and running.
| Code: | # jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (Sony Computer Entertainment Wireless Controller) has 28 axes (X, Y, Z, Rz, (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null))
and 19 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead, BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 24: 0 25: 0 26: 0 27: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 24: 0 25: 0 26: 0 27: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 24: 0 25: 0 26: 0 27: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0 13: 0 14: 0 15: 0 16: 0 17: 0 18: 0 19: 0 20: 0 21: 0 22: 0 23: 0 24: 0 25: 0 26: 0 27: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off
Axes: 0: 0 1:-32767 2:-32767 3:-32767 4:-32767 5:-32767 6:-32767 7:-32767 8:-32767 9:-32767 10:-32767 11:-32767 12:-32767 13:-32767 14:-32767 15:-32767 16:-32767 17:-32767 18:-32767 19:-32767 20:-32767 21:-32767 22:-32767 23:-32767 24:-32767 25:-32767 26:-32767 27:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off 15:off 16:off 17:off 18:off |
Press CTRL-C to exit this tool again.
Okay thats it - your SIXAXIS is running over bluetooth now. _________________ If you want to contact me over ICQ - please leave me a message with regards to ubuntu on ps3 or something. Otherwise you will be droped into spam list.
Thx.
Protheus |
|
| Back to top |
|
 |
viartyflurava
Joined: 25 Dec 2007 Posts: 1 Location: Nepal
|
Posted: Tue Dec 25, 2007 3:52 am Post subject: Thank for the help me. |
|
|
Thank for the help me.
Now I have no problems
Regar
_________________________________________________________
alertpay investment,hyips _________________ hyip advertising,hyip |
|
| Back to top |
|
 |
natron
Joined: 09 Jan 2008 Posts: 17
|
Posted: Wed Jan 09, 2008 3:13 pm Post subject: |
|
|
An FYI for anyone who comes along and performs this:
The code in steb B, above:
| Code: | # cd /usr/src
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git linux-2.6.23-rc6
# ln -s linux-2.6.23-rc6 linux |
Assumes that geoff's kernel in git is at 2.6.23-rc6. It is currently sitting at 2.6.24-rc7. I don't know if anything breaks by not having the correct folder name for source, but you should always probably check kernel.org to find out what the current version is, then name your folder that.
The .deb's will output with the correct name regardless.
Also, the patch no longer applies cleanly. There are a couple of short lines in fs/udf/super.c that are rejected and have to be applied by hand. |
|
| Back to top |
|
 |
natron
Joined: 09 Jan 2008 Posts: 17
|
Posted: Wed Jan 09, 2008 3:47 pm Post subject: |
|
|
Also, I believe the code in f) should be changed with a current build as well.
| Quote: | f) create an additional link.
Update-initramfs.sh is run during the deb install. It looks for ubuntu restricted stuff in /lib/firmware/2.6.23-rc6-powerpc64-smp-custom. Since we do not have a restricted modules build for this kernel, we have to create a link to an existing one.
Code:
# ln -s 2.6.22-11-powerpc64-smp lib/firmware/2.6.23-rc6-powerpc64-smp-custom |
Change to:
| Code: | # cd /lib/firmware
ln -s 2.6.22-14-cell /lib/firmware/2.6.24-rc7-powerpc64-smp-custom |
EDIT: Nevermind, this still isn't working. It locks up immediately after "Booting system..." in kboot. I'll update this thread if I can get these instructions working, but if not, I'll just wait until another stable release that includes UDF 2.5. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|