View previous topic :: View next topic |
Author |
Message |
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 4:05 pm Post subject: alsa problem |
|
|
hello all , i got the following problem of alsa modules
no lsmod output
kernel is 2.6.28
please tell me what can i do
i really appreciate your help
--------------------------------------------------------------
shadow linux # /etc/init.d/alsasound restart
* WARNING: you are stopping a boot service.
* Storing ALSA Mixer Levels...
/usr/sbin/alsactl: save_state:1061: No soundcards found... [ !! ]
* Unloading ALSA... [ ok ] * Unloading ALSA modules... [ ok ] * Loading ALSA modules...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_emu10k1...
WARNING: Error inserting snd (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_util_mem (/lib/modules/2.6.10-gentoo-r6/kernel/sound/synth/snd-util-mem.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-pcm.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-rawmidi.ko): Invalid module format
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/emu10k1/snd-emu10k1.ko): Invalid module format [ !! ]
* Loading: snd-pcm-oss...
WARNING: Error inserting snd (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/oss/snd-pcm-oss.ko): Invalid module format [ !! ]
* Loading: snd-mixer-oss...
WARNING: Error inserting snd (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd.ko): Invalid module format
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format [ !! ]
* ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]
----------------------------------------------------------------------------
my /etc/modules.d/alsa file is
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator $
# 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 `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-1 snd-ens1371
## OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# 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
--------------------------------------------------------- |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 5:45 pm Post subject: |
|
|
I think I had a problem like this before. The 'invalid module format' warnings you're getting may be from a compiler version mismatch. Have you compiled both the kernel and the modules with the same gcc version?
and there's no lsmod output at all? Or just nothing pertaining to sound modules? |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 6:07 pm Post subject: |
|
|
i was use gcc 3.3 to built my gentoo stages3 2004.3, after i update my gcc version to be gcc 3.4.3. lsmod show nothing pertaining to sound modules
i do appreciate your answer
Adrian |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 7:10 pm Post subject: |
|
|
adrian_cheng wrote: | i was use gcc 3.3 to built my gentoo stages3 2004.3, after i update my gcc version to be gcc 3.4.3. lsmod show nothing pertaining to sound modules
i do appreciate your answer
Adrian |
then I guess my only help can be the obvious. DO make sure you have the propper things in the kernal ticked to be built as modules, not built in. Since you're running the 2.6 tree, use the modules in the kernel source, don't emerge alsa-drivers. And make sure the gcc versions match.
If this was my machine I'd just rebuild the kernel, the modules, and reinstall them - but I don't know how much you like mucking around with the kernel. |
|
Back to top |
|
|
gakula n00b
Joined: 05 Jan 2004 Posts: 72
|
Posted: Sun Feb 06, 2005 7:23 pm Post subject: Re: alsa problem |
|
|
adrian_cheng wrote: |
...
kernel is 2.6.28
...
(/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd.ko): Invalid module format
|
so what is your current running kernel version: 2.6.8 or 2.4.28? there is no such version as 2.6.28 ... yet
what is output of
[/quote] |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 7:40 pm Post subject: |
|
|
uname -r output is
2.6.10-gentoo-r6 |
|
Back to top |
|
|
gakula n00b
Joined: 05 Jan 2004 Posts: 72
|
Posted: Sun Feb 06, 2005 7:47 pm Post subject: |
|
|
adrian_cheng wrote: | uname -r output is
2.6.10-gentoo-r6 |
well, you need to recompile/reinstall kernel and modules at the same time to make sure they compiled the by same gcc
Code: |
make
rm -rf /lim/modules/`uname -r`/
make modules_install
make install (or copy arch/i386/boot/bzImage to whatever location/name you use manually and rerun lilo if it's in use) |
|
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 7:50 pm Post subject: |
|
|
could you mind tell me how to make modules_install and make install
i already step1.
rm -rf /lim/modules/`uname -r`/
thanks |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 8:24 pm Post subject: |
|
|
ok i done for reinstall modules
but it shows another error message during bootup
------------------------------------------------------------
* WARNING: you are stopping a boot service.
* Storing ALSA Mixer Levels...
/usr/sbin/alsactl: save_state:1061: No soundcards found... [ !! ]
* Unloading ALSA... [ ok ] * Unloading ALSA modules... [ ok ] * Loading ALSA modules...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]
-----------------------------------------------------------------------------------------------------------
thanks for answer |
|
Back to top |
|
|
gakula n00b
Joined: 05 Jan 2004 Posts: 72
|
Posted: Sun Feb 06, 2005 8:47 pm Post subject: |
|
|
Code: | lsmod
lspci
cat /etc/modules.autoload.d/kernel-2.6
|
|
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 8:52 pm Post subject: |
|
|
The following are the output of result
--------------------------------------------------
lsmod
Module Size Used by <-- no output
shadow init.d # lspci
0000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2)
0000:02:09.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
0000:02:0a.0 Communication controller: Agere Systems (former Lucent Microelectronics) LT WinModem (rev 02)
0000:02:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
0000:02:0b.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 0a)
0000:02:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
cat /etc/modules.autoload.d/kernel-2.6
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.
# For example:
# 3c59x |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 8:53 pm Post subject: |
|
|
Ah, from that you have a SB live card. Did you compile the emu10k1 module for the kernel?
Again, the gentoo handbook's got a good section for configuring alsa. Suggest you ceck that out too. |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 8:59 pm Post subject: |
|
|
yes.
shadow init.d # lspci |grep 'audio'
0000:02:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
shadow init.d # lsmod
Module Size Used by
shadow init.d #
------------------------------
i choosed
Linux Kernel Configuration
Device Drivers --->
Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
PCI devices --->
<*> Emu10k1 (SB Live!, Audigy, E-mu APS) |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 9:03 pm Post subject: |
|
|
Quote: | Linux Kernel Configuration
Device Drivers --->
Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
PCI devices --->
<*> Emu10k1 (SB Live!, Audigy, E-mu APS) |
those '*'s mean you've compiled it directly into the kernel, not as a module. If you go back in and press space on the Emu10k1 again then <*> should become <M>. Recompile, reinstall the kernel and modules again like you did before but then it should work. |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 9:08 pm Post subject: |
|
|
so what can i do?? just change it become <M> for all |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 9:12 pm Post subject: |
|
|
just for the emu10k1 line. (I have sound card support <*>'d, but my card <M>'d and it works fine)
EDIT: Actually, upon checking more I have
Code: |
<M> Advanced Linux Sound Archit. . .
<M> Sequencer Support
<M> OSS Mixer API
<M> OSS PCM
[*] OSS Sequencer
<M>RTC timer
|
Don't know offhand if it will make a difference
Also, this is why lsmod doesn't list anything. . .if you <*>'d everything, then you simply don't have any modules to show |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 9:22 pm Post subject: |
|
|
sigh..... another again...
shadow linux # /etc/init.d/alsasound restart
* WARNING: you are stopping a boot service.
* Storing ALSA Mixer Levels...
/usr/sbin/alsactl: save_state:1061: No soundcards found... [ !! ]
* Unloading ALSA... [ ok ] * Unloading ALSA modules... [ ok ] * Loading ALSA modules...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_emu10k1...
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_util_mem (/lib/modules/2.6.10-gentoo-r6/kernel/sound/synth/snd-util-mem.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-rawmidi.ko): Invalid module format
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/emu10k1/snd-emu10k1.ko): Invalid module format [ !! ]
* ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ] |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 9:25 pm Post subject: |
|
|
sighh...... i want to kill myself....and Geee sound card |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 9:49 pm Post subject: |
|
|
Are you booting into the new kernel after you recompile it with the drivers? i.e. copying the image to /boot modifying the bootloader to use the new kernel.
There should be no reason to get that error message again if you've recompiled both the kernel and the modules (which you should have) with the same gcc version. |
|
Back to top |
|
|
rosema55 n00b
Joined: 19 Sep 2004 Posts: 27 Location: Sweden
|
Posted: Sun Feb 06, 2005 10:00 pm Post subject: |
|
|
Hi. there are only a few steps left to do so dont kill anything else but TIME, please.
In your /etc/make.conf you have to add
ALSA-CARDS="emu10k1"
and in /etc/modules.autoload.d/kernel-2.6 add
snd-emu10k1
and then run modules-update
Hope it will work |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 10:23 pm Post subject: |
|
|
sigh......
shadow linux-2.6.10-gentoo-r6 # /etc/init.d/alsasound restart
* WARNING: you are stopping a boot service.
* Storing ALSA Mixer Levels...
* -e ERROR: Cannot find alsactl. [ !! ]
* Unloading ALSA... [ ok ] * Unloading ALSA modules... [ ok ] * Loading ALSA modules...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_emu10k1...
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_util_mem (/lib/modules/2.6.10-gentoo-r6/kernel/sound/synth/snd-util-mem.ko): Invalid module format
WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.10-gentoo-r6/kernel/sound/core/snd-rawmidi.ko): Invalid module format
FATAL: Error inserting snd_emu10k1 (/lib/modules/2.6.10-gentoo-r6/kernel/sound/pci/emu10k1/snd-emu10k1.ko): Invalid module format [ !! ]
* ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ] |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 10:28 pm Post subject: |
|
|
can not do this one
/etc/modules.autoload.d/kernel-2.6 add
snd-emu10k1
it will shows cant find emu10k1 modules
ps. are you suggest me to reinstall gentoo again??
if yes, could you mind tell me what i need to be focus on thanks |
|
Back to top |
|
|
berkowski Tux's lil' helper
Joined: 17 Mar 2004 Posts: 134
|
Posted: Sun Feb 06, 2005 10:30 pm Post subject: |
|
|
I know it's frustrating, but please post a bit more than just "sigh. . .. same error message" Tell us, what did you try differently? Are you sure you've rebuilt the kernel + modules correctly and are booting into your new kernel. It's not enough to simply "make modules etc." and reboot, you need to copy the kernel image to /boot and edit your bootloader to utilize the new kernel. As I said before, I don't understand why you're still getting that format error if you have.
and, I can't stress it enough, read the handbook. it has an alsa guide. And it actually knows what it's talking about, unlike most of us who are just guessing about your probelm
and no, reinstalling gentoo to try and fix this is a waste. You can fix it without doing that. . . .just have to find how |
|
Back to top |
|
|
adrian_cheng Tux's lil' helper
Joined: 06 Feb 2005 Posts: 104 Location: Michigan, USA
|
Posted: Sun Feb 06, 2005 10:43 pm Post subject: |
|
|
dear Berkowski and all nice friends
i really do appreciate your help and answer my question.
i have to go for meeting now. so could i have Berkowski and other ppl 's msn account
this is my msn account kent@doya.url.com.tw
thanks again
sincerely
Adrian |
|
Back to top |
|
|
|