LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-23-2007, 11:54 AM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
HowTo patch this patch on 2.6 kernel


Hi Guys,

I am using Kernel 2.6.20 on my Debian system. I found this patch for my hardware's frame buffer support:
http://geode.insideo.net/info-linux_.../msg00689.html

I would like to apply this patch to my kernel. I tried doing that but it failed. What I did was:
Code:
cd /usr/src/linux-source-2.6.20/drivers
patch -p1 < ../../patches/geode_lx.patch
and it said could not find the file to patch.

What did I missed?

Thanks
 
Old 08-24-2007, 05:53 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
lets pretend you have a directory folder like this

/usr/src/linux-version number

install the decompressed (extracted) patch to this uppper level so that you have
/u/s/lin/patch driver


patch -p1 < patch (driver)

if you have bash completion installed, when you type patch driver...type pa (and press the tab key and it should autocomplete the balance of the driver patch name)

then re-compile and test pls

Last edited by aus9; 08-24-2007 at 05:55 AM.
 
Old 08-24-2007, 11:41 AM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by aus9 View Post
lets pretend you have a directory folder like this

/usr/src/linux-version number

install the decompressed (extracted) patch to this uppper level so that you have
/u/s/lin/patch driver


patch -p1 < patch (driver)

if you have bash completion installed, when you type patch driver...type pa (and press the tab key and it should autocomplete the balance of the driver patch name)

then re-compile and test pls

Actually I had tried what you suggested before posting and I got error message.

Looking at the patch can we tell what kernel version will be required to be downloaded?
 
Old 08-24-2007, 12:01 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,236

Rep: Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150Reputation: 4150
You need to do it from one level higher.
Looking at the date of that mail, I'd say it's for 2.6.22 - hence the .22 reference.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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
howto patch kernel? silversky Slackware 3 04-22-2004 02:41 PM
HowTo patch a kernel? busbarn Linux - General 2 03-04-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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