LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   fglrx on Slackware 13 (https://www.linuxquestions.org/questions/slackware-14/fglrx-on-slackware-13-a-796958/)

brooky9999 03-21-2010 08:53 PM

fglrx on Slackware 13
 
Hi,

I am trying to install the ATi drivers on my freshly built Slack 13 box.

I have compiled my own 2.6.31 and 2.6.33.1 kernels but both have given me errors.

Under 2.6.31 the drivers fail to compile. After checking dmesg, found an error messages regarding "find_task_by_vpid". Apparently the ATi drivers don't build against that kernel.

So I compiled 2.6.33.1 using the following:

Code:

make
cp System.map /boot/System.map-2.6.33.1
ln -sf /boot/System.map-2.6.33.1 /boot/System.map
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.33.1
nano /etc/lilo.conf
mkinitrd -k 2.6.33.1 -m ext4:ehci_hcd:uhci_hcd:usbhid -f ext4 -r /dev/cryptvg/root -C /dev/sda2 -L
lilo

These steps always work beautifully.

However now I get the following error when trying to install the ATi 9.8 drivers:

Code:

Error:
kernel includes at /lib/modules/2.6.33.1/build/include do not match current kernel.
they are versioned as ""
you might need to adjust your symlinks:
- /usr/include
- /usr/src/linux
ERROR: i don't have make module

I've never had problems compiling a kernel before.

Does anyone have any suggestions as to where I might have gone wrong? Or better still, how to compile the fglrx driver for Slackware 13?

Many thanks,


~Mark

Lucifer4o 03-22-2010 01:57 AM

Fglrx have some problems with kernel 2.6.33. You have to apply patch ...

brooky9999 03-22-2010 03:46 AM

Hi,

Thanks for your reply. Do you know where I can find the patch?


~Mark

Lucifer4o 03-22-2010 03:48 AM

http://www.linuxquestions.org/questi...urrent-796669/

Here you can find patch and info for runing fglrx on current ...
Later today I'll try it on my x32 and I'll post comments ...

brooky9999 03-22-2010 05:04 AM

Alas, this did not work :-(

All seemed to be going well, but now I get an error saying:

Code:

ld: Relocatable linking with relocations from format elf64-x86-64 (/tmp/fglrx-installer-8.721/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4) to format elf32-i386 (/tmp/fglrx-installer-8.721/lib/modules/fglrx/build_mod/fglrx.o) is not supported
make[1]: *** [/tmp/fglrx-installer-8.721/lib/modules/fglrx/build_mod/fglrx.o] Error 1
make: *** [_module_/tmpfglrx-installer-8.721/lib/modules/fglrx/build_mod/] Error 2
make: Leaving directory '/root/linux-2.6.33.1'

I'm thinking that it doesn't like 32-bit.

I'm now going to cry :-(


~Mark

brooky9999 03-22-2010 05:18 AM

Ok, maybe a slight schoolboy error there on my part.

The package is created, and I install it and everything looks fine. I don't have dual-head, but that is my next thing.

glxgears reports 357 fps... which is pretty lame compared to what it used to be.

I'm not using an xorg.conf, so I need to read-up on how that works.

adamk75 03-22-2010 06:32 AM

You need to create an xorg.conf file in order to use fglrx. You can create one with 'Xorg -configure' and then edit the file that is generated so that it uses the 'fglrx' driver instead of the 'radeon' driver.

brooky9999 03-22-2010 06:34 AM

Hi Adam,

That isn't an issue - I have the old one from my Slackware 12.2 system. It's configured nicely and uses dual-head.

The issue is getting the fglrx driver to compile... it's having none of it :-(


~Mark

adamk75 03-22-2010 06:48 AM

I thought you said:

Quote:

The package is created, and I install it and everything looks fine.
It should definitely compile against 2.6.31 (and 2.6.32) though I do believe that 2.6.33 still requires patching.

So maybe you should clarify exactly what you've done, exactly what kernel you are using, and exactly what problem you are having.

EDIT: Also, where did you get the version you are using? As far as I know, that version hasn't been officially released and is geared towards users with X server 1.7.*. I have my doubts that it would work on one of the 1.6.* X servers.

Adam

brooky9999 03-24-2010 05:33 AM

Hi Adam,

I am using ATI driver versions 9.3, 9.5 and 9.8. If I remember correctly, ATI released all of the above, but then rolled back to 9.3. This now is the only version available.

I tried to compile against kernel 2.6.31, but it failed and reported "find_task_by_vpid" errors in dmesg.

I then compiled kernel 2.6.33.1, and tried to build the ATI drivers against that. This too failed with the following error:

Code:

Error:
kernel includes at /lib/modules/2.6.33.1/build/include do not match current kernel.
they are versioned as ""

Then I followed the article given to me by Lucifer4o. Like I mentioned, the package builds and installs, but if I run lsmod I see no mention of fglrx, and glxgears runs like a 3-legged dog in treacle.

Even if I do get it to work, I'm at a loss with how to configure my dual monitors without an xorg.conf file. But I'm guessing this must be configured some other way and that I just need to RTFM / STFW.

Many thanks,


~Mark

adamk75 03-24-2010 05:40 AM

Catalyst is up to 10.2, not 9.3.

Are you using a non-HD card? If so, you need to use the open source drivers with Slackware 13.0.

brooky9999 03-24-2010 05:42 AM

Yes it's a non-HD card. I'm using an X1900.

Thank you. I will give them a try.


All times are GMT -5. The time now is 05:32 AM.