LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Home Forums HCL Reviews 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, 10: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, 10:47 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
What sort of patch? A version upgrade patch or some sort of third party patch to add additional functionality?
 
Old 04-04-2007, 11: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 12:53 PM.
 
Old 04-04-2007, 01:06 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
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 03:29 AM
what is a linux kernel patch for? mandana Linux - Newbie 6 08-05-2005 03:56 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
updating the linux kernel with a patch? behmjoe Linux - General 5 04-22-2005 10:29 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM

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

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