LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-04-2004, 04:08 PM   #1
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
installing patches


ok i just downloaded a patch for my acx100 driver so it can work undee the 2.6 kernel but i dont know how to install it? i di patch <filename.diff -p1 and it asked me what file i wanted to patch so i pointed it to the module file which was acx100_pci.o and it created a new one but i still cant load it. can anyone help me out?
 
Old 01-04-2004, 04:27 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Try
patch -p1 <filename.diff
 
Old 01-04-2004, 05:47 PM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Original Poster
Rep: Reputation: 31
i get the same result
 
Old 01-04-2004, 06:56 PM   #4
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I'm not 100% sure about it, but I think it's strange you have to apply a patch to a binary module to be able to load it with an indipendently compiled kernel!
I fear you'll have to patch kernel sources and recompile it!
There's an easy way to check it: try "cat filename.diff"
If it is a binary file, you're right. If it's a text, I am... in the latter case, don't panic: compiling kernel is no more a pain these days.
 
Old 01-04-2004, 11:23 PM   #5
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Original Poster
Rep: Reputation: 31
i have to patch the kernel. i can recompile it no problem but how would i go about pathcing it?
 
Old 01-05-2004, 07:23 AM   #6
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I can't speak about your particular case, but generally you have to
1) download the kernel sources either with your distro package manager (rpm for RH) or as a tarball from www.kernel.org
rpm extracts to the correct place, while for tarball you should go to /usr/src and then tar -xjvf /path/to/tarfile.tar.bz2
2) download a patch for the same kernel version you're going to use (e.g. 2.6.0)
3) cd to the root of your source dir (e.g. /usr/src/linux-2.6.0/)
4) apply the patch ("patch -p1 <patchfile.diff" or "zcat patchfile.gz | patch -p1")
5) run "make xconfig" to choose kernel options, then compile it (see howtos)

However if you point me to the place you downaloded the driver/patch, I can check what it really is
 
  


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
Installing Security Patches (for FC4) Linux31 Linux - Security 6 01-01-2006 12:31 AM
Installing Slackware Patches Vampirite Slackware 4 11-21-2005 10:13 AM
Fedora 4. downloading and installing patches? totallynewguy Linux - Software 3 08-20-2005 02:32 PM
Trouble installing patches Ratclaws Solaris / OpenSolaris 6 10-20-2004 08:46 AM
Help on installing patches LinuxQuest01 Linux - General 1 07-17-2002 05:44 PM


All times are GMT -5. The time now is 02:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration