LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-09-2004, 11:01 AM   #1
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Sound lost after kernel compile


I had a go at compiling a new kernel.

It didn't work. So, booted into the OLD kernel.

Which works fine, right up until I try and play an MP3, and I notice there's no sound.

The syslog has the same messages repeated over and over that it can't locate the module:

Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-slot-0
Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-service-0-0
Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-slot-0
Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-service-0-0
Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-slot-0
Apr 9 15:49:31 Eeyore modprobe: modprobe: Can't locate module sound-service-0-0
Apr 9 15:53:04 Eeyore modprobe: modprobe: Can't locate module char-major-116

So.. how do I go about getting sound back?

And, for a bonus point, how do I get rid of the new (non-functioning) kernel and go back to just the original one? Simply overwriting vmlinuz with vmlinuz.old doesn't seem to work.

Any advice appreciated
 
Old 04-09-2004, 11:12 AM   #2
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
sounds like you've royally messed things up but it should be recoverable. I'd say the best thing to do is to persist with the new kernel and give up on the old one. If you follow the instructions from http://www.linuxquestions.org/questi...threadid=49035 in the future you should avoid getting into a mess again about not being able to go back to a working kernel. I'm guessing from what you said about just overwriting vmlinuz with vmlinuz.old you haven't done the same with System.map and System.map-old?
 
Old 04-09-2004, 11:13 AM   #3
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
a good way of getting the new kernel working is make oldconfig, it uses the config file from your old kernel as a basis so its more likely to work first time
 
Old 04-09-2004, 03:28 PM   #4
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
you can command exp:cd /src/kernelxxxx then xconfig and with with beautiful gui,you can configure or enable it whatsmore much things you can configure and administrate you kernel
good luck
 
Old 04-09-2004, 04:49 PM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
I DID follow the instructions from that guide... the whole process went just fine, the kernel just doesn't work. I obviously took out something I shouldn't have..

Wasn't sure about System.map but have now copied the old one over, thanks.

That just leaves me with no sound.. alsaconf says it can't find any PCI sound cards, even tho lspci finds it just fine. The sound card is built in to the motherboard, so it's not like it's going to get disconnected

Any ideas?
 
Old 04-09-2004, 05:47 PM   #6
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
sounds like you haven't compiled the driver needed for the soundcard into the kernel
 
Old 04-09-2004, 06:35 PM   #7
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
I too have a soundcard built into my mobo, alsaconf reports that there is none, but it seems that it still sees it, because when I change the volume with alsamixer it seems to work. Try just turning alsamixer up and see if it plays sound. If it doesn't, then you probably dont have the right drivers compiled into the kernel like dhbiker said. Post what type of motherboard you have.

--Hope this helps
 
Old 04-10-2004, 05:30 PM   #8
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
Alsamixer won't open - it complains about "No such device"

The thing I don't understand is that I'm using the original kernel - which used to work just fine.

MoBo is the Asus A7N8X Deluxe
 
Old 04-10-2004, 05:46 PM   #9
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
Because its complaing about not finding the modules, I assume its still looking in the dir of the other kernel. Try

depmod %your kernel number (e.x. 2.4.22)%

That should fix it.
 
Old 04-11-2004, 06:50 AM   #10
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
slackwarefan you are a legend! I've been complaining about loading modules from other kernels for a while now and no-one has been able to help me. does depmod work for 2.6.xx kernels as well? (I remember hearing something about them using a different system for module management or something)
 
Old 04-11-2004, 07:07 AM   #11
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
Nope, still no joy

lsmod lists "soundcore", used by 0 - that's all that's obviously to do with sound tho.

Is it possibly something to do with the drivers? The soundcard is an nVidia nForce, but in /etc/modules.conf it aliases "snd-card-0" to snd-intel8x0. While sound cards are (fairly obviously not my specialty, I find it hard to believe an nForce card on an athlon mobo uses intel...

I'm really baffled that lspci finds an audio controller just fine, but alsaconf insists there's no PCI sound detectable..
 
Old 04-11-2004, 08:01 AM   #12
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
yup, that's definitely the wrong module you've got there in your kernel, that is the driver for the intel boards (and SiS7012).

I think lspci just tells you that the soundcard is there properly, I don't think it tells you that you've got the correct drivers. You need to compile the correct module into the kernel and it should work
 
Old 04-11-2004, 12:12 PM   #13
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
Right. So, now that we know what to do to solve the sound card issue...

Any idea why I can't seem to compile a working kernel?

I've used the guide from this forum, and, although no error messages popped up, the kernel doesn't work. I've tried over-writing the new kernel & system.map with the original, working old one - doesn't work.

I've tried using "make oldconfig" to make a new kernel with all the settings of the original. It STILL doesn't work - it gets to the "checking BIOS" bit right after LILO, then when I expect it to change to the booting screen with the Tux icon in the top corner, the screen just goes blank and that's it.

What am I doing wrong?? I get no error messages in the whole recompile process, I just can't get a working kernel at the end of it. I'm still having to boot via Linux.old!

As soon as I can figure out how I compile a working kernel, maybe I have a chance of configuring the right modules into it. Right now, I'm lost...

*edit* A look-around in the menuconfig shows the preferences aren't the original ones, even after oldconfig - if I replace the .config file with the one that came with the original Slackware install, would it allow me to recompile the original kernel? If so, where do I find a copy of said file?

Last edited by oneandoneis2; 04-11-2004 at 01:06 PM.
 
Old 04-11-2004, 01:55 PM   #14
nnsg
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1/10.1, Mandrake 9.1/10.1
Posts: 75

Rep: Reputation: 15
Talking

Hi there

Are you trying to upgrade from kernel 2.4.x to 2.6.x? Anyway....

Once I had this problem too (sound card didn't work after upgraded to 2.6.x), here's how I solved it:

1. Make sure you selected the correct sound driver when compiling your new kernel.

2. Upgrade alsa-lib and alsa-utils as well. You can download them from http://www.alsa-project.org/. (for my case, alsaconf reported there's no sound card because I didn't upgrade these two package)

3. run alsaconf to auto-config your sound card.

4. (if you are upgrade from 2.4.x to 2.6) run "generate-modprobe.conf > /etc/modprobe.conf" as root to update the modprobe.conf file.

5. Run "modprobe <you_snd_card_module>" to see if it works or not.

6. (if 5. success) Run "alsamixer" and "alsactl store" to store your mixer setting.

That's how I (a newbie) fix my sound problem... (google is your best friend) hope this can help.
 
Old 04-11-2004, 03:50 PM   #15
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
if this works I could run down the wire and give you a big kiss
 
  


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
lost all sound after compiling kernel 2.6.11 TimmyP Linux - Software 2 04-04-2005 03:55 PM
lost scroll wheel after kernel compile BeatRyder Linux - Software 3 11-12-2004 09:59 PM
ALSA lost after 2 kernel compile Krenn Slackware 2 07-20-2004 09:35 PM
lost sound after kernel reconfig rgarman Linux - Laptop and Netbook 3 05-18-2004 01:13 PM
Lost sound after updating to kernel 2.6.0.1 Eric_Z Mandriva 25 05-16-2004 04:18 AM

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

All times are GMT -5. The time now is 08:51 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
Open Source Consulting | Domain Registration