LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2005, 11:31 AM   #1
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
slack 10 default kernel (2.4.26) and alsa problem


I recompiled my default kernel, but in order to be able to boot with the old kernel and not to have problem with the old kernel modules i added an -1 in the extraversion field of the Makefile.
So now the old kernel is 2.4.26 and the new one is 2.4.26-1
The old kernel modules are placed in /lib/modules/2.4.26 and the new are in /lib/modules/2.4.26-1.
My problem is that the 2.4 kernel series do not have ALSA in the source, and the alsa module are in /lib/modules/2.4.26/kernel/sound.
I tries to link this to my new directory but the kernel does not see the modules. Do i have to recompile alsa, and what about all the files that will be in common. Is there a way to just add those files:
/lib/modules/2.4.26/kernel/sound/i2c
/lib/modules/2.4.26/kernel/sound/i2c/other
/lib/modules/2.4.26/kernel/sound/i2c/other/snd-tea575x-tuner.o.gz
/lib/modules/2.4.26/kernel/sound/i2c/other/snd-ak4117.o.gz
/lib/modules/2.4.26/kernel/sound/i2c/other/snd-ak4xxx-adda.o.gz
/lib/modules/2.4.26/kernel/sound/i2c/snd-cs8427.o.gz
/lib/modules/2.4.26/kernel/sound/i2c/snd-tea6330t.o.gz
/lib/modules/2.4.26/kernel/sound/i2c/snd-i2c.o.gz
/lib/modules/2.4.26/kernel/sound/isa
/lib/modules/2.4.26/kernel/sound/isa/sb
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb8.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-es968.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sbawe.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb16.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb-common.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb16-dsp.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-emu8000-synth.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb8-dsp.o.gz
/lib/modules/2.4.26/kernel/sound/isa/sb/snd-sb16-csp.o.gz
/lib/modules/2.4.26/kernel/sound/isa/gus
/lib/modules/2.4.26/kernel/sound/isa/gus/snd-gusclassic.o.gz
/lib/modules/2.4.26/kernel/sound/isa/gus/snd-interwave.o.gz
/lib/modules/2.4.26/kernel/sound/isa/gus/snd-gusextreme.o.gz
/lib/modules/2.4.26/kernel/sound/isa/gus/snd-interwave-stb.o.gz
/lib/modules/2.4.26/kernel/sound/isa/gus/snd-gus-synth.o.gz
...............................................................................................
................................................................................................
/lib/modules/2.4.26/kernel/sound/support
/lib/modules/2.4.26/kernel/sound/support/pnp
/lib/modules/2.4.26/kernel/sound/support/pnp/snd-pnp.o.gz
/lib/modules/2.4.26/kernel/sound/pcmcia
/lib/modules/2.4.26/kernel/sound/pcmcia/vx
/lib/modules/2.4.26/kernel/sound/pcmcia/vx/snd-vx-cs.o.gz
/lib/modules/2.4.26/kernel/sound/pcmcia/vx/snd-vxp440.o.gz
/lib/modules/2.4.26/kernel/sound/pcmcia/vx/snd-vxpocket.o.gz
/lib/modules/2.4.26/kernel/sound/pcmcia/pdaudiocf
/lib/modules/2.4.26/kernel/sound/pcmcia/pdaudiocf/snd-pdaudiocf.o.gz

in my new kernel?
 
Old 01-28-2005, 11:45 AM   #2
linuxLuser
Member
 
Registered: Jan 2005
Distribution: Gentoo
Posts: 111

Rep: Reputation: 16
You're probably not going to be able to just force a module compiled for one kernel into a different kernel...yes, they are different. I believe that they have some "meta-info" in them that tells them what kernel they can attach to.
The best thing for you to do is to download the latest ALSA drivers and just install ALSA that way. That's probably how they did it with the original kernel anyway.

alsa-driver-1.0.8rc2.tar.bz2

I use the 2.6 generation kernel and so have always just used the kernel-source ALSA drivers. I wouldn't know how to install the modules from the alsa-project.org site but I don't think it's very difficult.

-- the dudeman
 
Old 01-28-2005, 11:45 AM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Why not install alsa-driver from sources ?
http://ftp.scarlet.be/pub/slackware/...l/alsa-driver/

Change KVERSION in alsa-driver.SlackBuild to 2.4.26-1
 
Old 01-28-2005, 02:50 PM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Original Poster
Rep: Reputation: 52
Quote:
Why not install alsa-driver from sources ?
http://ftp.scarlet.be/pub/slackware.../l/alsa-driver/

Change KVERSION in alsa-driver.SlackBuild to 2.4.26-1
This worked. I used the source from the fourth slack 10 CD instead of this, because i was afraid that installing the newer driver might break the dependencies with the other alsa packages, and it worked.

Then I had a problem with nvidia. Every time i installed it for the one kernel, the installer would uninstall the previous installed driver including the module for the other kernel. I tried duplicating the source, reruning the .config and make dep for every kernel, but the installer insisted on this. I did not manage to install only the module (all the libraries of the driver besides the module are precompiled anyway). I managed to fix this by installing the the driver for the first kernel, then boot with the other kernel, move the hole modules directory of the first kernel to another directory, and reinstall the driver, so that the uninstall process of the nvidia installer wouldn't touch my precious nvidia.o module.
It was my first kernel compilation and it was pretty adventurous.
Thank you both for your help.
 
Old 01-28-2005, 05:51 PM   #5
linuxLuser
Member
 
Registered: Jan 2005
Distribution: Gentoo
Posts: 111

Rep: Reputation: 16
Wow, that is pretty adventurous!

Maybe you deserve "The Golden Penguin" award :-)
 
  


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
slack 10.2 default 2.4 kernel and Ram limits ? mortal Slackware 2 11-16-2005 10:26 PM
Slack 10, kernel 2.6.7, SB Live Value+ALSA, causing rosegarden headaches SocialEngineer Linux - Software 11 04-14-2005 02:32 PM
DWL-122 interface not found Slack 10 default kernel verdeboy2k Linux - Hardware 0 04-09-2005 04:05 AM
Slack 10, kernel 2.6.7, alsa (1.0.7) SocialEngineer Linux - Hardware 6 01-06-2005 08:04 PM
ALSA and kernel 2.6.0 on Slack 9.1 Ninja_212 Slackware 4 01-13-2004 11:43 PM


All times are GMT -5. The time now is 05:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration