LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to apply kernel patch and customise? (https://www.linuxquestions.org/questions/linux-software-2/how-to-apply-kernel-patch-and-customise-258378/)

subaruwrx 11-23-2004 10:19 AM

How to apply kernel patch and customise?
 
How do you apply kernel patch downloaded from kernel.org?

Also, say I got my own driver, how do I "integrate" it into my new kernel and compile it?

Thanx

foo_bar_foo 11-23-2004 11:33 AM

http://linuxheadquarters.com/howto/t...nelpatch.shtml
tutorial assumes current kernel source is in /usr/src/linux
never delete or move the kernel build directory after installation
after you install the new kernel and it's running build and install the driver

winsnomore 11-23-2004 11:38 AM

look at the man pages for patch ..

You have to build modules .. there are instructions for it in each distro .. generally same.
Download any "sources" and read in it. Buidling modules is bit more involved than building kernel !! it's backwards
but that's the way it is.

subaruwrx 11-26-2004 10:57 PM

thanx how about loading a driver into the kernel and build it? Is it possible?

Does all driver comes with the filename *.ko ?

subaruwrx 12-03-2004 11:43 PM

bump

subaruwrx 12-30-2004 10:48 AM

Quote:

Originally posted by subaruwrx
thanx how about loading a driver into the kernel and build it? Is it possible?

Does all driver comes with the filename *.ko ?

bump

Another question, I tried to apply the patch but encounter error.

Quote:

debian:/usr/src/linux# patch -pl < patch-2.6.10
patch: **** strip count l is not a number
debian:/usr/src/linux#

joel112 12-30-2004 11:50 AM

not sure but are you using -pl or -p1 (one) dunno if its a dodgy font but it looks like an l to me

Joel

subaruwrx 12-30-2004 09:40 PM

Quote:

Originally posted by joel112
not sure but are you using -pl or -p1 (one) dunno if its a dodgy font but it looks like an l to me

Joel

Alright, I was also "misleaded" by the font in the webby I followed. Tried -pl (one) and it works :)


All times are GMT -5. The time now is 09:13 PM.