PS3RSX Binary driver support

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

deepthink
Posts: 1
Joined: Fri Dec 14, 2007 4:20 pm

Post by deepthink »

tephra wrote:Hey guys,

What exactly does this driver provide, I am trying to get MythTV to work(properly) on my PS3 and am hoping that this driver will help.

Can I get XV out of it?

I don't know enough about the different layers of video in XWindows so my question probably doesn't make sense :)

Cheers
Dave
Hello, I'm also trying to get mythfrontend working. These are my results.

Mythfrontend can't make use of Xv but mplayer can. I thought that it was an unsupported color conversion from the TV to the screen. That does not seem to be the case since mplayer can use Xv when playing the .mpgs created by mythtv.

Can this be made to work without needing to patch mythtv or the driver?

Mythtv output when playing live tv

Code: Select all

[mpegts @ 0xf3417b8]Parser not found for Codec Id: 94211 !
2007-12-13 18:54:49.972 VideoOutputXv: XvMCTex: Init failed
2007-12-13 18:54:49.972 VideoOutputXv: XVideo Adaptor Name: 'PS3 Video Blitter'
2007-12-13 18:54:49.973 VideoOutputXv Error: Couldn't find the proper XVideo image format.
2007-12-13 18:54:49.973 VideoOutputXv Error: Failed to create XVideo Buffers.
X Error: XvBadPort 150
  Major opcode:  140
  Minor opcode:  4
  Resource id:  0xffffffff
2007-12-13 18:54:49.974 VideoOutputXv: Falling back to X shared memory video output.
                              *** May be slow ***
2007-12-13 18:54:51.300 AFD: Opened codec 0xf6305220, id(MPEG2VIDEO) type(Video)
2007-12-13 18:54:51.520 AFD: Opened codec 0xf630fee0, id(MP3) type(Audio)
2007-12-13 18:54:51.723 Opening ALSA audio device 'default'.
2007-12-13 18:54:52.505 Mixer unable to find control Master
2007-12-13 18:54:52.505 Mixer unable to find control Master
2007-12-13 18:54:52.510 NVP: Enabling Audio
2007-12-13 18:54:52.757 msg: On same multiplex...
2007-12-13 18:54:53.297 AFD: Opened codec 0xf11004d0, id(MP3) type(Audio)
2007-12-13 18:54:53.298 AFD: Opened codec 0xf6382c20, id(MPEG2VIDEO) type(Video)
2007-12-13 18:54:53.505 NVP: Prebuffer wait timed out 10 times.
2007-12-13 18:54:53.530 Opening ALSA audio device 'default'.
2007-12-13 18:54:53.628 Mixer unable to find control Master
2007-12-13 18:54:53.628 Mixer unable to find control Master
2007-12-13 18:54:54.786 VideoOutputXv Error:
***
* Your system is not capable of displaying the
* full framerate at 1124x644 resolution.  Frames
* will be skipped in order to keep the audio and
* video in sync.

[mpeg2video @ 0xf1fcfe8]00 motion_type at 33 6
[mpeg2video @ 0xf1fcfe8]Warning MVs not available
[mpeg2video @ 0xf1fcfe8]Warning MVs not available
[mpeg2video @ 0xf1fcfe8]00 motion_type at 17 30
[mpeg2video @ 0xf1fcfe8]Warning MVs not available
2007-12-13 18:56:03.629 WriteAudio: buffer underrun
[mpegts @ 0xf3417b8]Parser not found for Codec Id: 94211 !
2007-12-13 18:56:03.853 AFD: Opened codec 0xf0706560, id(MP3) type(Audio)
2007-12-13 18:56:04.662 AFD: Opened codec 0xf0706b60, id(MPEG2VIDEO) type(Video)
2007-12-13 18:56:18.276 TV: Attempting to change from WatchingLiveTV to None
2007-12-13 18:56:18.930 TV: Changing from WatchingLiveTV to None
Mplayer output when playing a tv recording

Code: Select all

TS file format detected.
VIDEO MPEG2(pid=819) AUDIO MPA(pid=818) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
gnome_screensaver_control()==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16be, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16be (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: using unscaled yuv420p -> uyvy422 special converter
VO: [xv] 720x576 => 768x576 Packed UYVY
gnome_screensaver_control()00 ct: -0.618 1817/1817  9%  5%  3.3% 0 0
Exiting... (Quit)
androvsky
Posts: 33
Joined: Sun Nov 11, 2007 5:59 am

Post by androvsky »

Pardon my quick, unresearched answer, but isn't there an option to make mythtv use mplayer for all video playback instead of the built-in player?
tephra
Posts: 2
Joined: Fri Dec 14, 2007 1:11 pm

Post by tephra »

there is - but its kinda gumby, ie you loose remote control etc etc..

maybe there should be a separate thread for ps3/mythtv since there seems to be enough of us interested in getting it going...

back on topic - will the patches here every be merged into the kernel mainline? or at least geoffs tree?
Audball
Posts: 4
Joined: Mon Dec 10, 2007 7:27 am

d-range instructionns worked for me

Post by Audball »

d-range,
Thanks for the excellent instructions. They worked for me without a hitch. I'd been looking for how to install the kernel source for a few days without success until you posted your instructions. The only thing I changed from your instructions is that I placed ps3rsx.ko in /etc/modules.autoload.d/kernel-2.6 instead of running insmod in the startup. Working on getting mythfrontend running now.
P.S. sorry for the late post, but I've been insane busy at work this week.
Rotzi
Posts: 3
Joined: Thu Dec 13, 2007 5:07 am

Post by Rotzi »

hey guys

just one short question:

what things i have to change in my xorg.conf ??

cause i installed the deb-package for the 2.6.22.14-kernel, but there isn´t more speed .... screensavers for example still doesn´t work pretty much .... like before

so, it would be nice, if you could be more detailed ;)

thanx - anyway, if it works- GREAT JOB !!! :D
Silniczek
Posts: 5
Joined: Mon Dec 10, 2007 9:36 pm

Post by Silniczek »

GOOD JOB!!! :)
Cheers
Andrew
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

Rotzi wrote:hey guys

just one short question:

what things i have to change in my xorg.conf ??

cause i installed the deb-package for the 2.6.22.14-kernel, but there isn´t more speed .... screensavers for example still doesn´t work pretty much .... like before

so, it would be nice, if you could be more detailed ;)

thanx - anyway, if it works- GREAT JOB !!! :D
Hi,

From a previous Glaurung post :
"To use the accelerated driver, you have to change xorg.conf from:
Code:

Driver "fbdev"


to
Code:

Driver "ps3"


Also, adding the following section is recommended (enable Composite):

Code:

Section "Extensions"
Option "Composite" "Enable"
EndSection
"
Regards
Silniczek
Posts: 5
Joined: Mon Dec 10, 2007 9:36 pm

Post by Silniczek »

d-range wrote:

Code: Select all

# cd ps3rsx
# cp ps3rsx.ko /lib/modules/2.6.23/kernel/drivers/ps3/
# depmod -a
# echo "modprobe ps3rsx >> /etc/conf.d/local.start"
there is and error here, it should be like this:

Code: Select all

# cd ps3rsx
# cp ps3rsx.ko /lib/modules/2.6.23/kernel/drivers/ps3/
# depmod -a
# echo "modprobe ps3rsx" >> /etc/conf.d/local.start
Regards
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

i have installed ubuntu with the 23-rc7 kernel and followed the guide with
ps3rsx.so and ps3drv.so but i used the first files not the 23-rc7(i think for gentoo!?)!!!
And now i start the ps3 and hit enter at kboot, it starts with the boot
and then there is no picture on the screen only black!!!
I think because i used the wrong driver!?

What can i do to get it showing again(without reinstalling the whole system)?

And what should i do the next time with the rsx?
I hope you can help me!
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

therealwakka wrote:i have installed ubuntu with the 23-rc7 kernel and followed the guide with
ps3rsx.so and ps3drv.so but i used the first files not the 23-rc7(i think for gentoo!?)!!!
And now i start the ps3 and hit enter at kboot, it starts with the boot
and then there is no picture on the screen only black!!!
I think because i used the wrong driver!?

What can i do to get it showing again(without reinstalling the whole system)?

And what should i do the next time with the rsx?
I hope you can help me!
You just have to start in "single user" mode :

On kboot prompt:

linux 1
or
linux init=/bin/sh

Regards
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

Thanks!!!!!
It worked, now i have access to the shell.

Now i changed "ps3" back to "fbdev" but its the same black screen!
Must i revert the "modprobe" thing? When yes, then how?
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Post by d-range »

Silniczek wrote:there is and error here, it should be like this:

Code: Select all

# cd ps3rsx
# cp ps3rsx.ko /lib/modules/2.6.23/kernel/drivers/ps3/
# depmod -a
# echo "modprobe ps3rsx" >> /etc/conf.d/local.start
Regards
Tnx, fixed it.
Silniczek
Posts: 5
Joined: Mon Dec 10, 2007 9:36 pm

Post by Silniczek »

therealwakka wrote:i have installed ubuntu with the 23-rc7 kernel and followed the guide with
ps3rsx.so and ps3drv.so but i used the first files not the 23-rc7(i think for gentoo!?)!!!
And now i start the ps3 and hit enter at kboot, it starts with the boot
and then there is no picture on the screen only black!!!
I think because i used the wrong driver!?

What can i do to get it showing again(without reinstalling the whole system)?

And what should i do the next time with the rsx?
I hope you can help me!
type this

Code: Select all

echo "modprobe ps3rsx" >> /etc/conf.d/local.start
and reboot your system, should fix it.
also change back driver back to ps3
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

Thanks Guys!!

OK one problem is solved but which driver should i use for ubuntu 23-rc7.
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

therealwakka wrote:Thanks Guys!!

OK one problem is solved but which driver should i use for ubuntu 23-rc7.
I may have messed something up with the 2.6.23-rc7 (wrong path for the module). Il will check this out this evening and post a new package.

Regards

--

I have uploaded a new version :
http://www.choeursdaromes.com/ps3rsx-1. ... .23rc7.deb

I forgot to change the module's path in the previous version... sorry!
Last edited by Akta77 on Tue Dec 18, 2007 6:02 am, edited 1 time in total.
dakota34
Posts: 1
Joined: Tue Dec 18, 2007 4:54 am

mythfrontend with accelerated driver - comments?

Post by dakota34 »

Can anyone who has tried mythfrontend with the accelerated driver comment on myth's performance with the new driver???

I'm trying to justify a PS3 X-mas present, and any ammunition helps ....
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

Akta77 wrote:
therealwakka wrote:Thanks Guys!!

OK one problem is solved but which driver should i use for ubuntu 23-rc7.
I may have messed something up with the 2.6.23-rc7 (wrong path for the module). Il will check this out this evening and post a new package.

Regards

--

I have uploaded a new version :
http://www.choeursdaromes.com/ps3rsx-1. ... .23rc7.deb

I forgot to change the module's path in the previous version... sorry!

This driver seems to work i must install it with "ignore-depends" because it required "linux-image-cell".
p.s. schould i change the fbdev to ps3 in the xorg config?
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

therealwakka wrote:
Akta77 wrote:
therealwakka wrote:Thanks Guys!!

OK one problem is solved but which driver should i use for ubuntu 23-rc7.
I may have messed something up with the 2.6.23-rc7 (wrong path for the module). Il will check this out this evening and post a new package.

Regards

--

I have uploaded a new version :
http://www.choeursdaromes.com/ps3rsx-1. ... .23rc7.deb

I forgot to change the module's path in the previous version... sorry!

This driver seems to work i must install it with "ignore-depends" because it required "linux-image-cell".
p.s. schould i change the fbdev to ps3 in the xorg config?
As we say in France "Jamais 2 sans 3 :)" I had'nt my PS3 to test the n°2 release, just quickly corrected the wrong path. There was an error with revision too (2.6.23rc7 is not "stock Ubuntu").

This one is the GOOD one :) Fully tested :p

http://www.choeursdaromes.com/ps3rsx-1. ... .23rc7.deb

Yes, you still have to modify your xorg.conf, but i am writing a very tiny little shell script to do it automatically. I am also setting up an ubuntu repo.
Think i will build an up2date geoff kernel too with the driver included.

Regards
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Re: mythfrontend with accelerated driver - comments?

Post by Akta77 »

dakota34 wrote:Can anyone who has tried mythfrontend with the accelerated driver comment on myth's performance with the new driver???

I'm trying to justify a PS3 X-mas present, and any ammunition helps ....
We should build a GeeXbox PS3 optimised system if the researched goal is an accelerated Media Player :)

As GeeXbox is built on top of Slack (in my far far remembers), i think i will start to work on this as soon as possible.
Last edited by Akta77 on Tue Dec 18, 2007 7:19 am, edited 1 time in total.
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

Thanks for the quick reply Akta77.
I'll test it now!!!
taynaron
Posts: 3
Joined: Tue Dec 18, 2007 2:36 pm

Post by taynaron »

Thanks for all the hard work, everyone.
A (hopefully) small question:

I just installed Ubuntu 7.10 as described at psubuntu.com. I then did the automatic update thing, restarted, and installed the ps3rsx-1.0-1.deb package. I lastly updated the xorg.conf file as mentioned earlier in this thread. Upon restarting, however, instead of getting the ubuntu graphic login screen I get the following error:

usplash: no usable theme found for 576x384
screen init failed

and an opportunity to login via command line.
I'm connected to an old SD tv (as you probably guessed from the screen size)

I've also tried running

Code: Select all

echo "modprobe ps3rsx" >> /etc/rc.local
(since Ubuntu has no conf.d folder) and restarting, with no luck.
Any help would be appreciated.
billb
Posts: 32
Joined: Wed Dec 12, 2007 5:52 am

PS3 FW 2.1

Post by billb »

I had the ps3rsx module working on Fedora 7, but after updating my PS3 firmware from 2.01 to 2.1, dmesg says:

Code: Select all

ps3rsx: PS3 RSX access module, 1.0.0
ps3rsx: reserved XDR memory is @c000000000a00000, len 18874368
ps3rsx: lv1_gpu_memory_allocate failed: -17
Unable to handle kernel paging request for data at address 0x00000000
Faulting instruction address: 0xc00000000020662c
Oops: Kernel access of bad area, sig: 11 [#1]
SMP NR_CPUS=128 NUMA PS3
Modules linked in: ps3rsx(U) autofs4 cifs nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ipt_REJECT iptable_filter ip_tables xt_tcpudp ip6t_REJECT ip6table_filter ip6_tables x_tables spufs dm_multipath ipv6 snd_ps3 snd_seq_dummy sr_mod cdrom snd_usb_audio snd_usb_lib snd_rawmidi snd_hwdep snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device ps3_gelic hci_usb snd_pcm_oss snd_mixer_oss bluetooth ps3rom snd_pcm ps3flash snd_page_alloc snd_timer snd soundcore joydev sg dm_snapshot dm_zero dm_mirror dm_mod ps3disk ps3stor_lib usb_storage sd_mod scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd
NIP: c00000000020662c LR: d00000000034b1d0 CTR: c000000000206604
REGS: c00000000485b850 TRAP: 0300   Not tainted  (2.6.23.8-34.fc7)
MSR&#58; 8000000000008032 <EE,IR,DR>  CR&#58; 22002422  XER&#58; 00000000
DAR&#58; 0000000000000000, DSISR&#58; 0000000040000000
TASK = c0000000050531c0&#91;2082&#93; 'modprobe' THREAD&#58; c000000004858000 CPU&#58; 1
GPR00&#58; d00000000034b1d0 c00000000485bad0 c000000000738390 0000000000000000 
GPR04&#58; 0000000000000001 0000000000000001 0000000000000000 c000000000642030 
GPR08&#58; 0000000000000000 c00000000076d280 c00000000078eea0 c000000000206604 
GPR12&#58; d00000000034bdc8 c00000000065aa80 0000000000000000 d0000000004e5528 
GPR16&#58; 0000000000000008 0000000000000000 0000000000000000 000000000000006b 
GPR20&#58; d0000000004e489f d00000000034c768 0000000000000000 d0000000004c5000 
GPR24&#58; 000000000000002e d0000000004e4a28 d00000000034d880 000000000000002f 
GPR28&#58; 4000000000000000 c000000007bc2800 c0000000006ef570 0000000000000000 
NIP &#91;c00000000020662c&#93; .unregister_framebuffer+0x28/0x108
LR &#91;d00000000034b1d0&#93; .cleanup_ps3rsx+0x88/0xc0 &#91;ps3rsx&#93;
Call Trace&#58;
&#91;c00000000485bad0&#93; &#91;0000000000000001&#93; 0x1 &#40;unreliable&#41;
&#91;c00000000485bb70&#93; &#91;d00000000034b1d0&#93; .cleanup_ps3rsx+0x88/0xc0 &#91;ps3rsx&#93;
&#91;c00000000485bbf0&#93; &#91;d00000000034bce0&#93; ._ps3rsx_init+0x294/0x85c &#91;ps3rsx&#93;
&#91;c00000000485bc90&#93; &#91;c0000000000ada24&#93; .sys_init_module+0x1524/0x16e0
&#91;c00000000485be30&#93; &#91;c000000000008548&#93; syscall_exit+0x0/0x40
Instruction dump&#58;
7c0803a6 4e800020 7c0802a6 fbc1fff0 fbe1fff8 fb81ffe0 fba1ffe8 ebc2faf0 
f8010010 f821ff61 7c7f1b78 e93e8018 <eba30002> 38810070 3860000e 7ba01f24 
ps3fb&#58; mmap framebuffer P&#40;a10000&#41;->V&#40;f6dc1000&#41;
But also, I had to change my bootloader. The one I was using was from here, but I have had to change to the petitboot version from within this rar archive here.

I normally switch between YDL 5.0.1 on my internal drive and Fedora 7 on an 8 GB USB flash drive by changing bootloaders ... The one from the YDL 5.0.1 CD still works fine, but the one I have been using for Fedora 7 / 8 doesn't do anything at all.

The graphical petitboot version (here) works fine, though.

Anyone else having similar problems with FW 2.1?

EDITED: Included more output from dmesg re: ps3rsx
Last edited by billb on Wed Dec 19, 2007 12:56 am, edited 1 time in total.
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

From your log it looks like Sony fixed lv1 gpu memory allocate with size 0.

It means for example that old linux kernels are also incompatible with FW 2.1.

Not sure, it is hard to say something from these lines.

Peter.
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

taynaron wrote:Thanks for all the hard work, everyone.
A (hopefully) small question:

I just installed Ubuntu 7.10 as described at psubuntu.com. I then did the automatic update thing, restarted, and installed the ps3rsx-1.0-1.deb package. I lastly updated the xorg.conf file as mentioned earlier in this thread. Upon restarting, however, instead of getting the ubuntu graphic login screen I get the following error:

usplash: no usable theme found for 576x384
screen init failed

and an opportunity to login via command line.
I'm connected to an old SD tv (as you probably guessed from the screen size)

I've also tried running

Code: Select all

echo "modprobe ps3rsx" >> /etc/rc.local
(since Ubuntu has no conf.d folder) and restarting, with no luck.
Any help would be appreciated.
You do not need to do the "echo "modprobe ps3rsx" >> /etc/rc.local" as the script is already adding a line to /etc/modules...

What are saying the logs?
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Re: PS3 FW 2.1

Post by d-range »

billb wrote:I had the ps3rsx module working on Fedora 7, but after updating my PS3 firmware from 2.01 to 2.1, dmesg says:

[snip]

I normally switch between YDL 5.0.1 on my internal drive and Fedora 7 on an 8 GB USB flash drive by changing bootloaders ... The one from the YDL 5.0.1 CD still works fine, but the one I have been using for Fedora 7 / 8 doesn't do anything at all.
I assume that the YDL system on the flash drive does not have ps3rsx installed on it?
therealwakka
Posts: 10
Joined: Sun Dec 16, 2007 2:21 am

Post by therealwakka »

Yes, you still have to modify your xorg.conf, but i am writing a very tiny little shell script to do it automatically. I am also setting up an ubuntu repo.
i changed the "fbdev" to "ps3" in Devices in /etc/X11/xorg.conf
but when i restart it shows me the following error:

Code: Select all

failed to load module "ps3" &#40;module requirement mismatch,0&#41;
no drivers available
Why? And what should i do?
billb
Posts: 32
Joined: Wed Dec 12, 2007 5:52 am

Re: PS3 FW 2.1

Post by billb »

d-range wrote:I assume that the YDL system on the flash drive does not have ps3rsx installed on it?
Actually it's F7 I have on the flash drive and YDL I have on the internal drive, but that is correct -- the YDL system doesn't have ps3rsx installed on it.

The custom YDL 5.0.1 kernel as described (and was previously working) in this post no longer boots. It appears to hang up shortly after kboot. Sorry but I don't have any log / errors to show for it.
taynaron
Posts: 3
Joined: Tue Dec 18, 2007 2:36 pm

Post by taynaron »

dmesg gives, among a bunch of seemingly unrelated stuff:

Code: Select all

&#91;   47.693674&#93; PS3 sound started. start_delay=2000ms
&#91;   47.693681&#93;  <- ps3_system_bus_probe&#58;376&#58; ioc0_02
&#91;   47.693713&#93;  <- ps3_system_bus_driver_register&#58;767&#58; snd_ps3
&#91;   48.897242&#93; loop&#58; module loaded
&#91;   49.178199&#93; ps3rsx&#58; no version for "struct_module" found&#58; kernel tainted.
&#91;   49.179061&#93; ps3rsx&#58; PS3 RSX access module, 1.0.0
&#91;   49.179081&#93; ps3rsx&#58; reserved XDR memory is @c000000000900000, len 18874368
&#91;   49.179104&#93; ps3rsx&#58; lv1_gpu_memory_allocate failed&#58; -17
&#91;   49.179306&#93; Unable to handle kernel paging request for data at address 0x00000000
&#91;   49.179592&#93; Faulting instruction address&#58; 0xc0000000001f4b9c
&#91;   49.179796&#93; Oops&#58; Kernel access of bad area, sig&#58; 11 &#91;#1&#93;
&#91;   49.179985&#93; SMP NR_CPUS=32 NUMA PS3
&#91;   49.180138&#93; Modules linked in&#58; ps3rsx&#40;F&#41; loop snd_ps3 snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc af_packet snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device joydev snd usb_storage ide_core ps3flash hci_usb bluetooth xpad libusual sg soundcore usbhid hid sr_mod cdrom ps3_gelic evdev ext3 jbd mbcache ehci_hcd ohci_hcd usbcore ps3rom scsi_mod ps3disk ps3stor_lib windfarm_smu_sat windfarm_pid windfarm_max6690_sensor windfarm_lm75_sensor windfarm_cpufreq_clamp windfarm_core fuse apparmor commoncap
&#91;   49.182426&#93; NIP&#58; c0000000001f4b9c LR&#58; d0000000002381c8 CTR&#58; c0000000001f4b70
&#91;   49.188245&#93; REGS&#58; c0006c00c62e3820 TRAP&#58; 0300   Tainted&#58; GF       &#40;2.6.22-14-cell&#41;
&#91;   49.193679&#93; MSR&#58; 8000000000008032 <EE,IR,DR>  CR&#58; 24024422  XER&#58; 00000000
&#91;   49.199440&#93; DAR&#58; 0000000000000000, DSISR&#58; 0000000040000000
&#91;   49.202457&#93; TASK = c00000000267a7a0&#91;3169&#93; 'modprobe' THREAD&#58; c0006c00c62e0000 CPU&#58; 0
&#91;   49.205619&#93; GPR00&#58; d0000000002381c8 c0006c00c62e3aa0 c00000000060dec8 0000000000000000 
&#91;   49.211989&#93; GPR04&#58; 0000000000000001 0000000000000001 0000000000000000 c0000000073a7530 
&#91;   49.218433&#93; GPR08&#58; c0000000009ab0e0 c0000000005722a0 0000000000009e6d c0000000001f4b70 
&#91;   49.224981&#93; GPR12&#58; d000000000238f08 c00000000055ec80 d0000000002344c8 aaaaaaaaaaaaaaab 
&#91;   49.231672&#93; GPR16&#58; d000000000234508 0000000000000000 0000000000000061 0000000000000061 
&#91;   49.238422&#93; GPR20&#58; d0000000002398d8 0000000000000000 000000000000001e d000000000233cda 
&#91;   49.245171&#93; GPR24&#58; d000000000231000 0000000000000001 4000000000000000 c0000000006b8350 
&#91;   49.251894&#93; GPR28&#58; d00000000023be58 c000000002640000 c0000000005ab548 0000000000000000 
&#91;   49.261905&#93; NIP &#91;c0000000001f4b9c&#93; .unregister_framebuffer+0x2c/0xf0
&#91;   49.265330&#93; LR &#91;d0000000002381c8&#93; .cleanup_ps3rsx+0x68/0xd0 &#91;ps3rsx&#93;
&#91;   49.268745&#93; Call Trace&#58;
&#91;   49.272087&#93; &#91;c0006c00c62e3aa0&#93; &#91;393130345d200040&#93; 0x393130345d200040 &#40;unreliable&#41;
&#91;   49.278800&#93; &#91;c0006c00c62e3b50&#93; &#91;d0000000002381c8&#93; .cleanup_ps3rsx+0x68/0xd0 &#91;ps3rsx&#93;
&#91;   49.285582&#93; &#91;c0006c00c62e3bd0&#93; &#91;d000000000238e04&#93; ._ps3rsx_init+0x264/0x878 &#91;ps3rsx&#93;
&#91;   49.292423&#93; &#91;c0006c00c62e3c80&#93; &#91;c0000000000b3f5c&#93; .sys_init_module+0x20c/0x1960
&#91;   49.299238&#93; &#91;c0006c00c62e3e30&#93; &#91;c0000000000086b4&#93; syscall_exit+0x0/0x40
Xorg.0.conf gives:

Code: Select all

&#40;II&#41; Loading extension RECORD
&#40;II&#41; LoadModule&#58; "vesa"
&#40;WW&#41; Warning, couldn't open module vesa
&#40;II&#41; UnloadModule&#58; "vesa"
&#40;EE&#41; Failed to load module "vesa" &#40;module does not exist, 0&#41;
&#40;II&#41; LoadModule&#58; "kbd"
&#40;II&#41; Loading /usr/lib/xorg/modules/input//kbd_drv.so
&#40;II&#41; Module kbd&#58; vendor="X.Org Foundation"
	compiled for 1.3.0, module version = 1.2.1
	Module class&#58; X.Org XInput Driver
	ABI class&#58; X.Org XInput driver, version 0.7
&#40;II&#41; LoadModule&#58; "mouse"
&#40;II&#41; Loading /usr/lib/xorg/modules/input//mouse_drv.so
&#40;II&#41; Module mouse&#58; vendor="X.Org Foundation"
	compiled for 1.3.0, module version = 1.2.1
	Module class&#58; X.Org XInput Driver
	ABI class&#58; X.Org XInput driver, version 0.7
&#40;EE&#41; No drivers available.

Fatal server error&#58;
no screens found

Is this what you were looking for?
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

taynaron wrote:dmesg gives, among a bunch of seemingly unrelated stuff:

Code: Select all

&#91;   47.693674&#93; PS3 sound started. start_delay=2000ms
&#91;   47.693681&#93;  <- ps3_system_bus_probe&#58;376&#58; ioc0_02
&#91;   47.693713&#93;  <- ps3_system_bus_driver_register&#58;767&#58; snd_ps3
&#91;   48.897242&#93; loop&#58; module loaded
&#91;   49.178199&#93; ps3rsx&#58; no version for "struct_module" found&#58; kernel tainted.
&#91;   49.179061&#93; ps3rsx&#58; PS3 RSX access module, 1.0.0
&#91;   49.179081&#93; ps3rsx&#58; reserved XDR memory is @c000000000900000, len 18874368
&#91;   49.179104&#93; ps3rsx&#58; lv1_gpu_memory_allocate failed&#58; -17
&#91;   49.179306&#93; Unable to handle kernel paging request for data at address 0x00000000
&#91;   49.179592&#93; Faulting instruction address&#58; 0xc0000000001f4b9c
&#91;   49.179796&#93; Oops&#58; Kernel access of bad area, sig&#58; 11 &#91;#1&#93;
&#91;   49.179985&#93; SMP NR_CPUS=32 NUMA PS3
&#91;   49.180138&#93; Modules linked in&#58; ps3rsx&#40;F&#41; loop snd_ps3 snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc af_packet snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device joydev snd usb_storage ide_core ps3flash hci_usb bluetooth xpad libusual sg soundcore usbhid hid sr_mod cdrom ps3_gelic evdev ext3 jbd mbcache ehci_hcd ohci_hcd usbcore ps3rom scsi_mod ps3disk ps3stor_lib windfarm_smu_sat windfarm_pid windfarm_max6690_sensor windfarm_lm75_sensor windfarm_cpufreq_clamp windfarm_core fuse apparmor commoncap
&#91;   49.182426&#93; NIP&#58; c0000000001f4b9c LR&#58; d0000000002381c8 CTR&#58; c0000000001f4b70
&#91;   49.188245&#93; REGS&#58; c0006c00c62e3820 TRAP&#58; 0300   Tainted&#58; GF       &#40;2.6.22-14-cell&#41;
&#91;   49.193679&#93; MSR&#58; 8000000000008032 <EE,IR,DR>  CR&#58; 24024422  XER&#58; 00000000
&#91;   49.199440&#93; DAR&#58; 0000000000000000, DSISR&#58; 0000000040000000
&#91;   49.202457&#93; TASK = c00000000267a7a0&#91;3169&#93; 'modprobe' THREAD&#58; c0006c00c62e0000 CPU&#58; 0
&#91;   49.205619&#93; GPR00&#58; d0000000002381c8 c0006c00c62e3aa0 c00000000060dec8 0000000000000000 
&#91;   49.211989&#93; GPR04&#58; 0000000000000001 0000000000000001 0000000000000000 c0000000073a7530 
&#91;   49.218433&#93; GPR08&#58; c0000000009ab0e0 c0000000005722a0 0000000000009e6d c0000000001f4b70 
&#91;   49.224981&#93; GPR12&#58; d000000000238f08 c00000000055ec80 d0000000002344c8 aaaaaaaaaaaaaaab 
&#91;   49.231672&#93; GPR16&#58; d000000000234508 0000000000000000 0000000000000061 0000000000000061 
&#91;   49.238422&#93; GPR20&#58; d0000000002398d8 0000000000000000 000000000000001e d000000000233cda 
&#91;   49.245171&#93; GPR24&#58; d000000000231000 0000000000000001 4000000000000000 c0000000006b8350 
&#91;   49.251894&#93; GPR28&#58; d00000000023be58 c000000002640000 c0000000005ab548 0000000000000000 
&#91;   49.261905&#93; NIP &#91;c0000000001f4b9c&#93; .unregister_framebuffer+0x2c/0xf0
&#91;   49.265330&#93; LR &#91;d0000000002381c8&#93; .cleanup_ps3rsx+0x68/0xd0 &#91;ps3rsx&#93;
&#91;   49.268745&#93; Call Trace&#58;
&#91;   49.272087&#93; &#91;c0006c00c62e3aa0&#93; &#91;393130345d200040&#93; 0x393130345d200040 &#40;unreliable&#41;
&#91;   49.278800&#93; &#91;c0006c00c62e3b50&#93; &#91;d0000000002381c8&#93; .cleanup_ps3rsx+0x68/0xd0 &#91;ps3rsx&#93;
&#91;   49.285582&#93; &#91;c0006c00c62e3bd0&#93; &#91;d000000000238e04&#93; ._ps3rsx_init+0x264/0x878 &#91;ps3rsx&#93;
&#91;   49.292423&#93; &#91;c0006c00c62e3c80&#93; &#91;c0000000000b3f5c&#93; .sys_init_module+0x20c/0x1960
&#91;   49.299238&#93; &#91;c0006c00c62e3e30&#93; &#91;c0000000000086b4&#93; syscall_exit+0x0/0x40
Xorg.0.conf gives:

Code: Select all

&#40;II&#41; Loading extension RECORD
&#40;II&#41; LoadModule&#58; "vesa"
&#40;WW&#41; Warning, couldn't open module vesa
&#40;II&#41; UnloadModule&#58; "vesa"
&#40;EE&#41; Failed to load module "vesa" &#40;module does not exist, 0&#41;
&#40;II&#41; LoadModule&#58; "kbd"
&#40;II&#41; Loading /usr/lib/xorg/modules/input//kbd_drv.so
&#40;II&#41; Module kbd&#58; vendor="X.Org Foundation"
	compiled for 1.3.0, module version = 1.2.1
	Module class&#58; X.Org XInput Driver
	ABI class&#58; X.Org XInput driver, version 0.7
&#40;II&#41; LoadModule&#58; "mouse"
&#40;II&#41; Loading /usr/lib/xorg/modules/input//mouse_drv.so
&#40;II&#41; Module mouse&#58; vendor="X.Org Foundation"
	compiled for 1.3.0, module version = 1.2.1
	Module class&#58; X.Org XInput Driver
	ABI class&#58; X.Org XInput driver, version 0.7
&#40;EE&#41; No drivers available.

Fatal server error&#58;
no screens found

Is this what you were looking for?
It seems you have updated to 2.10 firmware. The ps3rsx kernel modules fails to init.

You have to switch back to the std fb driver (dpkg -r ps3rsx) and revert your changes in xorg.conf, or you can help IronPeter & Glaurung :)

Regards
anthraxx
Posts: 27
Joined: Sun Nov 11, 2007 12:14 am

Post by anthraxx »

some suggestions for d-ranges tutorial:

3) emerge dtc:
a typo:
< echo "=sys-apps/dtc-1.0.0 ~ppc" >> /etc/portage.package.keywords
> echo "=sys-apps/dtc-1.0.0 ~ppc" >> /etc/portage/package.keywords
and i had to "emerge --sync" first.

6) build the kernel using genkernel.
i had to do a
touch /usr/include/asm/page.h
else, some libbb could not be compiled. genkernel exits with error, and the new kernel is not installed properly.

kboot
and i have the standard kboot from gentoo, and used this line in kboot.conf:
gentoo2='sda1:/boot/kernel-genkernel-ppc64-2.6.23 initrd=sda1:/boot/initramfs-genkernel-ppc64-2.6.23 root=/dev/ram0 real_root=/dev/ps3da1 init=/linuxrc video=ps3fb:mode:131 rhgb'
note: my kboot uses old sda1 notation, the new kernel the "ps3da1" one

and:
1) emerge git with http support:
< # USE="curl" emerge git
> # USE="curl" emerge dev-util/git
because there's another "git" in app-misc/

conclusion

I used mplayer and freevo, all movie files i tried played fine. cool :-)


i forgot: freevo and X crashed when i switched from X to console and back again. so dont do that :)
Post Reply