Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snd-powermac on 2.6.11-gentoo-r10 segfaults
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Tue Jun 07, 2005 11:58 am    Post subject: snd-powermac on 2.6.11-gentoo-r10 segfaults Reply with quote

I have just re-installed Gentoo on my iBook, now with kernel 2.6.11-gentoo-r10. I don't remember exactly how I had configured sound in my previous kernel, but now I have everything compiled in, except for snd-powermac, which is a module. I have no DMA modules. When I try to modprobe snd-powermac, it gives me an segfault.

What is the correct kernel config to make sound work on an iBook G4? As far as I remember snd-powermac was the only thing that you NEED to have as an module. Do I have to enable this DMA option? If yes compiled in or as a module?


Tom
Back to top
View user's profile Send private message
praveen
n00b
n00b


Joined: 08 Jun 2005
Posts: 43

PostPosted: Wed Jun 08, 2005 8:32 am    Post subject: Reply with quote

See the section

How do I get sound playback working?

in the following page

http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Wed Jun 08, 2005 9:52 pm    Post subject: Reply with quote

Hi, thanks for that link. It's not clear what they mean though. First, they show that Powermac DMA should be enabled in the kernel, but then they claim that it won't work with DMA enabled. Hmmm. Well I tried it without DMA. When I compile the sound module into the kernel, the kernel won't boot, and when I have it as a module, it segfaults when I modprobe it. I'll try it with DMA enabled again, but if that fails too I have no idea what could be wrong. It worked fine with -r8 though.


Tom
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 08, 2005 10:47 pm    Post subject: Reply with quote

The FAQ outlines two methods to get sound working. OSS and ALSA. Use one or the other, not both. If you're still getting segfaults, please paste in the trace so we can figure out what is wrong.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Jun 09, 2005 12:13 am    Post subject: Reply with quote

I tried it with ALSA, just as I had it before. What irritates me in the FAQ is:

Quote:

Code Listing 3.6: Kernel options for ALSA
Device Drivers - Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
<*> PowerMac DMA sound support
<*> Advanced Linux Sound Architecture
<*> Sequencer support
...


but then:

Quote:

Note: Please make sure that PowerMac DMA sound support is turned off, otherwise the ALSA module will not be able to load.


First, in the kernel config is shown that you should turn DMA on but then there's a note that DMA should be turned off. Duh. I'll try further tomorrow and post the trace and I'll also try OSS then.


Tom
Back to top
View user's profile Send private message
praveen
n00b
n00b


Joined: 08 Jun 2005
Posts: 43

PostPosted: Fri Jun 10, 2005 5:25 am    Post subject: Reply with quote

There is a small error in the FAQ. For the ALSA part it should read

Quote:

Code Listing 3.6: Kernel options for ALSA
Device Drivers - Sound --->
<*> Sound card support
<> PowerMac DMA sound support
Advanced Linux Sound Architecture --->
<*> Advanced Linux Sound Architecture
<*> Sequencer support
...


However I recommend compiling all sound stuff as modules. That way you can use either OSS or ALSA, whichever works, without having to recompile the kernel.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 10, 2005 12:42 pm    Post subject: Reply with quote

Ah, you're right. I'll get that fixed in the FAQ asap. The FAQ recommends compiling it in because then it doesn't have to digress on modules, loading modules on start etc. It just works, which, by the time most people read the FAQ is all they really want. ;)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Fri Jun 10, 2005 2:53 pm    Post subject: Reply with quote

Damn, no matter how much i try, it just wouldn't work. Is this perhaps an issue with gentoos-sources-2.6.11-r10? I had it working before with -r8 with everything compiled in EXCEPT for snd-powermac, which I had as a module. I was told to have this as a module, and indeed it would never work if I tried to compile it in. But now with -r10 both don't work, and I'm using the same kernel config as before my re-install. I'll try downgrading to -r8 just to see if it works...


Tom
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 10, 2005 3:07 pm    Post subject: Reply with quote

Well, you still haven't said what you mean by: "It won't work". What is going wrong? If it's a segfault, panic or oops, please provide a trace.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Fri Jun 10, 2005 3:21 pm    Post subject: Reply with quote

Oh, sorry, I forgot. Well with -r10, snd-powermac as a module, when I try to modprobe snd-powermac I get "Speicherzugrifsfehler" which should mean "Memory access violation". I tried to modprobe it again just for fun, and then the module loaded (at least lsmod told me that) but when starting alsasound I get

* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]

and neither alsamixer or pbbuttonsd would work. When I compile snd-powermac in the kernel would just stop when it comes to init the soundcard. It just stops. Could I somehow get a more verbose output from modprobe when I try to load the module?


Tom
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Fri Jun 10, 2005 3:48 pm    Post subject: Reply with quote

Damn, I got it! At least in r8, snd-powermac loads without any hitches when I enable Powermac Keywest I/O and I2C-Devices under I2C in the kernel. When I modprobed the module with the r8-kernel I got some more output, and it said something about i2c so I just tried that. Damn! Someone should mention this in the FAQ (or did I just miss it!?) Thanks for all your help though!!


Tom
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
Page 1 of 1

 
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