You are not logged in.

#1 2008-07-28 17:01:13

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

ATI install latest xserver,mesa,drm

I have migrated over to the "lighter" side of things, and already I love this distro. However, w/ my last distro (Ubuntu), I was able to get 3d direct rendering on my Radeon x1650(rv535), using the latest OSS driver (xorg-video-ati 6.9) using mesa 7.1 and xserver 1.4.99. As well I had installed the latest drm modules.

As I have migrated after a catastrophic hardware failure, I didn't have much time to do research about the "Arch Way". I apologize if I seem Ignorant in my knowledge of Arch Linux, I am still at the bottom of the "Bell" so to speak.

Anyway, here is the Install guide I followed to help me get through last time:

http://www.phoronix.com/forums/showthread.php?t=9951

I am aware that the easy-drm-modules-installer is made for Ubuntu, so I'm not sure how to get the right modules installed.

What about mesa 7.1?

As well, would I (make install) the xserver updates(from the orig. tarballs) from the edgers repo, or use packagebuild (or something else)?

Any help would be greatly appreciated.
I am currently researching and pondering this daunting task myself, I figured I would make a post and see if anyone had any info that could make this easier.

Offline

#2 2008-07-28 20:08:02

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

Re: ATI install latest xserver,mesa,drm

So far I am at a complete loss. I downloaded all the source tarballs from: http://ppa.launchpad.net/xorg-edgers/ub … ol/main/x/

I started with the libdrm-2.3.1, which gave no errors on installation. However when I went to install mesa-7.1.0, ./configure gives me an error that it depends on libdrm-2.3.1 and I only have libdrm-2.3.0. WTH is up with that.

I'm guessing I didn't install the drm modules right, here is the readme:

DRM README file


There are two main parts to this package: the DRM client library/interface
(libdrm.so) and kernel/hardware-specific device modules (such as i915.ko).



Compiling
---------

By default, libdrm and the DRM header files will install into /usr/local/.
If you want to install this DRM to replace your system copy, say:

    ./configure --prefix=/usr --exec-prefix=/

Then,
    make install


To build the device-specific kernel modules:

    cd linux-core/
    make
    cp *.ko /lib/modules/VERSION/kernel/drivers/char/drm/
       (where VERSION is your kernel version: uname -f)

Or,
    cd bsd-core/
    make
    copy the kernel modules to the appropriate place



Tips & Trouble-shooting
-----------------------

1. You'll need kernel sources.  If using Fedora Core 5, for example, you may
   need to install RPMs such as:

    kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm
    kernel-devel-2.6.15-1.2054_FC5.i686.rpm
    etc.


2. You may need to make a symlink from /lib/modules/VERSION/build to your
   kernel sources in /usr/src/kernels/VERSION (where version is `uname -r`):

    cd /lib/modules/VERSION
    ln -s /usr/src/kernels/VERSION build


3. If you've build the kernel modules but they won't load because of an
   error like this:

    $ /sbin/modprobe drm
    FATAL: Error inserting drm (/lib/modules/2.6.15-1.2054_FC5smp/kernel/drivers/char/drm/drm.ko): Invalid module format

   And 'dmesg|tail' says:

    drm: disagrees about version of symbol struct_module 

   Try recompiling your drm modules without the Module.symvers file.
   That is rm the /usr/src/kernels/2.6.15-1.2054_FC5-smp-i686/Module.symvers
   file (or rename it).  Then do a 'make clean' before rebuilding your drm
   modules.

I followed the linux-core process, was I supposed to use the BSD? I know arch has some BSD likeness, but this is new to me.

Also, I didn't  run configure to replace the system copy <-- very well could be my problem!

I don't get any errors and it is loaded, but how do I check the version?


[stephen@ephraim ~]$ lsmod | grep drm
drm                   137964  0 
agpgart                28244  2 drm,amd64_agp
[stephen@ephraim ~]$

My guess is pkg-config(mesa ./configure) can't find the module I loaded, because it wasn't installed with the package manager. I'm not sure though.:(

Offline

#3 2008-07-28 20:31:22

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

Re: ATI install latest xserver,mesa,drm

OK, maybe I'm going about this the wrong way.... I posted on another forum and I got a reply that said to use PKGBUILDS for them, but where would I find them??

Offline

#4 2008-07-28 20:32:27

dawn
Member
Registered: 2008-01-15
Posts: 51

Re: ATI install latest xserver,mesa,drm

Umm, have you checked the Arch wiki page on the subject: http://wiki.archlinux.org/index.php/ATI ?

Offline

#5 2008-07-28 20:35:48

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: ATI install latest xserver,mesa,drm

Stop.
Don't manually compile and make install, unless you really know what you are doing. You will likely litter your system with untracked files causing trouble down the road. Read the wiki entries for ATi, ABS and makepkg.
If you need those versions, try using the existing PKGBUILDs and just bump up the version numbers first before resorting to manually compiling. wink

Offline

#6 2008-07-28 20:44:52

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

Re: ATI install latest xserver,mesa,drm

dawn wrote:

Umm, have you checked the Arch wiki page on the subject: http://wiki.archlinux.org/index.php/ATI ?

Yes, however, the only way I have ever been able to get 3d on this card (as it is a "problem card"(rv535 agp) is to use the latest OSS driver (6.9). to get direct rendering I need to have libdrm-2.3.1, mesa7.1, and xserver-1.4.99(1.5).

see this article for some info:
http://www.phoronix.com/scan.php?page=a … ming&num=1

This was ~easily accomplished in Ubuntu, via the guide on phoronix as there are debian packages built for this already, but I am having trouble seeing how this is done in Arch.

Offline

#7 2008-07-28 20:47:47

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

Re: ATI install latest xserver,mesa,drm

Misfit138 wrote:

Stop.
Don't manually compile and make install, unless you really know what you are doing. You will likely litter your system with untracked files causing trouble down the road. Read the wiki entries for ATi, ABS and makepkg.
If you need those versions, try using the existing PKGBUILDs and just bump up the version numbers first before resorting to manually compiling. wink

Yeah, I have, and I am reading and researching.
Thanks for the info

BTW, you mean all i have to do is get and existing PKGBUILD for what I want to install and modify the versions? So, I would untar the source (I downloaded), put the modified PKGBUILD in there and make it?

Offline

#8 2008-07-28 21:26:28

Execute_Method
Member
From: Tennessee
Registered: 2008-07-26
Posts: 105

Re: ATI install latest xserver,mesa,drm

OK now I think I'm getting the hang of this.

I found libdrm PKGBUILD in my abs, modified it and:

[stephen@ephraim libdrm-2.3.1]$ makepkg
==> Making package: libdrm 2.3.1-1  (Mon Jul 28 17:13:28 EDT 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found libdrm-2.3.1.tar.bz2 in build dir
==> WARNING: Integrity checks (md5) are missing or incomplete.
==> Extracting Sources...
  -> bsdtar -x -f libdrm-2.3.1.tar.bz2
==> Entering fakeroot environment...
==> Starting build()...

==> Tidying install...
  -> Removing info/doc files...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> WARNING: Options beginning with 'no' will be deprecated in the next version of makepkg!
    Please replace 'no' with '!': nolibtool -> !libtool.
  -> Removing libtool .la files...
==> Creating package...
  -> Generating .PKGINFO file...
==> WARNING: Please add a license line to your PKGBUILD!
    Example for GPL'ed software: license=('GPL').
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: libdrm (Mon Jul 28 17:13:42 EDT 2008)
[stephen@ephraim libdrm-2.3.1]$ ls
libdrm-2.3.1-1-i686.pkg.tar.gz  pkg       PKGBUILD~
libdrm-2.3.1.tar.bz2            PKGBUILD  src
[stephen@ephraim libdrm-2.3.1]$ sudo pacman -U libdrm-2.3.1-1-i686.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading libdrm                              [#####################] 100%

Offline

Board footer

Powered by FluxBB