LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-02-2003, 08:18 AM   #16
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up Applying driver patch ...


Hi,
I studied earlier the Kernel HowTo. There we can see how to patch files with ".gz" and ".bz2" files. But here the case with ".diff" files.

The driver patch name is "drivername.version.diff". What we have to do is to patch the ".diff" file with kernel source and then compile the kernel. So i used " patch -p0 < /root/Directfb/patch-DFB-0.9.16-i810-0.0.5.diff".

The error is "can't find the file to patch". What i suspect is whether we have to do any preliminary step relating path constraint.
 
Old 05-02-2003, 08:44 AM   #17
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
i looked up that patch on the web.
there are a bunch of patches on that sourceforge site,
and the patch you are trying to use is a patch for a program
called DirectFB. That's not a kernel patch. if you see on
that page, there are some kernel patches for stuff, and
they have the version of the kernel that they go to in
the name. There are also XFree86 patches on
that page. maybe that's what you are wanting. Those
aren't kernel patches either. They aree source patches
for X. you would have to download XFree86 and patch
that source, compile and install to use those. Thats a
tough job.
 
Old 05-07-2003, 01:05 AM   #18
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up Applying patches and Compiling Kernel

Hi,
DirectFB is a library which when fusioned with gtk results in User Interface which has translucent effect.Inorder for this to work we require 2 drivers "i810fb" and "gfxdriver".

But the kernel 2.4.18-14 does not support these 2 drivers in default. So i downloaded

1) Kerenl source and patches for i810fb and
2) patch for gfxdriver, patch-DFB-0.9.16-i810-0.0.5.diff.

What i have to do is to bring in to the knowledge of the kernel that 2 new drivers have been installed. For this i have to compile the existing kernel.

As far as patches are concerned, if any driver exists previously, applying patches will change the previously existing version. Right ? But no such gfxdriver exists in current kernel. How can i make the kernel know about the driver with just a patch file ?

The kernel exists in the path /usr/src/linux-2.4.18-14.
There exists a folder named "drivers" which contain driver source files as u know.

I have the i810fb driver source files in a folder named "i810". If i copy the folder in "/usr/src/linux-2.4.18-14/drivers" and compile the kernel, will the kernel support i810fb (fb - Framebuffer) driver for intel 810 chipset ?

DirectFB library cab be found at "www.directfb.org" and the kernel source and drivers can be found at "http://i810fb.sourceforge.net".
 
Old 05-07-2003, 03:19 PM   #19
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
there are kernel patches on that page. those are
the only patches that you would apply to the kernel,
and you would have to patch the kernel source with
only those kernel patches and recompile and install
the kernel.
the other patches are for other software that you would
have to patch and compile and install.
 
Old 05-08-2003, 03:39 AM   #20
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up Applying patch to kernel source

Hi,
Thanks for the suggestion. Now i executed the linux frame buffer driver kernel patch as follows.

In the location /usr/src/linux-2.4.18-14, I executed the patch command as follows. But the patch aborted with following error. How to overcome the problem ?

[root@Suriya linux-2.4.18-14]# patch -p1</root/Framebuffer/linux-i810fb/linux-2.4.18-i810fb.diff

patching file Documentation/Configure.help
Hunk #1 succeeded at 4994 (offset 331 lines).
patching file Documentation/fb/intel810.txt
patching file drivers/char/agp/agpgart_be.c
Hunk #2 succeeded at 4688 (offset 445 lines).
patching file drivers/video/Config.in
Hunk #2 FAILED at 276.
Hunk #3 FAILED at 296.
Hunk #4 FAILED at 312.
Hunk #5 FAILED at 328.
Hunk #6 FAILED at 338.
Hunk #7 FAILED at 346.
Hunk #8 FAILED at 359.
Hunk #9 FAILED at 370.
8 out of 9 hunks FAILED -- saving rejects to file drivers/video/Config.in.rej
patching file drivers/video/Makefile
Hunk #1 succeeded at 109 (offset 2 lines).
patching file drivers/video/fbmem.c
Hunk #1 succeeded at 116 (offset 4 lines).
Hunk #2 succeeded at 192 (offset 10 lines).
patching file drivers/video/i810/Makefile
patching file drivers/video/i810/i810_accel.c
patching file drivers/video/i810/i810_accel.h
patching file drivers/video/i810/i810_common.h
patching file drivers/video/i810/i810_fbcon.c
patching file drivers/video/i810/i810_fbcon.h
patching file drivers/video/i810/i810_fbcon_accel.c
patching file drivers/video/i810/i810_fbcon_accel.h
patching file drivers/video/i810/i810_fbcon_rotate.c
patching file drivers/video/i810/i810_fbcon_rotate.h
patching file drivers/video/i810/i810_iface.c
patching file drivers/video/i810/i810_iface.h
patching file drivers/video/i810/i810_main.c
patching file drivers/video/i810/i810_main.h
patching file drivers/video/i810/i810_regs.h
patching file drivers/video/i810/i810_sarea.c
patching file drivers/video/i810/i810_sarea.h
patching file include/linux/agp_backend.h
Hunk #1 succeeded at 249 (offset 4 lines).
patching file include/linux/fb.h
Hunk #1 FAILED at 93.
1 out of 1 hunk FAILED -- saving rejects to file include/linux/fb.h.rej

Last edited by suriyamohan; 05-08-2003 at 03:43 AM.
 
Old 05-08-2003, 03:48 PM   #21
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
some people are good at taking those .rej files and
putting them in by hand. i've never done it.

i would get a different kernel patch or a different kernel
source and try. the kernel howto earlier in this thread
has stuff about patching the kernel.
 
  


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
applying patch? alaios Linux - General 1 11-29-2004 11:41 AM
Applying patch on nmap6 Kresimir Linux - Software 0 09-16-2004 06:55 AM
applying a patch darthczyz Linux - Newbie 2 05-07-2004 09:44 AM
Applying XFree patch jspaceman Slackware 2 02-12-2004 06:10 PM
applying ck kernel patch Abe_the_Man Linux - General 1 01-29-2004 12:43 PM


All times are GMT -5. The time now is 07:43 PM.

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