LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2004, 07:54 AM   #1
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Concerning ALSA and recompiled kernel


I was running -current and figured I'd like to get a 2.4.25 kernel, so I got the source from kernel.org and went on to compile. To test things a bit I used the .config from kernel-ide-2.4.24, and only changed a few things (P4 architecture, highmem support, and stuff like that). I didn't bother to remove all unneeded modules - I'll strip the kernel soon enough.

Anyway; after the reboot, ALSA was lost (as I expected). Previously I've been able to remedy this simply by reinstalling ALSA (just installpkg). This time, however, that didn't work. Very odd; alsaconf failed to find any of my soundcards, and alsamixer didn't even run (alsamixer: function snd_ctl_open failed for default: No such file or directory). Seems like the modules just weren't there. To get ALSA up and running again I compiled it from source, and now everything seems to work just the way it should.

I just wonder what happened? How come reinstalling the ALSA packages didn't solve the problem? I really like my system, but somehow Slackware 9.1 feels a bit obscure compared to, say, 8.1. By no means I consider myself a Linux expert, but usually I can figure out why certain problems arise and how to solve them...but this one has me stumped. Anyone care to enlighten me?

Last edited by nvn; 02-25-2004 at 07:55 AM.
 
Old 02-25-2004, 08:06 AM   #2
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
Nice signature.
 
Old 02-25-2004, 08:10 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
re-compile the kernel with sound support built in, and all the alsa packages built as modules............
 
Old 02-25-2004, 08:32 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Are you running the latest alsa-driver, 1.0.2c-i486-2.tgz? Before I updated, the stock 2.4.25 kernel did not detect my SB Live.
 
Old 02-25-2004, 09:41 AM   #5
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Kovacs
Nice signature.
Isn't it?

Quote:
Originally posted by 320mb
re-compile the kernel with sound support built in, and all the alsa packages built as modules............
This is kinda the strange thing. I didn't change anything in the sound configuration of the kernel - I left it just the way it was in the kernel-ide-2.4.24 .config (a so to speak "official" configuration), with which ALSA worked flawlessly. If it works with a .config in 2.4.24, shouldn't it work with the same .config in 2.4.25?

Quote:
Originally posted by davidsrsb
Are you running the latest alsa-driver, 1.0.2c-i486-2.tgz? Before I updated, the stock 2.4.25 kernel did not detect my SB Live.
Yes, I was using that and the other ALSA packages from -current, and there were no problems at all when running 2.4.24. For some reason they didn't work at all after I compiled the 2.4.25. Since compiling ALSA from source solved the problem, one can probably conclude that there's nothing wrong with the kernel configuration (and there shouldn't be ). And since the ALSA packages worked with 2.4.24, there shouldn't be anything wrong with those either. Very odd indeed. Feels like stuff is happening behind my back.


Thanks for the replies, guys.
 
Old 02-25-2004, 05:51 PM   #6
marcelocp
LQ Newbie
 
Registered: Aug 2003
Location: Sao Paulo, Brazil
Distribution: Slackware 9.0 w/ custom 2.4.29 kernel
Posts: 14

Rep: Reputation: 0
This is likely to be because the alsa packega that you tried to install contains kernel modules for your old kernel version, not for 2.4.25

Kernel modules are almost always version-dependent. If you take a look at /lib/modules you might have two directorie, one for the older version, the other for 2.4.25. When you boot 2.4.25, the modules are searched inside that directory.

When I last upgraded my kernel from 2.4.22 to 2.4.24, I even tried copying the alsa modules from the 2.4.22 to the 2.4.24 dir, but that did not work either exactly because of the internal version mismatch between modules and kernel.

Just my 2 cents.
 
Old 02-25-2004, 06:27 PM   #7
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Original Poster
Rep: Reputation: 30
Ah...sounds likely. On closer inspection of my kernel configuration, it seems that I left the "Set version information on all module symbols" in the "Loadable module support" section at "no". I guess saying "yes" to this option would have spared me some confusion? Oh well. Thanks for replying, I'll go rtfm a bit on this.
 
  


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
kernel recompiled?? a little confused uvone Slackware 4 06-23-2004 10:58 AM
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 01:00 PM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 09:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 02:36 AM
Recompiled my kernel, don't know if modules are there... TheOneAndOnlySM Linux - Newbie 3 08-11-2003 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:09 AM.

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