Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa emerging
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
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Thu Jun 10, 2004 8:37 pm    Post subject: alsa emerging Reply with quote

I can't seem to get sound working on my G3. However, I just found that when I was emerging alsa, it installed the modules in the wrong kernel module directory. I am running a 2.4.24-r4 kernel and it keeps installing the modules in the 2.4.20-r4 directory. How do I fix this?
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Thu Jun 10, 2004 8:49 pm    Post subject: Reply with quote

Perhaps check
Code:
ls -al /usr/src/linux


and see what if points to?
Back to top
View user's profile Send private message
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Thu Jun 10, 2004 8:58 pm    Post subject: thanks Reply with quote

Thanks. I didn't realize you had to relink the source you were using to linux. I'm such a n00b . :oops:
Back to top
View user's profile Send private message
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Thu Jun 10, 2004 9:21 pm    Post subject: Reply with quote

I got it to install into the correct kernel modules folder, but now its telling me:

Code:

sudo modprobe snd-powermac
/lib/modules/2.4.24-ppc-r4/kernel/sound/acore/snd.o: couldn't find the kernel version the module was compiled for
/lib/modules/2.4.24-ppc-r4/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.24-ppc-r4/kernel/sound/acore/snd.o failed
/lib/modules/2.4.24-ppc-r4/kernel/sound/acore/snd.o: insmod snd-powermac failed
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Thu Jun 10, 2004 9:32 pm    Post subject: Reply with quote

Perhaps you have to do
Code:
modules-update


or
Code:
/sbin/depmod -a


Not really sure if I'm honest.
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Thu Jun 10, 2004 9:45 pm    Post subject: Reply with quote

There have been a few other posts with people having module problems (couldn't find the kernel version) ... so I think they may be related somehow .... there were also posts about uname not working, wich may also be related as well . . .

Of course I may be totally out to lunch, which is entirely possible hehe, but it seems like there is something lower level causing problems . . .
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jun 10, 2004 11:50 pm    Post subject: Reply with quote

genfoo wrote:
There have been a few other posts with people having module problems (couldn't find the kernel version) ... so I think they may be related somehow .... there were also posts about uname not working, wich may also be related as well . . .

Of course I may be totally out to lunch, which is entirely possible hehe, but it seems like there is something lower level causing problems . . .


Yes indeed, I reported the module problem and filled a bug (https://bugs.gentoo.org/show_bug.cgi?id=53371)
for it. It is a problem due to gcc, if you are using a 2.4 kernel compiled with
gcc3.3.3_pre20040408-r1 you are out of luck and cannot load modules.
Someone confirmed it with a kernel 2.4.24-r4.
So either go to kerenel 2.6 or stick to a kernel compiled with gcc3.2.3 (my
case).
Back to top
View user's profile Send private message
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Fri Jun 11, 2004 2:20 pm    Post subject: Reply with quote

Ok. I downgraded to gcc 3.2.3 because of the modules problem. I recompiled the alsa drivers, and this time the kernel error dissappeared. However I got the message:

Code:

/lib/modules/2.4.24-ppc-r4/kernel/sound/ppc/snd-powermac.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.24-ppc-r4/kernel/sound/ppc/snd-powermac.o: insmod /lib/modules/2.4.24-ppc-r4/kernel/sound/ppc/snd-powermac.o failed
/lib/modules/2.4.24-ppc-r4/kernel/sound/ppc/snd-powermac.o: insmod snd-powermac failed


after checking dmesg, I found:

Code:

ALSA pmac.c:1104: pmac: can't request resource 0!
no PMac soundchip found


I am trying to get sound working on a B&W G3. The system specs are a 300mHz proc, and I believe a revision 2 motherboard (though I am not sure). I thought this system had a PMac sound chip. All I want to do is get sound working. I had it working when I was using the liveCD many many moons ago (it was an older liveCD though), so I know its possible. I haven't been able to get it working since then. I have looked at all of the howtos I could fine, and none of them helped. Someone please help this pathetic n00b! :cry:
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jun 11, 2004 2:41 pm    Post subject: Reply with quote

Perhaps keep tabs on another thread https://forums.gentoo.org/viewtopic.php?t=182847
since it looks like a similar problem. In short try the module
Code:
dmasound_pmac
and make sure to unload first unwanted sound modules by checking with "/sbin/lsmod". By that I mean one can't mix snd-powermac modules with dmasound_pmac (well so I read on some debian google forum).

Perhaps another thing, I'm sure you have done it already, but for 2.4 don't you have to put in /etc/make.conf which sound card before you compile alsa ?
Back to top
View user's profile Send private message
jguidroz09
n00b
n00b


Joined: 27 May 2004
Posts: 49

PostPosted: Fri Jun 11, 2004 3:05 pm    Post subject: Reply with quote

I have Gentoo running on my B&W G3 300 rev.1. ( I think rev.2 started with the 350mhz chip). Well I had it running, seeing as something got screwed up trying to switch from devfs to udev, I'm currently recompiling everything and going udev from the beginning. Anyways, sound was working fine for me. I had compiled alsa into the kernel and emerged alsa-libs and alsa-utils I believe(working on my PB G4 right now, so I can't tell). I also know in the kernel config for 2.6, there are a bunch of options for powermac sound and I had all of those checked, IIRC. I know all the modules for alsa loaded fine except for the snd_oss_mixer I believe. That one wouldn't load.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Fri Jun 11, 2004 3:25 pm    Post subject: Reply with quote

jguidroz09, what about the
Code:
---> I2C support
       ---> <M> I2C support
            <M>   I2C device interface


was this compiled in or was it a module which would have been called "i2c-dev" ?
Back to top
View user's profile Send private message
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Fri Jun 11, 2004 4:02 pm    Post subject: Reply with quote

I removed the dmasound_pmac module, and now the snd-powermac module loaded. I'm not sure if sound is working now as I was doing all of this through ssh from work, but things are looking up. I will let you all know as soon as I get home. Thank you for all of your help so far. :)
Back to top
View user's profile Send private message
rxjackson
n00b
n00b


Joined: 09 Jun 2004
Posts: 14

PostPosted: Sat Jun 12, 2004 12:45 am    Post subject: Reply with quote

I got home and SOUND WORKS! Thank you all so very much for your help. :lol:
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Jun 12, 2004 9:35 am    Post subject: Reply with quote

Quote:
I got home and SOUND WORKS! Thank you all so very much for your help.


Good to read!!

Have you built into your kernel or made modules for

(1) i2c-dev
(2) snd-powermac
(3) i2c-keywest
Back to top
View user's profile Send private message
jguidroz09
n00b
n00b


Joined: 27 May 2004
Posts: 49

PostPosted: Sat Jun 12, 2004 4:51 pm    Post subject: Reply with quote

jaspal kallar wrote:
jguidroz09, what about the
Code:
---> I2C support
       ---> <M> I2C support
            <M>   I2C device interface


was this compiled in or was it a module which would have been called "i2c-dev" ?


I had them compiled as modules.
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