LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-02-2004, 01:35 PM   #1
the_rydster
Member
 
Registered: Nov 2003
Location: UK mostly.
Distribution: Slackware 9.1
Posts: 103

Rep: Reputation: 15
ALSA problem after compiling kernel.


Trying to do a custom configuration on the 2.4.24 kernel. With the stock kernel all my sound was fine.

As far as I can tell I have done everything needed on menuconfig.

I have sound as a module and I have the right driver as a module.

I think I must be missing something. Do I have to recompile ALSA or something.

I have no /proc/asound or whatever it is called. Any ideas?
 
Old 03-02-2004, 04:03 PM   #2
c0rderr0y
Member
 
Registered: Feb 2004
Distribution: Kubuntu
Posts: 71

Rep: Reputation: 15
i think you might have to make some manual changes in the modulesprob.config file... i installed alsa seperatly when i compiled 2.6.3
 
Old 03-02-2004, 05:22 PM   #3
the_rydster
Member
 
Registered: Nov 2003
Location: UK mostly.
Distribution: Slackware 9.1
Posts: 103

Original Poster
Rep: Reputation: 15
I would like to know how you installed Alsa.

At the moment my /etc/modules.conf is blank and I have no /proc/asound.

I have not installed the modules package for 2.4.24, I just have the ones for 2.4.22. Can't seem to get the definative view about the necessity of upgrading the modules also.

Cheers
 
Old 03-02-2004, 06:47 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
you do need to upgrade the modules if you are switching from one version of a kernel to another.
 
Old 03-03-2004, 04:32 AM   #5
deb75
LQ Newbie
 
Registered: Mar 2004
Location: Versailles
Distribution: slackware 9.1
Posts: 17

Rep: Reputation: 0
Hello,

I currently use the slackware 9.1 and I had this pb too when I recompiled the 2.4.22 kernel

in practice if alsa was working before, after recompilation you need to reinstall alsa drivers
which are available in the install CD,
 
Old 03-03-2004, 12:57 PM   #6
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
Even if you rebuild a kernel and stay at the same version(you rebuild the 2.4.24 kernel for kicks) you will need to recompile the alsa-drivers and reinstall them. Reinstalling from CD won't work because those were built for the kernel on the CD not your custom kernel. This is a simple process. Here is what I did.

1. Compiled my new kernel and rebooted using that kernel
2. Download the alsa-driver directory from patches/source from a Slackware mirror. I used ftp://sunsite.cnlab-switch.ch/mirror...atches/source.
3. cd into the alsa-driver directory that you just downloaded
4. Edit the file alsa-driver.SlackBuild. Look for the line KVERSION=2.4.24 and change it to KVERSION=$(uname -r)
5. At the command line type sh alsa-driver.SlackBuild
6. Step five creates a new alsa-driver....tgz file in /tmp. Go to temp and do an upgradepkg --reinstall alsa-driver...tgz

That will put the sound drivers in your current kernel directory. All should be well the next time your restart. Also don't forget to issue a /sbin/lilo when you recompile a kernel. I've recompiled and didn't do that and I ended up with no modules being loaded on a reboot.
 
Old 03-04-2004, 04:28 AM   #7
deb75
LQ Newbie
 
Registered: Mar 2004
Location: Versailles
Distribution: slackware 9.1
Posts: 17

Rep: Reputation: 0
hello flyfishin,

and thanks about adding a few light about the problem

> Reinstalling from CD won't work because those
> were built for the kernel on the CD not your custom kernel.

In fact I did this, and believe me it worked ... once, I mean I recompiled the original kernel
by changing very few options and then simply reinstall alsa driver from CD install,
but then I went on doing other changes and recompilation, and when installing alsa driver and doing 'depmod -a' I had plenty of 'unresolved symbols'

>2. Download the alsa-driver directory from patches/source from a Slackware mirror. I used >ftp://sunsite.cnlab-switch.ch/mirro...patches/source.
>3. cd into the alsa-driver directory that you just downloaded
>4. Edit the file alsa-driver.SlackBuild. Look for the line KVERSION=2.4.24 and change it to >KVERSION=$(uname -r)
>5. At the command line type sh alsa-driver.SlackBuild
>6. Step five creates a new alsa-driver....tgz file in /tmp. Go to temp and do an upgradepkg ->-reinstall alsa-driver...tgz

is it necessary to reinstall alsa-lib or alsa-utils too ? is it possible to reinstall alsa from
the original alsa web site , or is it better to do like you advice ?
 
Old 03-04-2004, 06:19 AM   #8
schurt
Member
 
Registered: Nov 2003
Location: raleigh, nc
Distribution: fedora, arch
Posts: 78

Rep: Reputation: 15
just download the latest alsa files, recompile and install.. you could also try running /sbin/alsaconf to see if it detects your soundcard then it will install the proper config files to get it running
 
Old 03-04-2004, 06:33 AM   #9
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
It wasn't the reinstall of alsa-drivers that did the trick for you. Reinstalling the alsa-drivers puts them under the same /lib/modules/kernelversion directory as they were originally and they are compiled for that kernel. It was the depmod -a that set things up for you. If you look at the depmod man page there is this:

"It is also possible to create the dependency file immediately after
compiling a new kernel. If you do "depmod -a 2.2.99" when you have
compiled kernel 2.2.99 and its modules the first time, while still run-
ning e.g. 2.2.98, the file will be created in the correct place. In
this case however, the dependencies on the kernel will not be guaran-
teed to be correct. See the options -F, -C and -b above for more
information on handling this"

Also, there is one kernel option you can set that will allow you to reuse kernel modules across different kernel versions. If you go into the "Loadable module support" section after running make menuconfig there is an option "Set version information on all module symbols". Setting that will allow you to reuse kernel modules when you recompile the kernel. However, as quatsch mentioned, you really should recompile the modules for your kernel.

I did not reinstall alsa-lib or alsa-utils since they are not kernel dependent. At least not as far as my quick glance showed. You can get alsa from their website. I simply took the Slackware builds of alsa-drivers since it was such a simple process and it installs everything where you would need it to go on a build of Slackware.

Also, a lot of these ideas I've seen in other posts, either on this site or some other. If I could remember where I found the posts I'd give those people credit.
 
  


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
Alsa problem in kernel 2.6 sirdreis Debian 2 08-17-2005 09:27 PM
ALSA-Problem with kernel 2.6.11.12 zorolowski Slackware 4 07-08-2005 12:18 PM
problem compiling alsa-lib 1.0.8 red_erik Linux - Software 1 01-31-2005 01:43 PM
ALSA in FC 2 Kernel 2.6.8-1.358 Problem satria Linux - Newbie 3 10-14-2004 06:37 AM
ALSA after re-compiling kernel wmeler Linux - Hardware 3 02-26-2004 09:28 AM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration