LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   HowTo patch this patch on 2.6 kernel (https://www.linuxquestions.org/questions/linux-kernel-70/howto-patch-this-patch-on-2-6-kernel-579250/)

kushalkoolwal 08-23-2007 11:54 AM

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

aus9 08-24-2007 05:53 AM

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

kushalkoolwal 08-24-2007 11:41 AM

Quote:

Originally Posted by aus9 (Post 2868977)
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?

syg00 08-24-2007 12:01 PM

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.


All times are GMT -5. The time now is 11:01 PM.