LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-29-2006, 01:07 AM   #1
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
Kernel patch with 2.6.16-1.2096_FC5


I need to add a patch to my kernel to enable better sound support for an ICH7 hda-intel card through alsa. https://bugzilla.redhat.com/bugzilla....cgi?id=182940 describes the bug involved with the kernel.

My question is, how exactly do I go about patching the kernel? After that, how do I recompile it?
 
Old 04-29-2006, 01:22 AM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Here's the fix to your problem as told on the bug report page:

Quote:
To fix this for FC5 stable you need to apply the alsa kernel patch from
3/22/2006 since this is 2.6.16 based. I am attaching what I have been
using on 2.6.16-1.2080_FC5 recompiled with 2.6.16.4. The 2.6.17 based
kernels would have this or a later version in already.
If I were you, I would goto kernel.org, download the latest kernel (2.6.17+), patch it, and then configure and compile yourself. According to the bug report that should fix the problem. Do you also need help doing compiling your kernel?
 
Old 04-29-2006, 01:24 AM   #3
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Well, I need help with actually patching the kernel, and recompiling it as well. I would like to keep my current kernel version, as well. From my understanding, all I need to do is apply the patch file to my current kernel.

Last edited by Amuro-Ray2020; 04-29-2006 at 01:25 AM.
 
Old 04-29-2006, 12:18 PM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
That is correct. But to apply the patch your going to have to recompile your kernel first. I would actually just recomend upgrading your kernel since your going to have to recompile anyway. You can use "make oldconfig" to keep all the settings from your previous kernel, and then streamline from there.

If you want to keep your current kernel version though. You'll need to find the sources for it. I assume you'll want the Fedora sources. Now that I think about it, Fedora probably has them still in /usr/source. Look and see, if so there are a million guides out there on how actually do the patching, configuring, and compiling.

Post back and tell us what you wana do, we'll help you from there!
 
Old 04-30-2006, 07:40 PM   #5
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Yeah, I've still got the sources in /usr/src/kernels, I believe. I haven't cleaned anything from when I updated the kernel from FC5's 2054 64 bit kernel using Yum. I could apply the patch to these sources, and then recompile them, could I not? This is what I'd prefer to do, anyway. I need to know how to do that, though.
 
Old 04-30-2006, 08:04 PM   #6
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Yes, you can do that. After you apply the patch, just run "make oldconfig" and then set any news options and then "make install install" and your set!
 
Old 04-30-2006, 09:24 PM   #7
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Okay, it would seem that I'm not doing this right, or I do not have the sources, like I thought I did. I did patch -p1 <patchfile>, and then I did make oldconfig, that went fine; created config.old. Then I did make install install, and I got the following:

[root@homeb0x 2.6.16-1.2096_FC5-x86_64]# make install install
sh /usr/src/kernels/2.6.16-1.2096_FC5-x86_64/arch/x86_64/boot/install.sh 2.6.16-1.2096_FC5 arch/x86_64/boot/bzImage System.map "/boot"
sh: /usr/src/kernels/2.6.16-1.2096_FC5-x86_64/arch/x86_64/boot/install.sh: No such file or directory
make[1]: *** [install] Error 127
make: *** [install] Error 2


Sorry if I'm missing something obvious, this is the first time I've done anything with the kernel itself. Thanks for your patience, in any case.
 
Old 04-30-2006, 10:48 PM   #8
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Did you run "make clean" before you patched the kernel?

I don't know what the install errors mean though. Did you follow a guide somewhere on how to do this? If not, post what steps you did, maybe you've missed something important, like the "make clean" I listed above.
 
Old 04-30-2006, 11:26 PM   #9
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Do you know where I could download the 2.6.16-1.2096_FC5 source code? From what I know (Not much, about kernels anyway) it should be in like a tar.gz file. Also, would it make much difference if I just used a 2.6.16.9 kernel on this distro? Would that cause any kind of application conflicts with anything I currently have installed, if it was for the 2096 FC5 kernel?
 
Old 05-01-2006, 12:20 AM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
There should be no conflicts if you used vanilla sources instead of the Fedora ones. I don't personally know where you could download the Fedora sources, you might find a repository somewhere if you google though. Your right, they'll come in a tar.gz file, or maybe a tar.bz or bz2.
 
Old 05-02-2006, 01:39 AM   #11
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Original Poster
Rep: Reputation: 15
Okay, got the kernel 2.6.16.12 up, but I applied the patch, and I'm still having volume problems with my card. I got good experience out of it though, so thanks for your help
 
Old 05-02-2006, 08:05 AM   #12
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Your welcome, and I'm glad your compiled your own kernel. Its a awsome experience.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mad wifi on FC5 2.6.16-1.2096_FC5 dehavik Linux - Hardware 19 05-07-2006 04:32 PM
ipw2200 and kernel 2.6.16-1.2096_FC5 marie@dk Linux - Wireless Networking 2 05-06-2006 08:55 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM

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

All times are GMT -5. The time now is 05:15 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