LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-13-2004, 11:40 PM   #1
rustyz82
Member
 
Registered: May 2004
Posts: 69

Rep: Reputation: 15
Patching drivers


I have a diff file to patch osme orinoco drivers on my system but being relativly new to linux (at least this part of it) i know not how to do this. Do i need the kernel source (since the drivers are loaded as a module) to patchthem and after i patch them isthere anything else I need to do? Thanks for the help.
 
Old 05-14-2004, 03:06 AM   #2
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
to patch the driver simply read the head of the patch-file
Here is an example head of the lirc-patch:
diff -Npaur linux-2.6.4/Documentation/lirc/lirc_it87 linux-2.6.4-lirc/Documentation/lirc/lirc_it87
--- linux-2.6.4/Documentation/lirc/lirc_it87 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.4-lirc/Documentation/lirc/lirc_it87 2004-03-15 15:03:14.202925360 +0100
the plus indicates the destination and the minus the source.
so according to this example make a copy of the folder linux-2.6.4 to linux-2.6.4-lirc and then write:
patch -p0 < PATCHFILENAME

Alternative just make a symbolic link linux-2.6.4-lirc to linux-2.6.4 and the use the patch command; use this method only if you don't need the original-folder anymore.

You possible need the kernel-sources ..

hope that helps
 
Old 05-14-2004, 05:05 AM   #3
rustyz82
Member
 
Registered: May 2004
Posts: 69

Original Poster
Rep: Reputation: 15
after i patch the files do i need to recompile anything or what else do i need to do? And i'm not sure i understand your explination....
 
Old 05-14-2004, 08:05 AM   #4
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
when you patch a driver, or exactly the source of the driver, the patch
change old code-lines (from different code files) with new ones.
so, if you've patched some sourcecode you need to compile it.

I don't think you have to rebuild your kernel or the kernel-modules, but maybe you
need the kernel-source to compile modules.
 
  


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
Patching drivers with kernel source Eklipz Debian 1 12-12-2004 07:32 AM
Patching Orinoco Drivers for Monitor Mode starnix Linux - Wireless Networking 0 08-20-2004 05:36 PM
Help patching orinoco drivers in Mandrake 10 GoBillsBN Linux - Wireless Networking 3 08-19-2004 03:57 PM
Patching Orinoco drivers under Fedora Core 2 Redhatusr Linux - Wireless Networking 2 07-17-2004 12:32 PM
patching ybaws Linux - Software 3 04-02-2004 04:52 PM

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

All times are GMT -5. The time now is 06:16 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
Open Source Consulting | Domain Registration