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

Notices


Reply
  Search this Thread
Old 04-04-2007, 09:13 AM   #1
hughes28105
LQ Newbie
 
Registered: Jan 2005
Distribution: ubuntu feisty 7.04
Posts: 26

Rep: Reputation: 15
Question instructions on how to patch the linux kernel


I having trouble patching the linux kernel. is there any instructions for patching the kernel.

kernel version 2.6.20-13
 
Old 04-04-2007, 09:47 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What sort of patch? A version upgrade patch or some sort of third party patch to add additional functionality?
 
Old 04-04-2007, 10:08 AM   #3
hughes28105
LQ Newbie
 
Registered: Jan 2005
Distribution: ubuntu feisty 7.04
Posts: 26

Original Poster
Rep: Reputation: 15
the broadcom 4311 patch bcm43xx-2.6.20_combined.patch for kernel 2.6.20 I am trying to get the throught the broadcom driver that already in the kernel to work.

Last edited by hughes28105; 04-04-2007 at 11:53 AM.
 
Old 04-04-2007, 12:06 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Put the patch and the kernel source tree in the same directory. For example, put both in /home/hughes28105. Enter the top of the kernel source tree which would be linux-2.6 in your case. Apply the patch with the patch command. For example
Code:
patch -Np1 -i ../bcm43xx-2.6.20_combined.patch
Continue with the kernel compilation as normal.

The p1 portion of the command tells patch how many leading components to strip from the file name. You would have to look at the header in the patch file determine the correct p# to pass. If the file name begins with linux-2.6/, then 1 is the correct number.
 
  


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
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
what is a linux kernel patch for? mandana Linux - Newbie 6 08-05-2005 02:56 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
updating the linux kernel with a patch? behmjoe Linux - General 5 04-22-2005 09:29 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 > Ubuntu

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