LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-18-2003, 11:17 PM   #1
LarryNY1
Member
 
Registered: Mar 2003
Location: Long Island, New York
Distribution: RedHat Linux 8.0 kernel 2.4.18-26.8.0
Posts: 36

Rep: Reputation: 15
RHL Kernel Updates


I finally got my sound working with great help from you guys (thanks) and RHL update agent tells me I need to update the kernel to 2.4.18-27.8.0 so I do it and now have no sound again. Is this something normal everything you update the kernel or do I have a problem ? I find it hard to believe that every time I update something it affects the whole system.

Thanks,
Larry
 
Old 03-18-2003, 11:35 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Re: RHL Kernel Updates

Quote:
Originally posted by LarryNY1
I finally got my sound working with great help from you guys (thanks) and RHL update agent tells me I need to update the kernel to 2.4.18-27.8.0 so I do it and now have no sound again. Is this something normal everything you update the kernel or do I have a problem ? I find it hard to believe that every time I update something it affects the whole system.
Well, the kernel is that little `something' that basically is the whole system. Actually the only thing that's broken is the sound, right?

How did you enable sound? Using the stock sound drivers? Or something else, i.e., ALSA? I'm guessing that you're running the ALSA drivers and the answer is ``yes'', you need to build the drivers again. The modules that you built for the previous version of the kernel are sitting out in a subdirectory under /lib/modules that corresponds to the old kernel (2.4.18-26 ??) . You need to boot the new kernel and go through the

./configure <options> && make && make install

process again. Of course, if you're using the sound drivers as supplied on the RH CDs then you've got a different problem.

If you're using a video card for which the vendor's supplied any device drivers you'd have to reinstall those as well.
 
Old 03-19-2003, 12:04 AM   #3
LarryNY1
Member
 
Registered: Mar 2003
Location: Long Island, New York
Distribution: RedHat Linux 8.0 kernel 2.4.18-26.8.0
Posts: 36

Original Poster
Rep: Reputation: 15
Hey (thanks)

Yes I downloaded the ALSA driver from my embedded sound card manafactures web site RealTek. Went through the whole ./configure, make install, ./snddevices and added the text to my modules.conf. and it all worked with kernel 2.4.18-26.8.0 then I got that wonderful email stating I need to update the kernel.

So what your telling me is every time I update the kernel I have to do this? geeesh seems to me last time I updated W2K to SP3 I didn't have to reload all the device drivers.

What gives?

Larry
 
Old 03-19-2003, 12:30 AM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally posted by LarryNY1
So what your telling me is every time I update the kernel I have to do this? geeesh seems to me last time I updated W2K to SP3 I didn't have to reload all the device drivers.
For now I'm afraid that's the case. (Aside: I do recall hearing the Windows admins at work grumbling a few years ago about having to reload a bunch of stuff -- maybe even several times -- during the course of a particularly nasty NT patch kit installation.) The ALSA drivers aren't (obviously) part of the kernel so you have to rebuild them if you change the kernel. They are being incorporated into the 2.5/2.6 kernel so this need to rebuild separately will go away when the 2.6 kernels come out. As I think I mentioned earlier, the need to rebuild is to recreate those drivers in the kernel-specific modules subdirectory. I'm not currently aware of a way to share modules amongst different kernels on the system.

You don't normally get emails telling you about problems like the one that this latest kernel release was going to fix (this was the ptrace flaw I think) so you may not have to switch to each and every kernel that's pushed out the door. So I wouldn't worry about this being something that you'll be doing frequently. If it gets to where you're not getting any work done because of all the updates, turn it off. Escape the tyranny of the flashing exclamation point! :-)
 
Old 03-19-2003, 01:26 AM   #5
LarryNY1
Member
 
Registered: Mar 2003
Location: Long Island, New York
Distribution: RedHat Linux 8.0 kernel 2.4.18-26.8.0
Posts: 36

Original Poster
Rep: Reputation: 15
Hey thanks again

I did have to recompile again, but it would not work till trashed the ALSA directory. Then I unzipped it again and did the ./configure, make install, and ./snddevices again and got the sound back.

The modules.conf I didn't have to add again, the update seemed to add the correct text from my old modules.conf go figure anyway the sound is working again, just one question why so many kernels on my grub bootloader?

Thanks,
Larry
 
Old 03-19-2003, 09:44 AM   #6
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Every time you add a new kernel the Grub Boot Loader for Redhat will add it to the menu, this way if there is a problem you can always go back. To get rid of these you will have to edit /boot/grub.conf.

Be Careful not to delete the wrong kernel however!!!!!!

Good Idea to back up the file and ensure you have a boot floppy just in case.

This will get rid of the Kernels being listed.

On another point if you check the /lib/modules directory you will see that you have every kernel there you have ever updated or installed.
 
Old 03-19-2003, 10:16 AM   #7
LarryNY1
Member
 
Registered: Mar 2003
Location: Long Island, New York
Distribution: RedHat Linux 8.0 kernel 2.4.18-26.8.0
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks I kinda figured thats what the other listings where for. If all is working with the new kernels is there a way to remove tthe old kernels from the system as well as the bootloader?

Larry
 
Old 03-19-2003, 01:05 PM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally posted by LarryNY1
Hey thanks again

I did have to recompile again, but it would not work till trashed the ALSA directory. Then I unzipped it again and did the ...
Well, that's one way to do it. If memory serves, ALSA can be cleaned out with ``make clean'' but clobbering the directory tree and untarring works too.

Quote:
just one question why so many kernels on my grub bootloader?
Have you been compiling the kernel a lot and creating new variations on the kernel names (using the EXTRAVERSION variable in the kernel Makefile)? I'm using lilo (so I can't help out too much in the grub area... sorry) and I had numerous entries added to the boot menu when I was experimenting with some kernel features.

Do you see a lot of subdirectories under /lib/modules as well?
 
Old 03-19-2003, 05:39 PM   #9
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
When I get home tonight after work, I will try to remove one of the old kernel directories and see what happens, my curiosity has been peaked, I'll let you know what happens !! : )
 
Old 03-20-2003, 02:21 AM   #10
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
Well so far there have been no problems, however to be on the safe side I moved the kernel directory to the trash, makes it easier to put back if something goes wrong.
 
Old 03-20-2003, 11:30 AM   #11
tktim
Member
 
Registered: Mar 2003
Location: USA-Los Angeles, California
Distribution: Fedora 15
Posts: 119

Rep: Reputation: 16
If I'm understanding everyone as long as I use "stock" drivers that came with RH 8, I can continue to up date the kernel without having to reinstall anything. I've been using the RH Network to update the Kernel, and various other things like KDE, GNOME, etc. The RHN does everything, but I'm not sure if it deletes the old stuff. I just click update and it download and installs the items. It tell me that everything was successfully installed.
 
Old 03-20-2003, 05:57 PM   #12
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally posted by tktim
If I'm understanding everyone as long as I use "stock" drivers that came with RH 8, I can continue to up date the kernel without having to reinstall anything.
Those kernel upgrades should contain all the ``stock'' drivers (look in /usr/src/linux-*/drivers) so yes, you should be okay. As long as all of those drivers work for your particular hardware setup, that is.
 
Old 03-21-2003, 05:24 PM   #13
tktim
Member
 
Registered: Mar 2003
Location: USA-Los Angeles, California
Distribution: Fedora 15
Posts: 119

Rep: Reputation: 16
Got it, Thanks!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The Version Game: RHL 9, 2.4.20-6 vs 2.4.21-4 for a Kernel Build solarblast Linux - General 2 03-23-2005 08:26 AM
Updates with kernel... cmgannon26 Slackware 2 10-01-2004 02:55 PM
RHL 6.2 compat libs for RHL 9? cw3bst3r Programming 0 01-30-2004 09:41 AM
kernel updates? FLOODS Mandriva 3 10-05-2003 01:11 PM
Kernel Rebuild Command in RHL 9 neo666 Linux - Software 4 07-09-2003 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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