LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-23-2004, 10:19 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
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
 
Old 11-23-2004, 11:33 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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
 
Old 11-23-2004, 11:38 AM   #3
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
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.
 
Old 11-26-2004, 10:57 PM   #4
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
thanx how about loading a driver into the kernel and build it? Is it possible?

Does all driver comes with the filename *.ko ?
 
Old 12-03-2004, 11:43 PM   #5
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
bump
 
Old 12-30-2004, 10:48 AM   #6
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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#

Last edited by subaruwrx; 12-30-2004 at 11:03 AM.
 
Old 12-30-2004, 11:50 AM   #7
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
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
 
Old 12-30-2004, 09:40 PM   #8
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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
 
  


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 to apply patch? greythorne Fedora 1 03-09-2005 04:38 AM
Kernel: Can't apply patch 2.6.8-rc2 to a 2.6.8-rc1 thorax Linux - Software 1 07-18-2004 03:20 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
Kernel Patch will not Apply. mudelf Linux - General 10 10-08-2003 05:22 AM
How To Apply Patch To Kernel WILLIAMATHOMAS Linux - Software 2 02-12-2003 12:57 PM


All times are GMT -5. The time now is 06:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration