DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I see that Kernel 2.6.20 has showed up in Sid. I have installed it a couple times from Experimental but have not been successful building fglrx (8.31.5, also in Experimental) using module-assistant.
The fglrx driver in Sid is still 8.28-4. Has anyone had success with either of those modules and 2.6.20?
ATI does not have support for the 2.6.20.x kernel yet. I hear they plan to add support for it in fglrx 8.36.x
To be honest, I cant get fglrx 8.35.X on 2.6.19.x either, but they claim its supported. I dont remember now, but I think I had SATA troubles with 2.6.19.x (but not 2.6.20.x) - so fglrx might work for you with that kernel.
So, for now, I'm stuck with a custom 2.6.18.8 kernel on my system.
...which supposedly allows the module to compile. I have not however read any success stories about it.
I'd be willing to try it, but I don't know how to apply the patch. It's just source code, so I suppose it just gets added to one of the files in /usr/src/modules/fglrx
Anybody want to try it, or attempt to explain to me exactly what needs to be done?
I'm wondering if there is a "header" issue in the path here, as I also want to use this kernel but cannot compile modem modules without arch. specific headers to which won't be available till late next week, at best, according to the current agenda.
Put the patch in your ATi directory (or whatever the name is, the only condition is that there should be a directory common under this directory)
Rename the file the patch will modify:
mv common/lib/modules/fglrx/build_mod/firegl_public.c common/lib/modules/fglrx/build_mod/firegl_public.c.old
Apply the patch:
patch -p1 ./blabla.patch
p1 means it will skip the part "ATi/"
You should have the patched file firegl_public.c
Ah ok,
For understanding what behind patch command line syntax:
On my last example, -p1 meant that the patch command will remove the first 1 subdirectory from the patch description (because I thought you had the same tree but not in Ati but maybe in my_Ati or whatever). -p1 is common because it's the root directory of the archive and the user may have rename it.
So, to adapt to your case, you need
1) To remove the complete 6 directories:
ATi/common/lib/modules/fglrx/build_mod/
2) Be in the directory which contains this damned firegl_public.c
So:
cd /usr/src/modules/fglrx/
mv firegl_public.c firegl_public.c.old <--- xxx.old is the name used in the header of the patch file (look my previous post), I did not invent it.
patch -p6 < ~rickh/fglrx-2.6.20.patch
At this point, you are supposed to rename /usr/src/modules/fglrx/ to /usr/src/modules/fglrx-patched/ so that you remember what you did (but in your case, it might create a problem if modules are listed somewhere else)
And remember: a patch file is a list of
+++ which means add this line to the old file to make the new file
--- which means remove this line to the...
Other lines are used by patch to resynchronise itself. Some different algorithm can be used.
The header is specific and list the complete file to patch and the resulting file it will produce. It contains lots of info.
So you CAN NOT replace a source file by a patch. It's not a C file.
I mean, you can physically.. but the results won't be pretty
If patch says reject, it means that it was unable to automatically apply the patch:
You are patching the wrong file (bad name or bad version of fglrx). You have to make sure the website from where you got the patch mentions the version of fglrx to apply the patch to.
If you have a too new or too old version of fglrx, you modify yourself the patch file. For this you need to understand the underlying program, in this case fglrx.. When you have this problem with kernel patch, it gets tricky..
Read several other threads about this ... people were having mixed success ...
Anyway ati has now posted 8.36.5 drivers on their site, so it's now a moot point. I installed them and they're working fine.
Thanks for the explanation tho, nx5000 ... Between that and other threads I've been reading, I think it kernel patches are starting to sink in.
How did you do this? I'm running 2.6.20.4 and installed the 8.36.5 drivers (running Lenny) and they install fine but I do not have 3D acceleration. Could you just post some of the steps that you did?
Then I edited the newly written xorg.conf file to use driver "fglrx" instead of "ati," rebooted, and everything worked.
Note: If you're using Lenny, substitute "lenny" for "sid" in the build-packages step. Also, as should be obvious, this was on an AMD64, but the 32-bit (i386) driver should work the same.
Alright, I did as you said (which wasn't much different than what I had done) and I'm still getting the same problem. Basically, it's not wanting to load the kernel module. After modprobe -v fglrx it gives me this error:
Alright, I did as you said (which wasn't much different than what I had done) and I'm still getting the same problem. Basically, it's not wanting to load the kernel module. After modprobe -v fglrx it gives me this error:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.