Results 1 to 10 of 13

Thread: Linux 2.6.22 Patch for ATI fglrx Drivers

Hybrid View

  1. #1

    Default Linux 2.6.22 Patch for ATI fglrx Drivers

    Here is a temporary fglrx patch for the Linux 2.6.22-rc1 kernel.

    Code:
    --- firegl_public.c-orig    2007-05-16 14:52:12.000000000 -0500
    +++ firegl_public.c    2007-05-16 14:52:48.000000000 -0500
    @@ -144,12 +144,14 @@
     #define EXPORT_NO_SYMBOLS
     #endif
     
    +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
     #ifdef __x86_64__
     #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
     #include "linux/ioctl32.h"
     #else
     #include "asm/ioctl32.h"
     #endif
    +#endif
     
     #ifdef __x86_64__
     #include "asm/compat.h"

  2. #2

    Default

    We need to patch? I manage to build the driver without patching.

    Code:
    [fglrx] Maximum main memory to use for locked dma buffers: 555 MBytes.
    [fglrx] module loaded - fglrx 8.36.5 [Apr 17 2007] on minor 0
    ACPI: PCI Interrupt 0000:01:05.0[A] -> GSI 17 (level, low) -> IRQ 16
    [fglrx] total      GART = 130023424
    [fglrx] free       GART = 114032640
    [fglrx] max single GART = 114032640
    [fglrx] total      LFB  = 134217728
    [fglrx] free       LFB  = 120320000
    [fglrx] max single LFB  = 120320000
    [fglrx] total      Inv  = 0
    [fglrx] free       Inv  = 0
    [fglrx] max single Inv  = 0
    [fglrx] total      TIM  = 0
    Code:
    $> uname -a
    Linux virgo 2.6.22-rc1 #1 Wed May 16 02:15:48 SGT 2007 i686 athlon-4 i386 GNU/Linux

  3. #3

    Default

    Then it may be for 8.37 that you need to patch.

  4. #4
    Join Date
    Jun 2006
    Posts
    5

    Default

    So where did you find that patch Michael? I wasn't aware 8.37 had been released (perhaps there's a beta floating around the interweb?).

    Cheers for the help!

  5. #5

    Default

    Quote Originally Posted by eatmuchpie View Post
    So where did you find that patch Michael? I wasn't aware 8.37 had been released (perhaps there's a beta floating around the interweb?).

    Cheers for the help!
    The patch was written by a fglrx package maintainer for Ubuntu.

    The 8.37 will be available later this month.

  6. #6
    Join Date
    May 2007
    Posts
    16

    Default

    lenrek, you did not have to patch, as you have a x86 machine, and the issue is x86_64 (aka amd64) only (the patch looks like this, I don't have further information)

  7. #7

    Default

    Quote Originally Posted by Zhenech View Post
    lenrek, you did not have to patch, as you have a x86 machine, and the issue is x86_64 (aka amd64) only (the patch looks like this, I don't have further information)
    Oh... Thanks for the info.

  8. #8
    Join Date
    Nov 2006
    Posts
    72

    Default

    i can't apply the patch on my gentoo:

    Code:
    gentoo 2.6.x # patch -p0 < ~/fglrx-2.6.22.patch
    patching file firegl_public.c
    Hunk #1 FAILED at 144.
    1 out of 1 hunk FAILED -- saving rejects to file firegl_public.c.rej
    kernel 2.6.22rc3 patched with ragnarok patches.
    will 8.37 need this patch?

    this is the output if I try to compile:
    http://nopaste.com/p/aYMqLUkFY

    How do I apply this patch please?
    Last edited by slacker; 05-31-2007 at 05:24 PM.

  9. #9
    Join Date
    Nov 2006
    Posts
    72

    Default

    I did it!!
    It works fine now, there as some warnings like always tho.

  10. #10
    Join Date
    Jun 2007
    Posts
    2

    Default

    Quote Originally Posted by slacker View Post
    I did it!!
    It works fine now, there as some warnings like always tho.
    How did you get it to work? I have applied the patch, verified it made the changes, and when I compile it magically seems to undo itself and give me the same error I had before the patch. After attempting to compile, I looked back at firegl_public.c and it had indeed undone itself because the changes the patch was supposed to make are no longer there. This is really frustrating, can anybody help me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •