LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2006, 11:04 PM   #1
jei
LQ Newbie
 
Registered: Jul 2006
Posts: 29

Rep: Reputation: 16
Problems with alsa after 2.6 kernel recompile


Hello all, I am hoping someone can point me in the right direction. I'm a bit stuck.
To start off I'll post the facts

I am using slackware 10.2 on a dual 1.7ghz xeon Dell precision
I originally installed it using the bare.i kernel (2.4)
Then I upgraded to 2.6.13, I then upgraded the alsa drivers as stated on a google search. I downloaded all of the 2.6.13 packages directly from slackware.com /test directory.
After the first upgrade everything works perfectly. Except only 1 cpu was showing.

So I followed kernelnewbies.org guide and recompiled my kernel. I made sure smp and alsa support where checked. (I used gconfig to do this)

I then did

make
make modules_install
and copied the new bzImage to /boot/vmlinuz-smp-2.6.12
and System.map to /boot/System.map-smp-2.6.13

After I rebooted an error came up.



Jul 19 22:53:08 tank modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.13/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.13/kernel/sound/pci/snd-intel8x0.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.13/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.13/kernel/sound/pci/snd-intel8x0.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.13/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.13/kernel/sound/pci/snd-intel8x0.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.13/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.13/kernel/sound/pci/snd-intel8x0.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: WARNING: Error inserting snd_ac97_codec (/lib/modules/2.6.13/kernel/sound/pci/ac97/snd-ac97-codec.ko): Invalid module format
Jul 19 22:53:08 tank modprobe: FATAL: Error inserting snd_intel8x0 (/lib/modules/2.6.13/kernel/sound/pci/snd-intel8x0.ko): Invalid module format


So I figured I might need to run the alsa upgrade again. I was wrong. I got the same error.

checking dmesg got me this.

snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_intel8x0: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_intel8x0: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_intel8x0: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_intel8x0: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
snd_intel8x0: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'


I'm stuck since I used the exact same kernel and headers to compile the kernel as I had downloaded from slackware.

I tried google and only found one place saying the wrong headers where being used. But like I said, it worked fine untill I added smp support. However, on an upside I now have both cpu's.

I'm really confused, did I do something wrong?
Thanks

Jei-
 
Old 07-20-2006, 12:07 AM   #2
lockpicker
Member
 
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80

Rep: Reputation: 15
whats the hardware that you're using?
 
Old 07-20-2006, 04:10 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,657

Rep: Reputation: 210Reputation: 210Reputation: 210
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.

The reason is quite simple. The solution is more complicated. But first the reason.
Code:
snd_ac97_codec: version magic '2.6.13 486 gcc-3.3' should be '2.6.13 SMP 486 gcc-3.3'
Means that alsa was compiled for 2.6.13 kernel, 486 processor and using gcc 3.3. The kernel is the save version, but compiled in SMP mode. It won't work together, kernel and alsa must be in the same version.

In fact, it means you're probably compiling new alsa for old kernel. When compiling, alsa needs access for kernel headers. It found out '2.6.13 486 gcc-3.3'. Then you added SMP support. Alsa wasn't compiled/didn't look into the configuration again, so it keeps the old version.

In most cases, make clean on alsa and then new compilation should work.
 
Old 07-21-2006, 09:38 AM   #4
jei
LQ Newbie
 
Registered: Jul 2006
Posts: 29

Original Poster
Rep: Reputation: 16
Sorry its taken so long for me to get back.

The card is an Intel8x0 (AC 97 compatible) card.

I installed alsa from a package (tgz) downloaded from slackware.

So basically I need to download alsa drivers from source and re-compile?
I had no idea smp support would cause this problem. Just one more reason I love linux. Learn something new every day.

Thanks again for your replies.
 
Old 07-21-2006, 11:31 AM   #5
lockpicker
Member
 
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80

Rep: Reputation: 15
for ac97 support on slackware 10.2, you dont need to install alsa separately, the one that comes with the distro is just sufficient. the first time you may need to run "alsaconf" and follow the instructions. once done, adjust the settings using "alsamixer" and finally store the config using "alsactl store"
 
Old 07-21-2006, 03:10 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,657

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by jei
So basically I need to download alsa drivers from source and re-compile?
I had no idea smp support would cause this problem. Just one more reason I love linux. Learn something new every day.
Probably not, but it looks that you have not compiled all the needed sound modules. Please check it.
 
Old 07-21-2006, 10:45 PM   #7
jei
LQ Newbie
 
Registered: Jul 2006
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Mara
Probably not, but it looks that you have not compiled all the needed sound modules. Please check it.

WOW!!

I gotta say somehow I figured I was making it too difficult. Recompiled and made sure intel8x0 support was set, and what would you know. I did not check it. Everything is working great now.

Thanks a lot people. You ROCK.
 
Old 07-24-2006, 02:01 PM   #8
Anas_b
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Rep: Reputation: 0
whaaaaaaaat

please i`m newbie and i have the same problem tell me how you did it
 
Old 07-24-2006, 08:54 PM   #9
debiant
Member
 
Registered: Jul 2006
Distribution: Source Mage 0.9.6
Posts: 196

Rep: Reputation: 30
Quote:
Originally Posted by Anas_b
whaaaaaaaat

please i`m newbie and i have the same problem tell me how you did it
When s/he ran make menuconfig s/he failed to check support for her/his soundcard. If you don't understand this, then you probably do not have the same problem, just a problem with similar symptoms.
 
Old 07-25-2006, 09:23 AM   #10
jei
LQ Newbie
 
Registered: Jul 2006
Posts: 29

Original Poster
Rep: Reputation: 16
Are you trying to use the test26.s kernel? Or did you try to recompile your own?

If you are only using test26.s you will need to install kernel-modules from the /testing directory on the cd / dvd.

If you recompiled a 2.6 kernel, make sure you have checked the options in (I am guessing right now)
drivers >> sound >> alsa >> (Your sound drivers)

I also think the commands for compiling a 2.6 kernel from 2.4 are different as well. I used http://kernelnewbies.org/FAQ/KernelCompilation for doing my first compile.

After looking through more of the menuconfig options I now see that just about every problem I have had in the past when trying to recompile has been simply because I got in too big of a hurry and did not check my options first. Now that I got help here, and slowed down a bit. I have compiled at least a dozen new kernels for new installs and everything is working great.

Thanks again.

Jei ("he")
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tons of problems by kernel recompile halturata Linux - Newbie 6 11-30-2006 01:32 AM
Modules problems after kernel recompile (2.6.9) magoseitor Linux - Software 2 02-20-2005 12:12 AM
ALSA after kernel recompile Jeebizz Slackware 42 01-04-2005 02:41 PM
ALSA after kernel recompile (2.4.19) rlculver Linux - Hardware 10 09-11-2002 01:03 PM
RH 7.2 kernel 2.4.9-21 recompile problems bdj6020 Linux - Distributions 2 02-19-2002 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration