Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] alsa as modules "invalid module format"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nibblebot
n00b
n00b


Joined: 20 Jul 2005
Posts: 35
Location: New Orleans, LA, USA

PostPosted: Tue Feb 27, 2007 11:13 pm    Post subject: [SOLVED] alsa as modules "invalid module format" Reply with quote

fresh 2006.1 install, world updated, 2.6.19 kernel
--
I get the following error when trying to load the alsa modules:
Code:
* Loading ALSA modules ...
 *   Loading: snd-card-0 ...
WARNING: Error inserting soundcore (/lib/modules/2.6.19-gentoo-r5/kernel/sound/soundcore.ko): Invalid module format                                       [ ok ]
 *   Loading: snd-pcm-oss ...
WARNING: Error inserting soundcore (/lib/modules/2.6.19-gentoo-r5/kernel/sound/soundcore.ko): Invalid module format                                       [ ok ]
 *   Loading: snd-seq ...
WARNING: Error inserting soundcore (/lib/modules/2.6.19-gentoo-r5/kernel/sound/soundcore.ko): Invalid module format                                       [ ok ]


I would like to get alsa working as modules.

Relevant kernel config as follows:
Code:
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_RTCTIMER=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_AC97_BUS=m
CONFIG_SND_INTEL8X0=m


/etc/modules.d/alsa:
Code:
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-card-0
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
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
options snd cards_limit=1


/etc/modules.autoload.d/kernel-2.6:
Code:
skge
snd-intel8x0


relevant dmesg output:
Code:
soundcore: exports duplicate symbol sound_class (owned by kernel)


It seems ALSA always gives me problems.
Any suggestions?
TIA.


Last edited by nibblebot on Fri Mar 02, 2007 8:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
ashnikes
n00b
n00b


Joined: 29 Jun 2006
Posts: 6

PostPosted: Wed Feb 28, 2007 3:31 am    Post subject: Reply with quote

have you tried doing a search on it in the forums?
Back to top
View user's profile Send private message
ashnikes
n00b
n00b


Joined: 29 Jun 2006
Posts: 6

PostPosted: Wed Feb 28, 2007 4:11 am    Post subject: Reply with quote

the search notion is being discussed in this other post.
Ill look for an answer for you in the meantime.
Back to top
View user's profile Send private message
ashnikes
n00b
n00b


Joined: 29 Jun 2006
Posts: 6

PostPosted: Wed Feb 28, 2007 4:22 am    Post subject: Reply with quote

taken from this post:

Quote:
It looks like you have updated gcc between compiling the kernel and the alsa modules. The kernel and its modules need to be compiled with the same version of gcc - the kernel checks.
Rebuild and reinstall your kernel starting with make clean.

The other possibility is that your module-init-tools needs to be rebuilt. I don't know why that helps but its fixed this issue for me a few times now.
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Wed Feb 28, 2007 4:26 am    Post subject: Reply with quote

Try compiling your modules into your kernel.
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
ashnikes
n00b
n00b


Joined: 29 Jun 2006
Posts: 6

PostPosted: Wed Feb 28, 2007 4:32 am    Post subject: Reply with quote

Awww, common, I was going to solve this one. Im still looking up answers. I would have found it eventually.
Back to top
View user's profile Send private message
nibblebot
n00b
n00b


Joined: 20 Jul 2005
Posts: 35
Location: New Orleans, LA, USA

PostPosted: Wed Feb 28, 2007 8:34 pm    Post subject: Reply with quote

ashnikes:
I do know how to use search.
i recompiled gcc and module-init-tools, then recompiled kernel.
i have never used the alsa-driver on this install, so there are no librarys in /lib/... for the alsa-driver

I was just trying to load the modules correctly.
Back to top
View user's profile Send private message
nibblebot
n00b
n00b


Joined: 20 Jul 2005
Posts: 35
Location: New Orleans, LA, USA

PostPosted: Fri Mar 02, 2007 8:28 pm    Post subject: Reply with quote

Code:
make mrproper


this worked for me.
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Mar 02, 2007 8:46 pm    Post subject: Reply with quote

nibblebot wrote:
Code:
make mrproper


this worked for me.


grr! I hate that!! lol
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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