View previous topic :: View next topic |
Author |
Message |
ArtoH n00b
Joined: 22 Dec 2006 Posts: 2
|
Posted: Fri Dec 22, 2006 8:09 am Post subject: ALSA problem |
|
|
Hi all,
I have a weird problem with ALSA sound. I got an error "Invalid module format" when I try to load alsa modules. There is first listing of my setup and then some debug information.
- MOBO Asus p5w
- processor Intel P4 prescott 531 3GHz
- kernle 2.6.18-r4 (gentoo), compiled with gcc 4.1.1
- gcc version 4.1.1
Here is lscpi listing:
lspci
00:00.0 Host bridge: Intel Corporation 975X Express Memory Controller Hub (rev c0)
00:01.0 PCI bridge: Intel Corporation 975X Express PCI Express Root Port (rev c0)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
02:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
02:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 20)
05:00.0 VGA compatible controller: ATI Technologies Inc Unknown device 7291
05:00.1 Display controller: ATI Technologies Inc Unknown device 72b1
Kernel config:
CONFIG_SOUND=y
# CONFIG_SOUND_PRIME is not set
# CONFIG_SND is not set
/etc/modules.d/alsa:
alias char-major-116 snd
alias char-major-14 soundcore
# card 0
alias snd-card-1 snd-usb-audio
alias sound-slot-1 snd-card-1
options snd-usb-audio index=0
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/dsp0 snd-pcm-oss
# card 1
alias snd-card-0 hda-intel
alias sound-slot-0 snd-card-0
options snd-hda-intel index=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
alias /dev/dsp1 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=2
Ok and then the actual problem:
When I try to load alsa module I got a lot of Warming messages
/etc/init.d/alsasound start
* Loading ALSA modules ...
* Loading: snd-card-1 ...
WARNING: Error inserting snd (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.18-gentoo-r4/misc/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-rawmidi.ko): Invalid module format
WARNING: Error inserting snd_usb_lib (/lib/modules/2.6.18-gentoo-r4/misc/usb/snd-usb-lib.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-p
...
And here is my dmesg output:
nd_dma_alloc_pages
snd_hda_intel: Unknown symbol snd_pcm_period_elapsed
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
snd: disagrees about version of symbol struct_module
snd_hwdep: disagrees about version of symbol struct_module
snd_seq_device: disagrees about version of symbol struct_module
snd_rawmidi: disagrees about version of symbol struct_module
snd_usb_lib: disagrees about version of symbol struct_module
snd_page_alloc: disagrees about version of symbol struct_module
snd_timer: disagrees about version of symbol struct_module
snd_pcm: disagrees about version of symbol struct_module
snd_usb_audio: Unknown symbol snd_ctl_add
snd_usb_audio: Unknown symbol snd_pcm_new
snd_usb_audio: Unknown symbol snd_card_register
snd_usb_audio: Unknown symbol snd_card_free
snd_usb_audio: Unknown symbol snd_card_proc_new
snd_usb_audio: Unknown symbol snd_usb_create_midi_interface
snd_usb_audio: Unknown symbol snd_pcm_stop
snd_usb_audio: Unknown symbol snd_pcm_hw_constraint_minmax
snd_usb_audio: Unknown symbol snd_pcm_format_physical_width
snd_usb_audio: Unknown symbol snd_ctl_find_id
snd_usb_audio: Unknown symbol snd_verbose_printk
snd_usb_audio: Unknown symbol snd_ctl_new1
snd_usb_audio: Unknown symbol snd_component_add
...
Ok and here is what I have tried to do.
1. Removerd alsa-driver, recompiled kernel and reinstalled alsa-driver
2. cheked that emerge uses the same gcc version than kernel was compiled (gcc 4.1.1)
3. Rebuild library dependencies using revdep-rebuild
4. reemerged system, recompailed kernel and reemerged alsa-driver
I'm running out of my knowledge and don't know what to do next.
- Arto |
|
Back to top |
|
|
Sten Tux's lil' helper
Joined: 12 Dec 2006 Posts: 109 Location: Prague, Czechia, European Union
|
Posted: Fri Dec 22, 2006 8:26 am Post subject: Re: ALSA problem |
|
|
ArtoH wrote: |
* Loading ALSA modules ...
* Loading: snd-card-1 ...
WARNING: Error inserting snd (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd.ko): Invalid module format
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-hwdep.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.18-gentoo-r4/misc/acore/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-rawmidi.ko): Invalid module format
WARNING: Error inserting snd_usb_lib (/lib/modules/2.6.18-gentoo-r4/misc/usb/snd-usb-lib.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.18-gentoo-r4/misc/acore/snd-p
...
And here is my dmesg output:
nd_dma_alloc_pages
snd_hda_intel: Unknown symbol snd_pcm_period_elapsed
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
snd: disagrees about version of symbol struct_module
snd_hwdep: disagrees about version of symbol struct_module
snd_seq_device: disagrees about version of symbol struct_module
snd_rawmidi: disagrees about version of symbol struct_module
snd_usb_lib: disagrees about version of symbol struct_module
snd_page_alloc: disagrees about version of symbol struct_module
snd_timer: disagrees about version of symbol struct_module
snd_pcm: disagrees about version of symbol struct_module
snd_usb_audio: Unknown symbol snd_ctl_add
snd_usb_audio: Unknown symbol snd_pcm_new
snd_usb_audio: Unknown symbol snd_card_register
snd_usb_audio: Unknown symbol snd_card_free
snd_usb_audio: Unknown symbol snd_card_proc_new
snd_usb_audio: Unknown symbol snd_usb_create_midi_interface
snd_usb_audio: Unknown symbol snd_pcm_stop
snd_usb_audio: Unknown symbol snd_pcm_hw_constraint_minmax
snd_usb_audio: Unknown symbol snd_pcm_format_physical_width
snd_usb_audio: Unknown symbol snd_ctl_find_id
snd_usb_audio: Unknown symbol snd_verbose_printk
snd_usb_audio: Unknown symbol snd_ctl_new1
snd_usb_audio: Unknown symbol snd_component_add
...
Ok and here is what I have tried to do.
1. Removerd alsa-driver, recompiled kernel and reinstalled alsa-driver
2. cheked that emerge uses the same gcc version than kernel was compiled (gcc 4.1.1)
3. Rebuild library dependencies using revdep-rebuild
4. reemerged system, recompailed kernel and reemerged alsa-driver
I'm running out of my knowledge and don't know what to do next.
- Arto |
It seems alsa-driver cannot be compiled properly for your kernel. Try not using alsa-driver but compile in-kernel ALSA. _________________ You don’t understand, I break things like this!
xor rsi,rsi
lodsb
Segmentation fault |
|
Back to top |
|
|
Flameeyes Retired Dev
Joined: 30 Mar 2005 Posts: 189 Location: London, Europe
|
Posted: Fri Dec 22, 2006 9:14 am Post subject: |
|
|
You have the modules for *both* in-kernel and alsa-driver compiled and installed in /lib/modules/`uname -r`.
Remove that directory, rebuild the kernel *without* ALSA support in-kernel, do make modules_install, and ten install alsa-driver, reboot and it will work. _________________ You want to know what I'm working on right now? Just follow my blog. |
|
Back to top |
|
|
ArtoH n00b
Joined: 22 Dec 2006 Posts: 2
|
Posted: Fri Dec 22, 2006 3:25 pm Post subject: |
|
|
That one worked
Thanks a lot!
Good to keep in mind for next time...
- Arto |
|
Back to top |
|
|
|
|
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
|
|