Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to load ALSA modules after system update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Wed Apr 18, 2012 9:57 am    Post subject: Unable to load ALSA modules after system update Reply with quote

After updating my Gentoo box (emerge world -uDav), ALSA modules are not loaded anymore.

When I try to manually load the card module, it fails:
Code:
# modprobe snd-emu10k1
FATAL: Module snd-emu10k1 not found

So, i tried
Code:
# insmod /lib/modules/3.3.2-gentoo/kernel/sound/pci/emu10k1/snd-emu10k1.ko
Error: could not insert module /lib/modules/3.3.2-gentoo/kernel/sound/pci/emu10k1/snd-emu10k1.ko: Unknown symbol in module

and I got some details in dmesg:
Code:
[ 2386.952421] snd_emu10k1: Unknown symbol snd_rawmidi_receive (err 0)
[ 2386.952434] snd_emu10k1: Unknown symbol snd_rawmidi_transmit (err 0)
[ 2386.952441] snd_emu10k1: Unknown symbol snd_ac97_write_cache (err 0)
[ 2386.952450] snd_emu10k1: Unknown symbol snd_ac97_resume (err 0)
[ 2386.952460] snd_emu10k1: Unknown symbol snd_seq_device_new (err 0)
[ 2386.952484] snd_emu10k1: Unknown symbol snd_ac97_mixer (err 0)
[ 2386.952496] snd_emu10k1: Unknown symbol snd_ac97_bus (err 0)
[ 2386.952520] snd_emu10k1: Unknown symbol snd_ac97_suspend (err 0)
[ 2386.952532] snd_emu10k1: Unknown symbol __snd_util_mem_alloc (err 0)
[ 2386.952541] snd_emu10k1: Unknown symbol snd_util_memhdr_new (err 0)
[ 2386.952552] snd_emu10k1: Unknown symbol snd_hwdep_new (err 0)
[ 2386.952576] snd_emu10k1: Unknown symbol snd_ac97_update (err 0)
[ 2386.952590] snd_emu10k1: Unknown symbol snd_rawmidi_new (err 0)
[ 2386.952602] snd_emu10k1: Unknown symbol __snd_util_mem_free (err 0)
[ 2386.952608] snd_emu10k1: Unknown symbol snd_rawmidi_set_ops (err 0)
[ 2386.952619] snd_emu10k1: Unknown symbol snd_util_memhdr_free (err 0)
[ 2386.952635] snd_emu10k1: Unknown symbol __snd_util_memblk_new (err 0)
[ 2386.952646] snd_emu10k1: Unknown symbol snd_ac97_read (err 0)


It seems the system is now unable to load modules dependencies by itself :evil:

I was eventually able to load the module by manually loading all dependencies first:
Code:
# cd /lib/modules/3.3.2-gentoo/kernel/sound/
# insmod ./core/snd.ko
# insmod ./core/seq/snd-seq-device.ko
# insmod ./core/snd-rawmidi.ko
# insmod ./core/snd-page-alloc.ko
# insmod ./core/snd-pcm.ko
# insmod ./ac97_bus.ko
# insmod ./pci/ac97/snd-ac97-codec.ko
# insmod ./synth/snd-util-mem.ko
# insmod ./core/snd-timer.ko
# insmod ./core/snd-hwdep.ko
# insmod ./pci/emu10k1/snd-emu10k1.ko


Any idea why modules are not loaded anymore and how could I fix this?

I'm using kernel 3.3.2-gentoo on ~amd64, alsa-utils-1.0.25-r2, udev-182.
Back to top
View user's profile Send private message
Apheus
Apprentice
Apprentice


Joined: 12 Jul 2008
Posts: 229

PostPosted: Wed Apr 18, 2012 12:36 pm    Post subject: Reply with quote

Maybe you have modules.dep missing/incomplete/damaged.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4658
Location: Saint Amant, Acadiana

PostPosted: Wed Apr 18, 2012 12:43 pm    Post subject: Reply with quote

Quote:
Unknown symbol in module
You will get this error when module and kernel versions do not match. In other words, if you are running one version of kernel and try to insert modules built for another version of kernel.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Wed Apr 18, 2012 4:04 pm    Post subject: Reply with quote

Thanks for the replies.

Quote:
Maybe you have modules.dep missing/incomplete/damaged.

modules.dep seems fine:
Code:
# uname -r
3.3.2-gentoo

# grep snd-emu10k1 /lib/modules/3.3.2-gentoo/modules.dep
kernel/sound/pci/emu10k1/snd-emu10k1.ko: kernel/sound/core/snd-hwdep.ko kernel/sound/synth/snd-util-mem.ko kernel/sound/pci/ac97/snd-ac97-codec.ko kernel/sound/ac97_bus.ko kernel/sound/core/snd-rawmidi.ko kernel/sound/core/seq/snd-seq-device.ko kernel/sound/core/snd-pcm.ko kernel/sound/core/snd-page-alloc.ko kernel/sound/core/snd-timer.ko kernel/sound/core/snd.ko
kernel/sound/pci/emu10k1/snd-emu10k1-synth.ko: kernel/sound/synth/emux/snd-emux-synth.ko kernel/sound/core/seq/snd-seq-midi-emul.ko kernel/sound/pci/emu10k1/snd-emu10k1.ko kernel/sound/core/snd-hwdep.ko kernel/sound/synth/snd-util-mem.ko kernel/sound/pci/ac97/snd-ac97-codec.ko kernel/sound/ac97_bus.ko kernel/sound/core/seq/snd-seq-virmidi.ko kernel/sound/core/snd-rawmidi.ko kernel/sound/core/seq/snd-seq-midi-event.ko kernel/sound/core/seq/snd-seq.ko kernel/sound/core/seq/snd-seq-device.ko kernel/sound/core/snd-pcm.ko kernel/sound/core/snd-page-alloc.ko kernel/sound/core/snd-timer.ko kernel/sound/core/snd.ko


Quote:
You will get this error when module and kernel versions do not match. In other words, if you are running one version of kernel and try to insert modules built for another version of kernel.

I removed everything from /lib/modules/, I recompiled and installed latest kernel (with modules), rebooted, but I still have the same problem.
On my system there is only one version of the kernel and the installed modules are for this version of the kernel...

Any other idea?

Is there a way to check the path of the module modprobe is trying to insert?

Thanks
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4658
Location: Saint Amant, Acadiana

PostPosted: Wed Apr 18, 2012 4:49 pm    Post subject: Reply with quote

uname -v

Does timestamp match your kernel build? We have seen here weirdest boot configurations, maybe you are not booting the kernel you think you are? Or maybe you just forgot to mount /boot before installing? Can happen to anyone.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Thu Apr 19, 2012 6:48 am    Post subject: Reply with quote

Timestamp match. I tried to install an older kernel, but with the same result.

Eventually I downgraded udev-182-r3 down to udev-171-r5, removed kmod and replaced with module-init-tools. I rebooted my system a everything works fine: all modules are now automatically loaded :D

The problem seems thus the modprobe provided by the kmod package: udev finds the hardware, but fails trying to load the modules...

After some digging, I noticed that ALSA drivers were not the only drivers that were not loaded. Firewire drivers were not loaded neither, like all drivers related to my Hauppauge WinTV card. Even USB drivers were only partially loaded (EHCI drivers for instance were not loaded). Only network card driver and graphic card driver were successfully loaded...

Is there any known problem with the kmod package? How can I track down the problem? Should I open a bug?
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4658
Location: Saint Amant, Acadiana

PostPosted: Thu Apr 19, 2012 8:18 pm    Post subject: Reply with quote

So you had two different problems? The first one, modules failed to load with an error, and the second problem is they do not autoload? Regarding second one, you should put them into /etc/conf.d/modules.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
jam666
n00b
n00b


Joined: 19 Apr 2012
Posts: 1
Location: Belarus

PostPosted: Thu Apr 19, 2012 8:48 pm    Post subject: Reply with quote

I confirm the problem. Had absolutely the same system behavior trying to upgrade to gentoo-sources-3.3.0 / zen-sources-3.3.2 and higher (amd64 unstable).
Kernels below 3.3.0 did not reveal the problem (last used zen-sources-3.2.12).

The symptoms are: udev cannot load most kernel modules. Manual modprobe says "Module not found", insmode shows errors of missing symbols. In my case none of the following modules loaded: usb (ohci, ehci, common), audio (ca0106, ac97, etc), ethernet (r8169), video (agpgart, nvidia) and many others (k10temp, parport, firewire, etc).

I tried the offered above - downgraded udev to a stable version (had also to downgrade consolekit to keep the dependencies), removed kmod and installed module-init-tools.
After that I managed to boot the system successfully, having all the necessary hardware founnd by udev and necessary modules loaded.

1. Thank You for that way-around tip.
2. As soon as there are 2 cases of the same problem I think it is enough for the appropriate bug-report, as soon as this problem seem not to be reported yet (thorough googling did not reveal anything alike).

Best regards.
Back to top
View user's profile Send private message
rcb1974
n00b
n00b


Joined: 12 Mar 2003
Posts: 44

PostPosted: Thu May 10, 2012 7:55 pm    Post subject: I am experiencing the exact same problem Reply with quote

I am experiencing the exact same problem. I am only able to load 4 out of 20+ modules successfully. All the remaining modules give me a "FATAL: module x not found" error when I modprobe them, even though they are in the /lib/modules/3.3.4 folder and even after running depmod. When I use the insmod command on the *.ko file, I get the same "unknown symbol in module" error that the original poster mentions.

I am in the process of rebuilding a new kernel, 3.3.5, and the modules that go with it. Hopefully this problem will go away after that. I am also using the new udev.
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1505
Location: Switzerland (Romandie)

PostPosted: Fri Jul 27, 2012 8:19 pm    Post subject: Reply with quote

I get similar issues with a 3.4.0 kernel, udev.186 and kmod-9-r3. Only the audio part of the sound cards are loading, I get no MIDI device, and snd-aloop is not loaded. If I modprobe snd-aloop, it work.

As a 3.4.5 kernel is available, I will first try it.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1505
Location: Switzerland (Romandie)

PostPosted: Fri Jul 27, 2012 9:14 pm    Post subject: Reply with quote

Same result with kernel 3.4.5. But after adding snd-aloop and snd-virmidi in the modules line of /etc/conf.d/modules, every thing is working fine.

But, it should be another way than adding virmidi in this file to get MIDI to work...

EDIT: I think adding snd-seq should do it.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1505
Location: Switzerland (Romandie)

PostPosted: Sun Jan 13, 2013 3:54 am    Post subject: Reply with quote

A little update. Not only the sound cards related modules have to be compiled as modules for the index option to work, but also everything that is sound support related must be compiled as module, including "Sound support" (the soundcore module).

Otherwise, you will have to pass the index parameters as kernel boot option in grub.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
superwutze
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2004
Posts: 136
Location: Europe/Vienna

PostPosted: Tue Feb 12, 2013 1:08 pm    Post subject: Reply with quote

hello!

i guess i have the same problem as described here: http://forums.gentoo.org/viewtopic-p-7244774.html
as your thread has been quiet for some time may i asked if there was a solution or do the problems still pereisit?

regards,
andy
_________________
bill who? micro what?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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