LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-10-2006, 10:53 AM   #1
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Rep: Reputation: 15
help patching a kernel


This is my first attempt at patching a kernel. I am running 2.6.14-1.1656_FC4smp and I need to patch the kernel to run my via6410 controller. I have downloaded the .patch file, but I do not know how to use it. Do I have to rebuild the kernel, or can I apply it without rebuilding? Thanks in advance.
 
Old 01-10-2006, 11:52 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, you need to have the source for the kernel available. It is not recommended to patch a Fedora kernel source also. You should download the current vanilla 2.5.15 kernel source from kernel.org to patch then build.

If you are not familiar with patching and building your own kernel then please read and review (yes, read it as many times as is needed for you to understand); http://www.digitalhermit.com/linux/K...ild-HOWTO.html

The basic (for Red Hat based systems ) steps are;

1. download and extract the kernel source

2. copy the /boot/config-2.6.14-1.1656 (??) file to the /usr/src/linux-2.6.15 directory as .config

3. patch the kernel source according to the guide from the URL

make xconfig
make
make modules_install
make install

This does differ from the guide, but does work for Red Hat based systems.

If at first you do not compile a working kernel then try again, many have failed a few times when first reaching this milestone.
 
Old 01-10-2006, 12:22 PM   #3
gfem
Member
 
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
thanks I will give it a try
 
  


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
Patching the kernel MTT1k Linux - Newbie 6 09-15-2005 05:42 AM
patching kernel paulr1984 Linux - Newbie 3 04-05-2005 10:57 PM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM
patching kernel paulr1984 Linux - Software 1 07-07-2004 10:32 PM
patching kernel 2.6.0 - 2.6.1 powadha Slackware 5 01-16-2004 01:18 PM

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

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