You are not logged in.

#76 2005-04-08 16:04:02

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

So ok, you have modified  /var/abs/kernel/kernel26/config
Now all you need to do is:

makepkg -g
then cut & replace the so obtained md5sum inside kernel PKGBUILD and, at this point, just type makepkg and wait for till it ends to build your "new" kernel...  At the end of all you should have obtained a package called kernel26-2.6.11.x-1.pkg.tar.gz , so:
pacman -U kernel26-2.6.11.x-1.pkg.tar.gz
run lilo if u are using lilo otherwise just reboot your pc, then build and install ati-drivers-module-kernel26 and ati-drivers and if u have done everything correctly you have done! smile

Offline

#77 2005-04-08 16:09:03

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: ati radeon driver install

qwerty, I plan on undertaking my first kernel compile for the purpose of getting these darned drivers to work.  I'd like to thank you for your concise explanations in this thread.  I have a very noobish question to ask though; if I were to use the config unmodified when I go to make the package, I'd get the Arch stock kernel as a result, right?  Basically, any modifications I make will be made on top of the default?
I just don't want to plunge into this until I know exactly what I'm getting myself into. smile

Also, were you able to get the new drivers running under the stock kernel?

Offline

#78 2005-04-08 16:16:07

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

Ah, if anyone need them there are new PKGBUILDs (ok they are the same for the earlyer version, you just have to change driver version).


ATI-DRIVERS-MODULE-KERNEL26, put in the same dir the following PKGBUILD and file:

http://xentac.net/tur/tags/link/ati-dri … le.install

kernel=`uname -r`
kernelpkgver=2.6.11.7-1  ### <- replace with your kernel version
pkgname=ati-drivers-module-kernel26
pkgver=8.12.10
pkgrel=1
pkgdesc="ATI drivers kernel module"
url="http://www.ati.com"
license="ATI"
provides=('ati-drivers-module')
depends=("kernel26=$kernelpkgver" 'xorg')
makedepends=('rpmunpack')
install=ati-drivers-module.install
source=("http://www2.ati.com/drivers/linux/fglrx_6_8_0-8.12.10-1.i386.rpm" 
        "http://www.hot.ee/amurde/p1.patch" "http://www.hot.ee/amurde/p2.patch")
md5sums=('9c6397047331aadaa2c379ca78245810' '1e882dac4462553bc8829eae7698d042'
         'f688e2b4f5886a4dd23b15912145d49f')


build() {
    cd $startdir/src
    rpmunpack < $startdir/src/fglrx_6_8_0-8.12.10-1.i386.rpm | gzip -d | cpio -idmuv
    # Compile the DRI kernel module
    cd $startdir/src/lib/modules/fglrx/build_mod
    patch -p0 < $startdir/src/p1.patch
    patch -p0 < $startdir/src/p2.patch
    cp 2.6.x/Makefile .
    export _POSIX2_VERSION="199209"
    make -C /usr/src/linux-$kernel SUBDIRS="`pwd`" modules || return 1

    # Install the kernel module
    install -m 644 -D $startdir/src/lib/modules/fglrx/build_mod/fglrx.ko 
        $startdir/pkg/lib/modules/$kernel/video/fglrx.ko || return 1
}



ATI-DRIVERS, put in  the same the following PKGBUILD and files:

http://xentac.net/tur/tags/link/ati-dri … rs.install
http://xentac.net/tur/tags/link/ati-dri … drivers.sh

PKGBUILD:

pkgname=ati-drivers
pkgver=8.12.10
pkgrel=1
pkgdesc="ATI accelerated drivers"
url="http://www.ati.com"
license="ATI"
groups=("x11")
depends=('xorg' 'ati-drivers-module')
makedepends=('rpmunpack')
install=ati-drivers.install
source=("http://www2.ati.com/drivers/linux/fglrx_6_8_0-8.12.10-1.i386.rpm" 'ati-drivers.sh')
md5sums=('9c6397047331aadaa2c379ca78245810' 'd9e62017d509a2d22d60381722a085a0')

build() {
    cd $startdir/src
    rpmunpack < $startdir/src/fglrx_6_8_0-8.12.10-1.i386.rpm | gzip -d | cpio -idmuv
    rm -rf $startdir/src/usr/X11R6/bin/*.bz2

    # Install the OpenGL libraries
    install -m 755 -D $startdir/src/usr/X11R6/lib/libGL.so.1.2 
        $startdir/pkg/usr/X11R6/lib/libGL.so.1.2 || return 1
    # We don't symlink because x-server provides the correct symlinks already

    # Install the X and DRI drivers
    install -m 644 -D $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o 
        $startdir/pkg/usr/X11R6/lib/modules/drivers/fglrx_drv.o || return 1
    install -m 755 -D $startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so 
        $startdir/pkg/usr/X11R6/lib/modules/dri/fglrx_dri.so || return 1

    # Install some apps
    install -m 755 -D $startdir/src/ati-drivers.sh 
        $startdir/pkg/etc/profile.d/ati-drivers.sh || return 1
    install -d $startdir/pkg/opt/ati/bin
    install -m 755 -D $startdir/src/usr/X11R6/bin/* 
        $startdir/pkg/opt/ati/bin/ || return 1

    # Remove stuff that we've put elsewhere
    rm -f $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o 
          $startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so 
          $startdir/src/usr/X11R6/lib/libGL.so.1.2 
          $startdir/src/usr/X11R6/bin/*
    rm -rf $startdir/src/usr/{src,share} $startdir/src/usr/X11R6/bin
    cp -R $startdir/src/usr $startdir/pkg
}

To make ati drivers works you need to recompile your kernel with agp builded as a module.


Sorry for my english, i hope that what i've written is clear and useful..


C yaaaaaaaaaaaaaaaa

Offline

#79 2005-04-08 16:31:36

MrGrumpy
Member
Registered: 2005-04-06
Posts: 23

Re: ati radeon driver install

qwerty wrote:

So ok, you have modified  /var/abs/kernel/kernel26/config
Now all you need to do is:

makepkg -g
then cut & replace the so obtained md5sum inside kernel PKGBUILD and, at this point, just type makepkg and wait for till it ends to build your "new" kernel...  At the end of all you should have obtained a package called kernel26-2.6.11.x-1.pkg.tar.gz , so:
pacman -U kernel26-2.6.11.x-1.pkg.tar.gz
run lilo if u are using lilo otherwise just reboot your pc, then build and install ati-drivers-module-kernel26 and ati-drivers and if u have done everything correctly you have done! smile

Right there must be an easier way

==> Retrieving Sources...
==>     Using local copy of linux-2.6.11.3.tar.bz2
==>     Found config in build dir
==>     Found logo_linux_clut224.ppm in build dir
==>     Using local copy of acpi-20050228-2.6.11.diff.bz2
==>     Using local copy of nvidia_6111-6629_compat2.diff
==>     Using local copy of acpi-dsdt-initrd-patch-v0.7d-2.6.9.patch
==> Validating source files with MD5sums
    linux-2.6.11.3.tar.bz2 ... Passed
    config ... FAILED
    logo_linux_clut224.ppm ... Passed
    acpi-20050228-2.6.11.diff.bz2 ... Passed
    nvidia_6111-6629_compat2.diff ... Passed
    acpi-dsdt-initrd-patch-v0.7d-2.6.9.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
[root@myhost kernel26]#                                         

Now I`ve replaced the md5sums generated into the pkgbuild file and i get that above, a total PITA   sad

MrG

Offline

#80 2005-04-08 16:58:36

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

@qwerty cheers for the pkgbuilds, good to see that im finally learning how they are put together (i made mine then saw yours, almost the same big_smile)

i swear to god ati and the kernel developers are out to screw with my head...."ahhh we see d3c3it has had a hard week at work, lets release a new kernel and new ati drivers"

wonder what the deal is with the new kernel source and nvidia drivers (for my laptop)


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#81 2005-04-08 17:01:47

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

MrGrumpy wrote:
qwerty wrote:

So ok, you have modified  /var/abs/kernel/kernel26/config
Now all you need to do is:

makepkg -g
then cut & replace the so obtained md5sum inside kernel PKGBUILD and, at this point, just type makepkg and wait for till it ends to build your "new" kernel...  At the end of all you should have obtained a package called kernel26-2.6.11.x-1.pkg.tar.gz , so:
pacman -U kernel26-2.6.11.x-1.pkg.tar.gz
run lilo if u are using lilo otherwise just reboot your pc, then build and install ati-drivers-module-kernel26 and ati-drivers and if u have done everything correctly you have done! smile

Right there must be an easier way

==> Retrieving Sources...
==>     Using local copy of linux-2.6.11.3.tar.bz2
==>     Found config in build dir
==>     Found logo_linux_clut224.ppm in build dir
==>     Using local copy of acpi-20050228-2.6.11.diff.bz2
==>     Using local copy of nvidia_6111-6629_compat2.diff
==>     Using local copy of acpi-dsdt-initrd-patch-v0.7d-2.6.9.patch
==> Validating source files with MD5sums
    linux-2.6.11.3.tar.bz2 ... Passed
    config ... FAILED
    logo_linux_clut224.ppm ... Passed
    acpi-20050228-2.6.11.diff.bz2 ... Passed
    nvidia_6111-6629_compat2.diff ... Passed
    acpi-dsdt-initrd-patch-v0.7d-2.6.9.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
[root@myhost kernel26]#                                         

Now I`ve replaced the md5sums generated into the pkgbuild file and i get that above, a total PITA   sad

MrG

Ill be honest here, first kernel i made with arch i just hashed out the md5 sign and compiled without big_smile

Ok that was pretty successful, only just found out mind that i cant use the xorg composite with dri, damnit


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#82 2005-04-08 18:04:41

MrGrumpy
Member
Registered: 2005-04-06
Posts: 23

Re: ati radeon driver install

right I managed to compile a new kernel but when trying to install the ATI drivers etc all seemed to go well but........... smile I cannot run fglrxconfig as it don`t exist as far as the system is concerned ? This just seems a lot of hard work, or it could just be the numpty sitting here  tongue

MrG

Offline

#83 2005-04-08 20:37:50

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: ati radeon driver install

you have to exit and log again, otherwise you can run manually /etc/profile.d/ati-driver (or sometthing like that)...
Anyway frglxconfig should be placed in /opt/ati/bin (i'm not sure about names but now i'm not on my pc and i cannot check anything)

Offline

#84 2005-04-08 21:57:56

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

yea if you cd /opt/ati/bin/ also if you have problems with getting dri working check your agp apacture size in the bios, i upped mine to 128mb then it worked


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#85 2005-04-09 04:57:32

DarkPath
Member
Registered: 2004-11-15
Posts: 50

Re: ati radeon driver install

Man I love Arch... just change the version in the PKGBUILD, makepkg, then pacman -U and you're set. Already using the new drivers! smile

Thanks again qwerty for making the PKGBUILDs in the first place!

Offline

#86 2005-04-09 10:12:53

MrGrumpy
Member
Registered: 2005-04-06
Posts: 23

Re: ati radeon driver install

qwerty wrote:

you have to exit and log again, otherwise you can run manually /etc/profile.d/ati-driver (or sometthing like that)...
Anyway frglxconfig should be placed in /opt/ati/bin (i'm not sure about names but now i'm not on my pc and i cannot check anything)

I believe I got it working, what i did was compiled a 2.6.11.6 kernel the usual way ( not using ABS) and installed the ATI drivers and got it all working smile approx 400fps in glxgears full screen 1280x1024 so it appears not bad. However i seem to have no desktop sounds , but sound does work in media players etc ? Will create another post on this.

Thanks to all so far

MrG

Offline

#87 2005-04-11 02:59:07

rayzorblayde
Member
Registered: 2004-01-04
Posts: 67

Re: ati radeon driver install

well, I've built the modules package and installed it using the supplied PKGBUILD file above.
how do i know this is working?

i've built the drivers package based on the other PKGBUILD file above, but i can't install it.  I get this error:

# pacman -A ati-drivers-8.12.10-1.pkg.tar.gz 
loading package data... done.
checking for file conflicts... 
error: the following file conflicts were found:
  ati-drivers: /usr/X11R6/lib/libGL.so.1.2: exists in filesystem


errors occurred, no packages were upgraded.

do i HAVE to recompile the kernel?  thanks for any help.

my system info:

# uname -a
Linux blayde 2.6.11.7-ARCH #1 SMP Sat Apr 9 13:37:54 PDT 2005 i686 AMD Athlon(tm)  AuthenticAMD GNU/Linux


loading.... please wait....

Offline

#88 2005-04-11 06:44:13

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: ati radeon driver install

rayzorblayde:  You get a  file conflict because /usr/X11R6/lib/libGL.so.1.2 is provided by xorg.  Just move it (or rename it) and you'll be able to install your ati-drivers package.

Offline

#89 2005-04-11 12:27:50

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

if you dont care about the libgl file thou (like me, fsck it wink)
pacman -Af ati-drivers*.tar.gz
would force copying over the top of the original file


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#90 2005-04-12 00:32:48

rayzorblayde
Member
Registered: 2004-01-04
Posts: 67

Re: ati radeon driver install

Snowman wrote:

rayzorblayde:  You get a  file conflict because /usr/X11R6/lib/libGL.so.1.2 is provided by xorg.  Just move it (or rename it) and you'll be able to install your ati-drivers package.

d3c3it wrote:

if you dont care about the libgl file thou (like me, fsck it wink)
pacman -Af ati-drivers*.tar.gz
would force copying over the top of the original file


so the reason it's a conflict is that the ati drivers writes a new lib file?  if so, i'll just use the -Af flags.


loading.... please wait....

Offline

#91 2005-04-12 03:00:45

rayzorblayde
Member
Registered: 2004-01-04
Posts: 67

Re: ati radeon driver install

I went ahead and forced the driver install.

Now I get this:

# modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.11.7-ARCH/video/fglrx.ko): Operation not permitted

anyone else experience this? or know what i might have done wrong?  i tried following the wiki, but there were some things that were different and whatnot, so i might have missed something.


loading.... please wait....

Offline

#92 2005-04-12 12:18:46

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

yes...have you tried restarting? that seemed to have fixed that for me...shouldnt need to but it did


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#93 2005-04-12 20:48:16

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: ati radeon driver install

Yeah i know there is always one! But the thing is i find this a bit confusing. I have installed both ati packages from Link [TUR]. i use the kernel-2.6.11 unmodified, xorg 6.8 and I have ati graphics card. What do i do now to use this driver? Do i have to compile something again?

Sorry but i have read almost the whole thread and i obviously miss something.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#94 2005-04-12 21:43:33

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

ahh you havnt compiled the module yet as root
im away from my arch computer right now so this might be slighty wrong

cd /lib/modules/fglrx
or its
cd /lib/modules/ati/
sh make_install.sh

That should compile then you shoudl be able to modprobe the module, hopefully


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#95 2005-04-13 00:29:53

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: ati radeon driver install

can't find any of the folders nor the sh make_install.sh.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#96 2005-04-13 07:49:35

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

hmm that would indecate that the src isnt installed, unless the package has put it in /usr/src

my recommendation would be to try building your own packages with ati the package build is here http://bbs.archlinux.org/viewtopic.php? … &start=165
have a look at the wiki as well the information on using abs is all there and very clear.

btw that pkgbuild will need editing for the latest drivers (just change the $pkgber)


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#97 2005-04-13 18:00:19

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: ati radeon driver install

Does the compile work with the stock kernel or i need to compile the kernel too. If so what chages do i need to make in the kernel.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#98 2005-04-13 19:14:15

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

I've never tried with a stock kernel.....tell me this archlinux your first linux install? if so your going to be a very steep learning curve so dont get frustrated. Check out the 2.6.x wiki http://wiki2.archlinux.org/index.php/Cu … 20later%29

Again you need to really search and search and look at the wiki, all the answers are there. I made my own kernel, remember to compile all your agpgart parts of the kernel as modules.


"Covered in blood, Cant understand" - Biffy Clyro

Offline

#99 2005-04-13 20:43:33

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: ati radeon driver install

napoleon wrote:

Does the compile work with the stock kernel or i need to compile the kernel too. If so what chages do i need to make in the kernel.

Run the "abs" command and then:

cd /var/abs/local
cp -a ../kernels/kernel26 .
cd kernel26
makepkg

That will download the sources for you, but won't require making your own kernel (but you may have to, I don't use an ATI card....  roll ).


·¬»· i am shadowhand, powered by webfaction

Offline

#100 2005-04-13 21:14:13

d3c3it
Member
From: Manchester, UK
Registered: 2003-09-10
Posts: 112
Website

Re: ati radeon driver install

shadowhand wrote:
napoleon wrote:

Does the compile work with the stock kernel or i need to compile the kernel too. If so what chages do i need to make in the kernel.

Run the "abs" command and then:

cd /var/abs/local
cp -a ../kernels/kernel26 .
cd kernel26
makepkg

That will download the sources for you, but won't require making your own kernel (but you may have to, I don't use an ATI card....  roll ).

He might have to make his own custom kernel thou due to the way the ati drivers interact with the kernels agpgart, afaik they will only work properly if your agpgart only has your agp chipset as a module.....such as i have an nvidia agp so ive only compiled the nvidia agpgart...and that worked for me, i know the stock kernel has modules but ive not tested it


"Covered in blood, Cant understand" - Biffy Clyro

Offline

Board footer

Powered by FluxBB