Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PS3 2.6.21 Kernel ebuild / Controller via Bluetooth
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
baygins
n00b
n00b


Joined: 01 Aug 2006
Posts: 29

PostPosted: Sat May 26, 2007 8:43 pm    Post subject: Reply with quote

Crymson wrote:
The only thing I'd add to the above is to make sure and run make menuconfig first if you want to change any of the default kernel options (like joystick support) otherwise it won't be built in.

I did have some problems with the steps above.

1. Near the end of "make" I encountered an error where "coff.o" couldn't be found. It seemed to keep going, and I did end up with a vmlinux file.
I am not sure why you have the "coff.o" problem; I did not see that. But, then again, our .config files could be different.
Quote:

2. The vmlinux files were gz'd by default.
There should be 3 files generated in the build directory:
  • vmlinux: uncompressed, with debug symbols
  • vlmlinux.stripped: uncompressed, without debug symbols
  • vmlinux.stripped.gz: compressed, without debug symbols

Quote:
3. You can't cp the source, unless you use the -R switch to go recursively, otherwise it skips all the directories.
Thanks again everyone for all your work on this.
I updated the instructions above to reflect this. Thank you for pointing out this silly mistake :-)
Back to top
View user's profile Send private message
andreyua
n00b
n00b


Joined: 27 May 2007
Posts: 6

PostPosted: Sun May 27, 2007 5:12 pm    Post subject: Reply with quote

I have tried boot with this kernel configuration
http://homepage.ntlworld.com/garlicbread/Projects/PS3Linux/ps3-kernel-build-2.6.21-r1.tar.bz2
but sound is not work.
Any reason ?

mplayer -ao oss shrek.avi
MPlayer dev-SVN-rUNKNOWN-4.1.1 (C) 2000-2007 MPlayer Team
AltiVec found
CPU: PowerPC

Playing shrek.avi.
AVI file format detected.
VIDEO: [DX50] 640x352 24bpp 25.000 fps 971.0 kbps (118.5 kbyte/s)
Clip info:
Software: Nandub v0.26.1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 352 (preferred colorspace: Planar YV12)
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
[swscaler @ 0x107338ec]ALTIVEC: Color Space ARGB
[swscaler @ 0x107338ec]SwScaler: using unscaled yuv420p -> rgb32 special converter
VO: [fbdev] 640x352 => 640x352 ARGB
V: 12.1 303/303 7% 3% 0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
localhost Cartoons #

localhost Cartoons # mplayer -ao alsa shrek.avi
MPlayer dev-SVN-rUNKNOWN-4.1.1 (C) 2000-2007 MPlayer Team
AltiVec found
CPU: PowerPC

Playing shrek.avi.
AVI file format detected.
VIDEO: [DX50] 640x352 24bpp 25.000 fps 971.0 kbps (118.5 kbyte/s)
Clip info:
Software: Nandub v0.26.1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] alsa-lib: confmisc.c:848:(snd_func_card_driver) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:397:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:1248:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
[AO_ALSA] alsa-lib: conf.c:3972:(snd_config_expand) Evaluate error: No such device
[AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such device
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 352 (preferred colorspace: Planar YV12)
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
[swscaler @ 0x107338ec]ALTIVEC: Color Space ARGB
[swscaler @ 0x107338ec]SwScaler: using unscaled yuv420p -> rgb32 special converter
VO: [fbdev] 640x352 => 640x352 ARGB
V: 1.9 49/ 49 5% 4% 0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
localhost Cartoons #
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Sun May 27, 2007 5:20 pm    Post subject: Reply with quote

it sounds like your trying to play sound using oss but haven't enabled oss in the kernel config
Instead of using oss use alsa
i.e.
Code:
mplayer -ao alsa


you can change the default in /etc/mplayer.conf

Code:
# Specify default audio driver (see -ao help for a list).
#ao=oss


the early versions of the kernel (2.6.16) had a problem with alsa with sound being corrupted
but it should be okay with 2.6.21 and above
also I think that version of the kernel is a 2.6.21 one without wireless support
Back to top
View user's profile Send private message
andreyua
n00b
n00b


Joined: 27 May 2007
Posts: 6

PostPosted: Sun May 27, 2007 5:27 pm    Post subject: Reply with quote

garlicbread wrote:
it sounds like your trying to play sound using oss but haven't enabled oss in the kernel config
Instead of using oss use alsa
i.e.
Code:
mplayer -ao alsa


you can change the default in /etc/mplayer.conf

Code:
# Specify default audio driver (see -ao help for a list).
#ao=oss


the early versions of the kernel (2.6.16) had a problem with alsa with sound being corrupted
but it should be okay with 2.6.21 and above
also I think that version of the kernel is a 2.6.21 one without wireless support


Yes, i'm use also mplayer -ao alsa
But sound still not work

localhost Cartoons # mplayer -ao alsa shrek.avi
MPlayer dev-SVN-rUNKNOWN-4.1.1 (C) 2000-2007 MPlayer Team
AltiVec found
CPU: PowerPC

Playing shrek.avi.
AVI file format detected.
VIDEO: [DX50] 640x352 24bpp 25.000 fps 971.0 kbps (118.5 kbyte/s)
Clip info:
Software: Nandub v0.26.1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] alsa-lib: confmisc.c:848:(snd_func_card_driver) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:397:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:1248:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
[AO_ALSA] alsa-lib: conf.c:3972:(snd_config_expand) Evaluate error: No such device
[AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such device
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 352 (preferred colorspace: Planar YV12)
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
[swscaler @ 0x107338ec]ALTIVEC: Color Space ARGB
[swscaler @ 0x107338ec]SwScaler: using unscaled yuv420p -> rgb32 special converter
VO: [fbdev] 640x352 => 640x352 ARGB
V: 1.9 49/ 49 5% 4% 0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
localhost Cartoons # mplayer -ao sdl shrek.avi
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Mon May 28, 2007 12:04 am    Post subject: Reply with quote

if you've compiled alsa as a module
on 2.6.21 and above there should be a file
/lib/modules/<kernel version>/kernel/sound/ppc/snd_ps3.ko
make sure this exists

if you've compiled directly into the kernel then I'm not sure but
Code:
cat /proc/asound/cards

should show
Code:
 0 [PS3            ]: snd_ps3 - PS3
                      PS3 sound



another thing to check is the options passed to the alsa module
check to make sure that /etc/modules.d/alsa is configured correctly
(the sound module no longer has pf in the name btw for 2.6.21 and above)
this is mine as an example

/etc/modules.d/alsa
Code:

# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `modules-update' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

alias snd-card-0 snd-ps3
alias sound-slot-0 snd-card-0

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1


I'm using the optical output on the back so I can't vouch for any other type of output
but there should be a single control for the volume when running alsamixer
Back to top
View user's profile Send private message
Shadow Skill
Veteran
Veteran


Joined: 04 Dec 2004
Posts: 1023

PostPosted: Mon May 28, 2007 6:14 pm    Post subject: Bluetooth keyboard at kboot prompt? Reply with quote

Does anyone here know if it is possible to get a bluetooth keyboard to automatically connect using the internal bluetooth controller of the PS3 when the machine starts up so that one may type at the kboot prompt using said keyboard? I can't tell you how annoying it is to have to steal my desktop keyboard to type at the kboot prompt if I want to switch to the gameos.
_________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.

"First there was nothing, so the lord gave us light. There was still nothing, but at least you could see it."
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Mon May 28, 2007 8:11 pm    Post subject: Reply with quote

since the kboot image only contains the basics to boot it's unlikley
you'd probably have to custom graft your own kboot image with bluetooth support to get it to work
and I don't know much about grafting kboot images

in theory the kernel during normal operation should support switching to the game os
but it looks like this is another problem with the current version, so hopefully this will be fixed sometime in the future

in the mean time I've got one of those mini usb keyboards :)
http://www.maplin.co.uk/Module.aspx?ModuleNo=47313&criteria=USB%20keyboard&doy=28m5
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Tue May 29, 2007 5:02 am    Post subject: Reply with quote

Ok, I more or less got the kernel upgraded.

I used the instructions above for using the latest git clone, rather than git --bare.

I then did the steps garlicbread outlined earlier - make modules && make modules_install.

I also tried to do genkernel initrd, but it failed when compiling busybox. Not sure why, but after changing the lines in /etc/kboot.conf and /etc/fstab I was able to boot in to the new kernel.

I'm now (slowly) on my way to building gnome.

I did try to emerge snes9x, and it's telling me it's masked because of a missing keyword? What keyword am I missing, does anyone know? I won't be able to do anything with it until the rest of this stuff finishes compiling, but I'd like to know ahead of time.

Also - to get the new kernel (2.6.22-rc2 is what I used) compiled, I had to use make ps3_defconfig, then manually edit the .config file to include the joystick support. Then it compiled with no issues.

Sorry for the scatterbrained post. I'll update as I get further along.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
RaZoR1394
Guru
Guru


Joined: 09 Jan 2005
Posts: 356

PostPosted: Tue May 29, 2007 10:32 am    Post subject: Reply with quote

I'm now running 2.6.22-rc1 from garlicbread's layman overlay. I used genkernel and it worked this time. I noticed one error about a kernel(?) file when booting:

Quote:

Badness at mm/slab.c:777
Call Trace:
[c0006c00c6f175c0] [c00000000000f0fc] .show_stack+0x68/0x1b0 (unreliable)
[c0006c00c6f17660] [c0000000001f7aac] .report_bug+0x94/0xe8
[c0006c00c6f176f0] [c00000000001f0b4] .program_check_exception+0x140/0x5e4
[c0006c00c6f177a0] [c000000000004a8c] program_check_common+0x10c/0x180
--- Exception: 700 at .__kmalloc+0x44/0x144
LR = .__kzalloc+0x18/0x4c
[c0006c00c6f17a90] [c00000000009f634] .__kmalloc+0x10c/0x144 (unreliable)
[c0006c00c6f17b30] [c000000000086b1c] .__kzalloc+0x18/0x4c
[c0006c00c6f17bc0] [c000000000280530] .usb_get_configuration+0x938/0xd08
[c0006c00c6f17d30] [c000000000277fd4] .usb_new_device+0x38/0x124
<- ps3_system_bus_probe:236: sb_03
ps3_system_bus_match:214: dev=9(ioc0_01), drv=2(ps3-ohci-driver): miss
<- ps3_system_bus_driver_register:623: ps3-ohci-driver
Initializing USB Mass Storage driver...
[c0006c00c6f17dc0] [c0000000002796f8] .hub_thread+0x804/0xc64
[c0006c00c6f17f00] [c000000000060c1c] .kthread+0x78/0xc4
[c0006c00c6f17f90] [c0000000000209d8] .kernel_thread+0x4c/0x68


Also sound does not work unless I do (as root):

Quote:

#update-modules
#/etc/init.d/alsasound restart


I have a similar problem on my desktop. Only difference is that I have to type:

Quote:

#update-modules force


instead of

Quote:

#update-modules


edit: It seems that alsasound was not added to rc default for some reason.
_________________
http://en.wikipedia.org/wiki/Cell_(microprocessor)
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Tue May 29, 2007 3:58 pm    Post subject: Reply with quote

I think alsa was disabled in the stage 4 by default as 2.6.16 had originally issues with alsa and you had to use oss instead originally

for snes9x the default ebuilds in the gentoo tree lack the ppc64 keyword
in the overlay I added in the ppc64 keyword and used the more up-to-date version of snes9x that was 64bit compatible (see bugzilla for the original ebuild
https://bugs.gentoo.org/show_bug.cgi?id=139347
it looks like 1.51 is out, I've not tried this one yet so I'm not sure of the differences

the initird doesn't appear to be needed at this point unless you've selected anything critical to be compiled as a module
I think with 2.6.16 it may have been the case that at least one thing to do with storage had to be a module
which was the original reason I think as to why the initrd was needed

genkernel initrd
probably isn't working since it uses loopback fs
and since they've changed across to a dynamic type setup, you'll need to create /dev/loop0 manually to get it to work (see post above)
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Tue May 29, 2007 4:58 pm    Post subject: Reply with quote

Thanks garlicbread. Once I get gnome installed, I'll get back to using the overlay to get snes9x installed.

Also, one additional change I had to do. In /etc/fstab, I had to change /dev/sda2 to /dev/ps3da2 for swap to work. I also saw /dev/ps3flash, but I'm not sure which device that maps to. Again, more as I play with it.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Tue May 29, 2007 9:42 pm    Post subject: Reply with quote

to be honest I'd hold off doing anything related to the flash (such as boot-game-os) until we have a more stable kernel
it's safer just to run it from the kboot prompt instead

I haven't got time tonight but I think it should be possible to setup an ebuild that uses the git eclass
to automate the git-clone etc via emerge
I might have a go with dtc / and the PS3 git tree when I've got time
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Wed May 30, 2007 1:57 am    Post subject: Reply with quote

I don't mean the flash for booting in to the game OS, I figured this was for the flash drives. Are /dev/sdc and /dev/sdd still valid for those (the compact flash reader, etc)? Since the hard drive was /dev/ps3da1, and swap became /dev/ps3da2 I was just thinking the rest of the devices might have changed too.

I dropped off the ~ppc64 branch, since a lot of those ebuilds are broken. I'm recompiling a bunch of stuff on just regular ppc64, and it seems to be going OK.

I can't wait to get Gnome done, so I can start playing with wireless, bluetooth, and the emus.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Wed May 30, 2007 7:00 pm    Post subject: Reply with quote

from what I've observed the flash readers (CF / SD etc) seem have stayed using the sdx devices
it's just that originally the HD was sda but now sda will be one of the flash drives instead

only the PS3 hard disk has got the new name from the looks of things
I think something like "dmesg | grep sd" may give some clues as to which sd devices relate to which flash ports
another idea maybe try using "udevinfo -a -p /sys/block/sdx" etc to identify which drive is which
Back to top
View user's profile Send private message
andreyua
n00b
n00b


Joined: 27 May 2007
Posts: 6

PostPosted: Wed May 30, 2007 9:25 pm    Post subject: Reply with quote

I have a trouble, when compile net-wireless/bluez-hcidump-1.30-r1

>>> Unpacking source...
>>> Unpacking bluez-hcidump-1.30.tar.gz to /var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work/bluez-hcidump-1.30 ...
./configure --prefix=/usr --host=powerpc64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=powerpc64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc64-unknown-linux-gnu-gcc... powerpc64-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc64-unknown-linux-gnu-gcc accepts -g... yes
checking for powerpc64-unknown-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of powerpc64-unknown-linux-gnu-gcc... gcc3
checking whether powerpc64-unknown-linux-gnu-gcc accepts -fPIE... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for powerpc64-unknown-linux-gnu-ranlib... powerpc64-unknown-linux-gnu-ranlib
checking how to run the C preprocessor... powerpc64-unknown-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for hci_open_dev in -lbluetooth... yes
checking for sdp_connect in -lbluetooth... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating parser/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work/bluez-hcidump-1.30'
Making all in parser
make[2]: Entering directory `/var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work/bluez-hcidump-1.30/parser'
if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec -D_FORTIFY_SOURCE=2 -MT parser.o -MD -MP -MF ".deps/parser.Tpo" \
-c -o parser.o `test -f 'parser.c' || echo './'`parser.c; \
then mv -f ".deps/parser.Tpo" ".deps/parser.Po"; \
else rm -f ".deps/parser.Tpo"; exit 1; \
fi
if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec -D_FORTIFY_SOURCE=2 -MT lmp.o -MD -MP -MF ".deps/lmp.Tpo" \
-c -o lmp.o `test -f 'lmp.c' || echo './'`lmp.c; \
then mv -f ".deps/lmp.Tpo" ".deps/lmp.Po"; \
else rm -f ".deps/lmp.Tpo"; exit 1; \
fi
if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec -D_FORTIFY_SOURCE=2 -MT hci.o -MD -MP -MF ".deps/hci.Tpo" \
-c -o hci.o `test -f 'hci.c' || echo './'`hci.c; \
then mv -f ".deps/hci.Tpo" ".deps/hci.Po"; \
else rm -f ".deps/hci.Tpo"; exit 1; \
fi
hci.c: In function ×Ђ˜sniff_subrate_dump×Ђ™:
hci.c:748: error: ×Ђ˜sniff_subrate_cp×Ђ™ has no member named ×Ђ˜max_remote_latency×Ђ™
hci.c:748: error: ×Ђ˜sniff_subrate_cp×Ђ™ has no member named ×Ђ˜max_local_latency×Ђ™
hci.c: In function ×Ђ˜write_link_supervision_timeout_dump×Ђ™:
hci.c:965: error: ×Ђ˜write_link_supervision_timeout_cp×Ђ™ has no member named ×Ђ˜link_sup_to×Ђ™
hci.c: In function ×Ђ˜read_link_supervision_timeout_dump×Ђ™:
hci.c:1490: error: ×Ђ˜read_link_supervision_timeout_rp×Ђ™ has no member named ×Ђ˜link_sup_to×Ђ™
hci.c: In function ×Ђ˜sniff_subrate_event_dump×Ђ™:
hci.c:2384: error: ×Ђ˜evt_sniff_subrate×Ђ™ has no member named ×Ђ˜max_remote_latency×Ђ™
hci.c:2384: error: ×Ђ˜evt_sniff_subrate×Ђ™ has no member named ×Ђ˜max_local_latency×Ђ™
hci.c: In function ×Ђ˜sco_dump×Ђ™:
hci.c:2618: warning: ignoring return value of ×Ђ˜write×Ђ™, declared with attribute warn_unused_result
make[2]: *** [hci.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work/bluez-hcidump-1.30/parser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/work/bluez-hcidump-1.30'
make: *** [all] Error 2

!!! ERROR: net-wireless/bluez-hcidump-1.30-r1 failed.
Call stack:
ebuild.sh, line 1615: Called dyn_compile
ebuild.sh, line 972: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
bluez-hcidump-1.30-r1.ebuild, line 19: Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-wireless/bluez-hcidump-1.30-r1/temp/build.log'.
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Thu May 31, 2007 6:05 pm    Post subject: Reply with quote

you don't really need hcidump to get bluetooth working, it can just be used as a test
I've noticed "powerpc64-unknown-linux-gnu-gcc" above
are you using a 32bit or 64bit system? I've said before I've only tried this on 64bit so far
Back to top
View user's profile Send private message
andreyua
n00b
n00b


Joined: 27 May 2007
Posts: 6

PostPosted: Thu May 31, 2007 6:46 pm    Post subject: Reply with quote

I'm using 64 bit system and kernel 2.6.21-ps3-r2 version

How I can test bluetoth work on sisxaxis?

And, several question.
1. What better ? Alsa in modules or Alsa compiled in kernel ?
2. When I try emerge mplayer:
Code:
localhost ~ # emerge -av mplayer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0.20070427  USE="a52 aac alsa altivec amr arts dts dvd encode esd fbcon gif iconv ipv6 joystick jpeg mad mp2 mp3 oss png quicktime sdl truetype unicode vorbis xvid (-3dnow) (-3dnowext) -X -aalib -bidi -bindist -bl -cddb -cdparanoia -cpudetection -custom-cflags -debug -dga (-directfb) -doc -dv (-dvb) -dvdnav -dvdread -enca -ftp -ggi -gtk (-ivtv) -jack -libcaca -lirc -live -livecd -lzo -md5sum (-mmx) (-mmxext) -musepack -nas -openal -opengl -pnm -radio (-rar) (-real) -rtc -samba -speex -srt (-sse) (-sse2) (-svga) -tga -theora -tivo -v4l -v4l2 -vidix (-win32codecs) -x264 -xanim -xinerama -xv -xvmc -zoran" VIDEO_CARDS="mga (-s3virge) (-tdfx) (-vesa)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]


USE flag "direÓtfb" Is in brackets. Why ? Because I'm use 64bit version system or not ?

3. And, when I start freevo then sound is out, It becomes absolutely inaudible. I resolve this trouble a command :
modprobe -rv snd_ps3 and again modprobe snd_ps3
What I can do ?

Sorry for my English
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Fri Jun 01, 2007 4:10 am    Post subject: Reply with quote

I'm having some issues compiling snes9x. I'm using the 1.50 ebuild in garlicbreads overlay, which won't compile on its own. I had to create another patch that would fix the extern problems (some things were externed "C", and duplicated in C++ so I had to fix that in global.cpp)

In any case, now my hard drive is just spinning a lot, and it's stuck on compiling the /unix/X11 files.

I also tried to compile the source for 1.51 taken from the official snes9x site, but it hung on the very FIRST file.

Is there something in my USE flags that I should have set? Since garlicbread didn't mention needing another patch for 1.50, I think something isn't right.

Any insight in to this? Thanks!
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Fri Jun 01, 2007 7:20 pm    Post subject: Reply with quote

Hey all, sorry to be such a burden - now I'm having issues with wireless.

My router is set up to use WPA-PSK/TKIP, and I was looking at the config for /etc/conf.d/net and saw the commands for WPA, but when I try to restart eth0, it says that it isn't recognized. So, I tried entering the WPA password as a WEP key, and then it says it connects, but it really doesn't.

I get the following:

Code:
Connected to <ESSID> at 00:00:00:00:00:00
which I'm sure isn't right because the router MAC should appear there. The router also doesn't see the connection.

Then I tried turning off ALL encryption, and I get the same message. It says I connect, it assigns the IP I specify, yet I can't ping anything else on my network.

I have a craptastic D-Link router too - do you think that could be the problem?

Something else I noticed is that it's saying the driver for eth0 was compiled using version 22 of Wireless, but this particular kernel only supports version 20, so "not everything may be available."

Any insight again would be helpful. Thanks in advance.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Fri Jun 01, 2007 11:05 pm    Post subject: Reply with quote

More on wireless.

I tried to use wpa_supplicant, and I think it will work, except the light for wifi never turns on. If I use iwconfig, it'll turn on, but then I'm limited to WEP, and as I said earlier, it won't go anywhere.

Has anyone gotten wpa_supplicant to work? I'm trying to use the -D wext driver, but that doesn't seem to be correct. madwifi doesn't work either.

This is so frustrating.

I'm using the 2.6.22-rc1 kernel from the git tree. Everything else is working great.

Oh, side note - you *can* use the controller when it's plugged in via USB - just press the PS button. When running jstest, I was getting data from the button pushes and whatnot.

So, any help with my snes9x issue, and the wifi would be very helpful.

Thanks again.
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 203
Location: New England

PostPosted: Sat Jun 02, 2007 6:34 am    Post subject: Reply with quote

Wireless:

wpa_supplicant does not have the driver (ps3_gelic) to work properly. So, that means you either have to be running WEP, or no security at all. WPA will not work at this time.

I ended up just unsecuring my network, because WEP acts strangely with my other computers. I wish I could have gotten WPA to work, but alas.

Here's my /etc/conf.d/net file if someone else wants to use it.

Code:
modules=( "iwconfig" )
preferred_aps=( "<YOUR_ESSID>" )
modules=( "ifconfig" )
config_eth0=( "dhcp")

_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Sat Jun 02, 2007 9:22 pm    Post subject: Reply with quote

that's an odd error regarding snes9x
I didn't actually patch the code for this one, all I did was add a small change to the ebuild
1. add the ppc64 keyword so we can unmask it
2. only make "offsets" if it's not the ppc64 arch
this bit
Code:

use ppc64 && nooffset="true"
if [[ ${nooffset} != "true" ]] ; then
    emake -j1 offsets || die "making offsets"
f

offsets is normally built by the makefile conditionally for some arch's but not others which was the problem I had with the build
for the ppc64 it shouldn't be built at all

but apart from this it;s compiled okay
1.51 seems to be compiling okay at the moment with no changes to the ebuild in bugzilla
(although it't taking friggin ages to compile)

for info this is the result of emerge info
Code:
"Portage 2.1.2.2 (default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4/970, gcc-4.1.1, glibc-2.5-r2, 2.6.22-rc1-ps3 ppc64)
=================================================================
System uname: 2.6.22-rc1-ps3 ppc64 Cell Broadband Engine, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 21 May 2007 17:20:01 +0000
distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer moo sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/bigmoma/public/overlay-master/overlays/garlicbread-ps3-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 3ds 64bit 7zip S3TC X X509 Xaw3d a52 aac aalib abook acl adns agg aiglx aim akode allegro alsa altivec amd amr aotuv apache2 apm applet aqua_theme arts artworkextra asterisk async auctex audiofile avantgo bash-completion bcmath berkdb bigpatch binary-drivers bitmap-fonts bl blender-game bluetooth bonobo bzip2 ccache cdb cdda cddb cdf cdinstall cdparanoia cdr cdrom cdsound cegui cgi chroot cjk clamav clamd cli clisp cln cpudetection cracklib crypt cscope css cups curl cvs cvsgraph dbus dedicated device-mapper dga dhcp dict dillo dnd double-precision dri dts dv dvd dvdnav dvdr dvdread dvi dynamic eap-tls eds emboss encode esd etwin evo examples exif exiscan exiscan-acl expat fame fastcgi fat fax fbcon fbdev fbsplash festival ffmpeg fftw flac flash flood fluidsynth fmod foomaticdb fortran freetds freetts ftp fuse gb gd gdbm geoip geos gif gimp gimpprint ginac glade glgd glitz glut gmp gmtfull gmthigh gmtsuppl gmttria gnokii gnome gnome-print gnomecanvas gnomedb gnuplot gpgme gphoto2 gpm gps graphviz gsl gsm gstreamer gtk gtk2 gtkhtml guile hal hbci hpn ibm iconv icq id3 idea idn ieee1394 image imagemagick imap imlib inifile innodb ipv6 irda irmc isdnlog jabber javacomm javamail javascript jbig jikes jit joystick jpeg jpeg2k jython kde kdepim kdm kerberos ladcca lame lcd lcms ldap leim libcaca libclamav libdsk libg++ libgda libsamplerate libvisual libwww lids live lmtp logitech-mouse lua lzo mad madwifi maildir mailwrapper matroska maya-shaderlibrary mbox mcve mdb mhash midi mikmod mime ming mixer mjpeg mng mopac7 motif mozcalendar mozdevelop mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mplayer msn mudflap music mysql mysqli nas ncurses netcdf nfs nls nptl nptlonly ntfs ntlm ntp oav objc odbc offensive ofx ogdi ogg ogre oldworld on-the-fly-crypt openal openbabel opengl openmp osc oscar oss overlays pam parse-clocks passfile pcre perl pg-intdatetime php physfs pic player plotutils pmount pmu png postfix postgres povray ppc64 ppds pppd preview-latex procmail proj python qhull qt3 qt4 quicktime quotes readline reflection reiser4 reiserfs rplay rrdtool ruby samba sasl scanner sdk sdl sensord session sieve slang slp smartcard smp sms sndfile snmp snortsam soap sockets socks5 sourcecaps sox spamassassin speech speedo speex spell spl sql sqlite sqlite3 ssl stroke subtitles subversion svg svgz swat sysfs t1lib tcl tcltk tcpd tetex tga theora threads threadsafe tidy tiff timidity tk tlen tntc tokenizer tools transcode transparent-proxy truetype truetype-fonts trusted type1 type1-fonts ucs2 ucs4 unicode usb uudeview v4l v4l2 vcd vdr vhosts videos vim-with-x virus-scan vorbis vorbis-psy vpopmail wddx wifi wmf wxwindows x264 xanim xchattext xemacs xface xfs xine xinerama xml xmlreader xmlrpc xorg xosd xpm xprint xrandr xscreensaver xv xvid xvmc yahoo yiff yv12 zlib zvbi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev mach64 mga nv r128 radeon sisusb v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS"


the build image I started off with was the default 64bit stage4 image provided by Gentoo installed via the livecd
the build flags are the default ones for 64bit


for the controller we haven't got the motion sensing jiggly bits working yet (oo-er :D ) because it needs special commands to pick up on this
but you should be able to get the non jiggly motion sensing bits to work (buttons / directional control)
emerge the patched version of bluez-utils in the overlay
use a kernel above 2.6.20
configure /etc/conf.d/bluetooth and /etc/bluetooth/hcid.conf (see first page of this thread)
restart bluetooth /etc/init.d/bluetooth restart
hit the sync button on the controller (the lights will keep flashing without going solid)
try jstest /dev/input/js0
hcidump is just a raw data dump from the bluetooth device not really needed, but I have got version net-wireless/bluez-hcidump-1.30-r1 to compile (same as 1.30 but with just the ppc64 keyword added in the ebuild)

for alsa BTW I usually compile it as a module I'm not sure if it needs to be
but I think it normally passes the settings within /etc/modules.d/alsa when loading the module
at the moment I'm using optical output for the sound

for kernel 2.6.16 the one that comes with the stage4 image, oss is the way to go as alsa sounds like crap otherwise
for kernel 2.6.20 and above alsa is now fixed

if using alsa just a couple of notes
you'l need to start alsa with /etc/init.d/alsasound start
(it's not started by default)
also there's a setting within /etc/mplayer.conf as to if to use alsa or oss by default

for wireless I must admit I've not tried WEP or WPA
the only changes I did make were to set the essid within /etc/conf.d/net
and to extend the dhcpd timeout with
dhcpcd_eth0="-t 20"
also I unmasked =net-wireless/wireless-tools-29_pre21 to stop the warning messages coming up on bootup
one thing you could try is to preonfigure the system in the Game OS to connect through WPA
then see if it remembers inside linux

considering that some people seem to be having problems compiling things that have worked straight off the bat for me (hicdump / snes9x etc) I'm wondering if there are some users with different defaults for the compile flags
if you are having problems I'd just double check your CFLAGS in make.conf
the ones I've got above were the default in the stage4 image I used
the only other thing I can think of is if you've been using cutting edge versions of gcc (4.3) for use with the SPU as mentioned in one of the other tutorials that are nocking about the the PS3
at the moment I'm currently using the standard 4.1.1-r3, I've just spotted a later version is now available for the default - 4.1.2 I'll have a go with that and see what happens
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Sun Jun 03, 2007 11:44 am    Post subject: Reply with quote

just spotted the problem you were talking about for snes9x-1.50 about globals.cpp
I believe the solution is to turn off distcc in /etc/make.conf under features

for 1.50 this has an issue with distcc being enabled
for 1.51 this has no problem with distcc being enabled (although I'm not sure if it uses it)

for 1.51 it appears to work but the sounds a bit crappy
I think it has something to do with someone setting the default output to 32Khz or so
it uses /dev/dsp by default which I believe is the old oss interface
so unless there's an option I've missed somewhere to use alsa instead or change the sampling rate
I'll have to keep fiddling with the settings
Back to top
View user's profile Send private message
Pizza67
n00b
n00b


Joined: 19 Mar 2007
Posts: 6

PostPosted: Mon Jun 04, 2007 9:07 am    Post subject: Reply with quote

Hi all!

I'm trying to make the BT remote works with Freevo or Mythv on my PS3.
I'm currently using 2.6.21 garlicbread overlay (thanks man!) and I successfully paired the remote with the PS3. Unfortunately no key events are found in evtest.

Some news about this problem?

Anybody have tried this?

http://apebox.org/modules/code/cakemote.pie (Rename in .py)

It returns an error:

Code:
class uinput():
             ^
SyntaxError: invalid syntax


I probably need to add the uinput support in the kernel (I didn't have time so far) but it seems a syntax error not depending on configuration, isn't it?
Back to top
View user's profile Send private message
garlicbread
Apprentice
Apprentice


Joined: 06 Mar 2004
Posts: 182

PostPosted: Mon Jun 04, 2007 11:30 am    Post subject: Reply with quote

I've already put another post further up on this one on the 2nd page, but for info
you won't get anything through the evtest untill there's been an update with the kernel or bluez-utils

at the moment when you hit the sync button on the remote
a connection is established remote -> PS3 to the running hidd service (if you've switched it on for the controller)
but hidd can't handle the odd data packet from the remote so nothing shows up through evtest

the existing python scripts I've seen do it the other way round instead (don't use the sync button on the remote, or the event device)
connection from the PS3 -> Remote control
this way the script controls the pairing and the type of connection made (I think L2CAPP or some kind of raw data connection) and the script interprets the meaning of the data itself
One thing they tend not to mention is that when your trying to connect from a device such as the PS3 to the remote (instead of the remote to the PS3) you need to hold down the Start / Enter buttons on the remote to allow the script to find / pair with the device, otherwise the remote is hidden from an outside point of view

also in the script I think you have to manually enter in the BT address instead of auto discover (if it's the same one I've used before)

it's not an ideal way of doing it but it does work for now
a more ideal way would be if the running hidd service could make sense of the incomming data
that way everything could be seen through the /dev/input/event entry
and the only thing you'd need to do would be to hit the sync button on the remote instead of messing around with a script
but we'll need to wait for ether the kernel or bluez-utils to be updated before that happens
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
Jump to:  
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