You are not logged in.

#1 2008-07-27 10:45:31

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

[Solved]catalyst-rt module for realtime kernel

Hello,

I've compiled and intstalled the rtkernel with the directions posted here: http://bbs.archlinux.org/viewtopic.php?id=52201

My laptop uses an ati card and needs catalyst drivers. The fglrx module works fine with the vanilla kernel and pacman does not install it for the rt kernel(I think they are not compatible?) so I think I need the catalyst-rt module(also while installing the kernel, the pkgbuild told me that I needed catalyst-rt).

I could find no packages named catalyst-rt in the repos, but AUR database has one:
http://aur.archlinux.org/packages.php?ID=16825

But I think there is a problem with the install. After I compile the package and run it with "pacman -U", it complains about an unexpected EOF because of an unmatched quote mark. I've extracted the generated "catalyst-rt-8.5-2-i686.pkg.tar.gz" file to see if I can come up with something, there is indeed a missing quote in one of the echo statements in the contained catalyst-rt.install file. I tried fixing and retarring it but pacman complained about missing metadatas  in the package. This is my 3rd day with arch(and one of those days my Internet connection was broken) so I don't have many clues.

I figure that there are very few people running ati drivers on a rt kernel here(searching for catalyst-rt yields to nothing) but maybe you can help me fix the issue myself, or maybe there is an easier way to use catalyst with an rt kernel?

Any help will be greatly appreciated. Thanks!

Last edited by pyramind (2008-07-27 18:47:04)

Offline

#2 2008-07-27 10:48:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]catalyst-rt module for realtime kernel

Use makepkg to rebuild the package with the fixed .install file.

Offline

#3 2008-07-27 11:10:37

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Tomk, thanks for the quick response, here is what I did:

The generated package with the PKGBUILD I grabbed from AUR is named: catalyst-rt-8.5-2-i686.pkg.tar.gz

I unzipped it and it has two folders and a script: pkg, src and catalyst-rt.install file.

The catalyst-rt.install files has a missing quote in one of its echo statements so I'm not sure if it is the problem. Does echo care?

post_install() {
  echo
  echo "|==================================|"
  echo "| You can use the tool 'aticonfig' |"
  echo "| to generate an xorg.conf file    |"
  echo "|----------------------------------|
  echo "| Remember to add fglrx to the     |"
  echo "| MODULES array in /etc/rc.conf    |"
  echo "|==================================|"
  KERNEL_VERSION=2.6.25-rt
  depmod -v $KERNEL_VERSION > /dev/null 2>&1
}

Anyways... What should I do to rebuild the package with makepkg?

I tried "makepkg -p catalyst-rt.install" but it didn't work(complained about an unknown error, and I'm pretty sure that what I did was wrong heh).

Offline

#4 2008-07-27 11:27:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]catalyst-rt module for realtime kernel

Do what you did the first time, but fix the install file first.

Offline

#5 2008-07-27 11:36:51

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Ah, I thought that the script was autogenerated by makepkg and put into archive at the first place. Saw the file was included upon clean untarring. Ok now it installs fine, lets see if it will work...

Offline

#6 2008-07-27 11:55:02

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Ok, now there is another problem.

It installs fine, and the fglrx module is added into rc.conf, and it loads successfully at boot time.

My /etc/X11/xorg.conf has "fglrx" as Driver. But X works in mesa mode. fglrxinfo spits:

~]$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (2.1 Mesa 7.0.3)

This xorg.conf was working fine with the vanilla kernel(was using fglrx in X)...
edit: I rebooted with the vanilla kernel and it works with fglrx, but the compiled kernel doesn't....

What might the problem be?

Last edited by pyramind (2008-07-27 12:09:14)

Offline

#7 2008-07-27 15:17:34

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Here is an update:

my Xorg.0.log has these errors:

(EE) fglrx(0): XMM failed to open CMMQS connection.
(II) fglrx(0): XMM failed to initialize!
(II) fglrx(0): Direct rendering disabled
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0):     Name: fglrx
(II) fglrx(0):     Version: 8.49.7
(II) fglrx(0):     Date: May 12 2008
(II) fglrx(0):     Desc: ATI FireGL DRM kernel module
(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0x5000 at 0xb76c1000
(II) fglrx(0): [drm] Closed DRM master.
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

my kernel: 2.6.25-rt
the installed ati driver: ati-driver-installer-8-5-x86.x86_64

Any pointers?

Last edited by pyramind (2008-07-27 15:37:01)

Offline

#8 2008-07-27 18:24:16

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Ok, some more progress:

As I said, the vanilla kernel works fine with the catalyst drivers. Fully accelerated etc. When working with vanilla kernel if I say " dmesg | grep fglrx", the output is fine:

fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx]   vendor: 1002 device: 71c5 count: 1
[fglrx] Maximum main memory to use for locked dma buffers: 1898 MBytes.
[fglrx] PAT is enabled successfully!
[fglrx] module loaded - fglrx 8.50.3 [Jun  2 2008] with 1 minors
[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[fglrx] Reserved FB block: Unshared offset:1000000, size:5000 
[fglrx] Reserved FB block: Unshared offset:ffbf000, size:40000 
[fglrx] Reserved FB block: Unshared offset:ffff000, size:1000 
[fglrx] Reserved FB block: Shared offset:0, size:1000000 
[fglrx] Reserved FB block: Unshared offset:1000000, size:5000 
[fglrx] Reserved FB block: Unshared offset:ffbf000, size:40000 
[fglrx] Reserved FB block: Unshared offset:ffff000, size:1000

As you can see, the loaded version is fglrx 8.50.3 [Jun  2 2008].

Now if I try the same on rt-kernel with catalyst-rt drivers loaded, the loaded version is shown as the incompatible fglrx 8.49.7 [May 12 2008] version.

The package PKGBUILD downloads is ati-driver-installer-8-5-x86.x86_64

So I assume that should be at least 8.5? Where does this loaded 8.49.7 come from?

I'm checking /lib/modules/<myrtkernel>/ to see if there are any other fglrx.ko floating around but there is only one, the one installed from the package built with ati-driver-installer-8-5-x86.x86_64.run

Since I'm not very competent with linux, I'm hoping some of you can show me some directions. I may try packaging a new ati driver to check but if ati-driver-installer-8-5-x86.x86_64 is actually 8.49, which one should I try then? 8-6? 8-7? I quite don't understand.

Last edited by pyramind (2008-07-27 18:24:34)

Offline

#9 2008-07-27 18:46:34

pyramind
Member
Registered: 2008-07-25
Posts: 12
Website

Re: [Solved]catalyst-rt module for realtime kernel

Ah ok, making a new package with a newer version of the driver fixed the issue, finally. For others tackling with a similar problem:

I got the PKGBUILD from here: http://aur.archlinux.org/packages.php?ID=16825

Opened the PKGBUILD file, there is the line: pkgver=8.5

Changed it to pkgver=8.6

And I deleted the md5 hash from the bottom of the file to skip comparing it with the new driver. (probably there is a parameter for it in makepkg but oh well, I didn't check)

Now you can say "makepkg" and then "sudo pacman -U catalyst-rt-8.6-2-i686.pkg.tar.gz" and it should work.
(don't forget to add fglrx to your rc.conf)

Last edited by pyramind (2008-07-27 20:29:39)

Offline

Board footer

Powered by FluxBB