LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2009, 12:04 AM   #1
esom
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 1
Talking fglrx 9.3 patch for 2.6.29.x kernel


I've made a quick fglrx 9.3 patch for 2.6.29 kernel, already tested under 2.6.29.2 kernel.

to install fglrx:
1. download and install ati 9.3 driver, you will see fglrx errors during "post processing kernel modules ..."
2. put install_patch.sh and 2.6.29.x_fglrx-9.3.patch somewhere in a diretory
3. sh install_patch.sh


2.6.29.x_fglrx-9.3.patch:

Code:
--- build_mod/firegl_public.c	2009-03-18 23:07:22.000000000 +0800
+++ build_mod_new/firegl_public.c	2009-05-01 12:21:32.000000000 +0800
@@ -225,7 +225,7 @@
 #endif
 
 #ifdef MODULE_LICENSE
-MODULE_LICENSE("Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
+MODULE_LICENSE("GPL");
 #endif
 #ifdef MODULE_DEVICE_TABLE
 MODULE_DEVICE_TABLE(pci, fglrx_pci_table);
@@ -1402,7 +1402,7 @@
  */
 KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
 {
-    return current->euid;
+    return current->cred->euid;
 }
 
 /** /brief Delay execution for the specified number of microseconds
@@ -1776,11 +1776,11 @@
 {
     if (lock == 0 )
     {
-        cap_lower(current->cap_effective, CAP_IPC_LOCK);
+        cap_lower(*(kernel_cap_t *)&current->cred->cap_effective, CAP_IPC_LOCK);
     }
     else
     {
-        cap_raise(current->cap_effective, CAP_IPC_LOCK);
+        cap_raise(*(kernel_cap_t *)&current->cred->cap_effective, CAP_IPC_LOCK);
     }    
     return; 
 }
--- build_mod/kcl_acpi.c	2009-03-18 23:07:22.000000000 +0800
+++ build_mod_new/kcl_acpi.c	2009-05-01 12:21:32.000000000 +0800
@@ -21,6 +21,9 @@
 #include "kcl_config.h"
 #include "kcl_type.h"
 #include "kcl_acpi.h"
+#include "../acconfig.h"
+#include "../aclocal.h"
+#include "../acobject.h"
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
install_patch.sh:

Code:
#!/bin/bash

PATCHPATH=$(pwd)
KERNV=$(uname -r)
MODPATH=/lib/modules
KERNPATH=/usr/src/linux

echo -e "Installing patch ..."

cd $MODPATH/fglrx
cp $KERNPATH/drivers/acpi/acpica/{acconfig.h,aclocal.h,acobject.h} build_mod/

patch -Np0 < $PATCHPATH/2.6.29.x_fglrx-9.3.patch

cd $MODPATH/fglrx/build_mod
sh make.sh
cd ..
sh make_install.sh
 
Old 05-02-2009, 12:42 AM   #2
jelezarov
LQ Newbie
 
Registered: Nov 2007
Location: /dev/urandom
Distribution: Slackware
Posts: 26

Rep: Reputation: 17
I've tried the patch with fglrx-9.4 on 2.6.29.2 and all works fine! Thanks a lot
 
Old 05-03-2009, 10:56 AM   #3
rbergen
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Thumbs up

Works like a charm on 2.6.29-gentoo-r2 with ATI Catalyst 9.3.

And, as support for my Mobility Radeon X1600 is dropped after version 9.3, I am very grateful for this patch!

Last edited by rbergen; 05-03-2009 at 05:05 PM.
 
Old 05-27-2009, 05:46 AM   #4
Ryuu
LQ Newbie
 
Registered: Feb 2006
Location: Finland
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
works perfectly on Slackware64, thanks a lot
 
Old 06-12-2009, 10:30 PM   #5
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Blog Entries: 2

Rep: Reputation: 15
Ati catalyse 9.3 come with this error

Error: ./default_policy.sh does not support version
default:v2:i686:lib::none:2.6.29-2-686; make sure that the version is being
correctly set by --iscurrentdistro

on Debian Sid : 2.6.29 :P

How can ur guys install it on 2.6.29 anyway?
 
Old 09-06-2009, 11:45 AM   #6
mysql_connect
Member
 
Registered: Jul 2005
Distribution: Slackware 13.37 / Slackware64 13.37
Posts: 35

Rep: Reputation: 0
Quote:
Originally Posted by Raynus View Post
Ati catalyse 9.3 come with this error

Error: ./default_policy.sh does not support version
default:v2:i686:lib::none:2.6.29-2-686; make sure that the version is being
correctly set by --iscurrentdistro

on Debian Sid : 2.6.29 :P

How can ur guys install it on 2.6.29 anyway?
Same error on Slackware 13 with 2.6.29.6 .
 
Old 09-07-2009, 12:39 AM   #7
shelleywang
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by mysql_connect View Post
Same error on Slackware 13 with 2.6.29.6 .
me 2 on Slackware 13 with 2.6.29.6
 
Old 09-11-2009, 04:16 AM   #8
cg132
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 22

Rep: Reputation: Disabled
Thumbs down close but no cigar :(

Ah man, it got soooo close I almost shat myself xD
evil slack13, xorg w/o 3d accel, and ati for not supporting their own hardware D:<

Code:
bash-3.1$ sudo sh ./install_patch.sh 
Installing patch ...
patching file build_mod/firegl_public.c
patching file build_mod/kcl_acpi.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 21 with fuzz 2.
AMD kernel module generator version 2.1
make.sh: line 368: [: =: unary operator expected
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.GCC* .??* *.symvers
make -C /lib/modules/2.6.29.6-smp/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
In file included from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:169:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.h:164:1: warning: "PM_EVENT_SUSPEND" redefined
In file included from /usr/src/linux-2.6.29.6/arch/x86/include/asm/apic.h:4,
                 from /usr/src/linux-2.6.29.6/arch/x86/include/asm/smp.h:13,
                 from include/linux/smp.h:36,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:767,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:91:
include/linux/pm.h:241:1: warning: this is the location of the previous definition
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_MEM_VM_GetRegionPhysAddrStr':
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3223: warning: return makes pointer from integer without a cast
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3224: warning: return makes pointer from integer without a cast
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3225: warning: return makes pointer from integer without a cast
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:3227: warning: return makes pointer from integer without a cast
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_agp.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_debug.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_ioctl.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_io.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_pci.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_str.o
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/kcl_wait.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.29.6'
build succeeded with return value 0
duplicating results into driver repository...
done.
You must change your working directory to /lib/modules/fglrx
and then call ./make_install.sh in order to install the built module.
- recreating module dependency list
- trying a sample load of the kernel modules
- done.
so it ran fine...but then...
then I start X and get
Code:
(EE) Failed to load module "fglrx" (module does not exist, 0)
lol where did I go wrong?
Attached Files
File Type: txt Xorg.0.log.txt (6.6 KB, 15 views)

Last edited by cg132; 09-11-2009 at 04:51 AM.
 
Old 09-16-2009, 03:32 PM   #9
Gorthaur
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 1
Lightbulb There is always hope

I was passing by and stop to read this thread, but I think i can give you some help, such as these, cg132.
Compiling was fine, and that was the hard time of it. Xorg simply did not find the module, and mainly that means it is not loaded, no that it doesn't exist.
Check
Code:
lsmod |grep fglrx
to see if it is loaded. If it isn't, don't surprise Xorg does not find it! But by staying calm and sober, you still can do
Code:
modprobe fglrx
to load it.
Hope this help you.
Regards,


Quote:
Originally Posted by cg132 View Post
Ah man, it got soooo close I almost shat myself xD
evil slack13, xorg w/o 3d accel, and ati for not supporting their own hardware D:<

so it ran fine...but then...
then I start X and get
Code:
(EE) Failed to load module "fglrx" (module does not exist, 0)
lol where did I go wrong?
 
Old 09-17-2009, 08:46 AM   #10
cg132
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by Gorthaur View Post
If it isn't, don't surprise Xorg does not find it! But by staying calm and sober, you still can do
Code:
modprobe fglrx
to load it.
Well this is interesting! I did modprobe fglrx and then I get...

Code:
bash-3.1$ lsmod |grep fglrx
fglrx                2054980  0 
agpgart                29256  2 fglrx,via_agp
Well its loaded but still not working properly. I continue to get
Code:
(EE) Failed to load module "fglrx" (module does not exist, 0)
when I startx
:'(
i'm sorry, i really must be more nubbish than i though. loaded mod still wont work D: this is after an aticonfig --initial of course.
 
Old 10-01-2009, 06:11 PM   #11
proveyourselfthom
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Does it work with Debian Squeeze Xorg 7.4 and 2.6.30 kernel? I have a ATI Radeon X700...
Thank's
 
Old 11-25-2009, 03:06 AM   #12
cg132
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware
Posts: 22

Rep: Reputation: Disabled
Red face poke

can anyone tell me why X doesn't see the loaded mod?
is it my via agpgart? is it improper xorg.conf?
is it missing links? is it god hate me?
help!

Last edited by cg132; 11-25-2009 at 03:15 AM.
 
Old 12-21-2009, 09:05 PM   #13
shadyboy
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: Mandrak, PLHAK, Ubuntu
Posts: 20

Rep: Reputation: 0
so wait? what is the "default" kernel that comes along with Slackware 13 64-bit version?

This possible to use?
Ati Radeon x1100 card I want to install, by using this file :ati-driver-installer-9-3-x86.x86_64.run

But I am kinda getting the feeling that I have to something that a n00b like me have never done, mess around with the kernel.....

So my questions is, can I use this method to install ati-driver-installer-9-3-x86.x86_64.run on my slackware labtop WITHOUT messing around with the kernel?
 
Old 12-22-2009, 06:37 AM   #14
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by shadyboy View Post
so wait? what is the "default" kernel that comes along with Slackware 13 64-bit version?

This possible to use?
Ati Radeon x1100 card I want to install, by using this file :ati-driver-installer-9-3-x86.x86_64.run

But I am kinda getting the feeling that I have to something that a n00b like me have never done, mess around with the kernel.....

So my questions is, can I use this method to install ati-driver-installer-9-3-x86.x86_64.run on my slackware labtop WITHOUT messing around with the kernel?
Since Slackware 13.0 comes with the 2.6.29.6 kernel, the patch in this thread *should* work. However, you would need to downgrade your entire Xorg stack to get catalyst 9.3 working on Slackware 13.0. You should probably either stick with the open source drivers or, if you *must* use the proprietary driver, you probably want to use an older version of Slackware.

Adam
 
Old 02-27-2010, 02:34 AM   #15
loudness
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
hi....i have slackware 13 and ati x550 ...opengl and desktop effects are on and work by default but i play enemy territory and there i have in the best moments 20fps....so i need ati proprietary drivers ....i search on google 1 week to find 1 solution and only this patch seems to be solution ....im total newbie and pls....can someone explain ..step by step how to... use this patch???
tks...
 
  


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
HowTo patch this patch on 2.6 kernel kushalkoolwal Linux - Kernel 3 08-24-2007 12:01 PM
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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