How to install ATI fglrx legacy with kernel 3.7x and 3.8x

Share your own howto's etc. Not for support questions!

How to install ATI fglrx legacy with kernel 3.7x and 3.8x

Postby erickwill » 2013-01-29 01:10

After a while with headaches and constant research I finally got to install the latest ATI/RADEON legacy driver into my Vaio laptop running Debian Wheezy. FYI the video adapter is a Mobility HD 4650.

So , here you go my short tutorial:

1 - Download the driver
Download the driver from AMD (Legacy or not) and extract it to a proper folder (in this example I used amd):
Code: Select all
~$ ./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run --extract amd


2 - Download the patch:
https://aur.archlinux.org/packages/catalyst-total-hd234k/

3 - Appling the patches:
Copy all the files that contains ".patch" extension to the root of your extracted ATI/RADEON driver folder.
One by one patches, use the following command line to apply the patch at the root of your extracted driver folder:

Code: Select all
patch -p0 < ./whatever-patch-name.patch


e.g.
Code: Select all
 patch -p0 < ./arch-fglrx-3.7.patch
 patch -p0 < ./arch-fglrx-3.8.patch
 patch -p0 < ./3.5-do_mmap.patch
 patch -p0 < ./makefile_compat.patch
 patch -p0 < ./arch-fglrx-authatieventsd.patch


[b]4 - Install the driver:[b]
After apply the patches you don't need to repack into a .deb or another package you can just go straight and install the driver through the following command line:

Code: Select all
~$ sudo ./ati-installer.sh 8.97.100.7 --install


After installing proceed with the following line:

Code: Select all
~$ sudo amdconfig --initial


Just in case you are a lazzy guy and don't wanna patch by yourself, you can go straight to my already patched amd legacy driver here:

http://goo.im/devs/erickwill/drivers/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.tar.gz

So you can start from the step "4 - Install the driver"

Have fun!!

Erick
erickwill
 
Posts: 10
Joined: 2013-01-03 23:29

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby erickwill » 2013-02-01 19:22

New patch added ;) Have fun!
erickwill
 
Posts: 10
Joined: 2013-01-03 23:29

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby dencrypt » 2013-02-25 22:02

This has been the best I've read all day.

This should be in the wiki.
dencrypt
 
Posts: 15
Joined: 2012-11-01 12:59

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby erickwill » 2013-02-25 22:06

dencrypt wrote:This has been the best I've read all day.

This should be in the wiki.


Nice to know that was useful for you as was for me :)
I don't have any idea about how to add it into a wiki.. lol
erickwill
 
Posts: 10
Joined: 2013-01-03 23:29

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby dencrypt » 2013-02-26 08:09

Forgot to mention that this also works with kernel 3.2.

This is as far as I know the only way to get legacy (discontinued radeon chipsets) drivers to work in Wheezy.

Uploaded a torrent for faster access if anyone else need it.
dencrypt
 
Posts: 15
Joined: 2012-11-01 12:59

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby erickwill » 2013-02-26 12:18

dencrypt wrote:Forgot to mention that this also works with kernel 3.2.

This is as far as I know the only way to get legacy (discontinued radeon chipsets) drivers to work in Wheezy.

Uploaded a torrent for faster access if anyone else need it.



Sounds good :)
BTW, I already updated the wiki.
Cheers
erickwill
 
Posts: 10
Joined: 2013-01-03 23:29

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby nazir » 2013-02-28 12:49

dencrypt wrote:Forgot to mention that this also works with kernel 3.2.

This is as far as I know the only way to get legacy (discontinued radeon chipsets) drivers to work in Wheezy.


note: Another, slightly simpler way is to use packages from experimental (I'm not sure what the situation is with the newer kernels, but I know that work in Wheezy, 3.2 kernel, FireGL V5700)...
Merry crisis and happy new fear!
▶♫
User avatar
nazir
 
Posts: 75
Joined: 2007-09-16 15:35
Location: Prague, Czechia

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby dencrypt » 2013-03-01 08:05

:idea: They work. Yes. But as far as I know you can't get GLX or openGL to work together with this driver from experimental. But in theory it should work though...

I tried this with my Radeon 3000, 3.2 kernel and it installed correctly without errors but one cannot use stuff like XBMC since the GLX/OpenGL drivers for the package is not working, at least not out of the box and I have not found any workaround. Would be great though if someone had a success -story on this :)
dencrypt
 
Posts: 15
Joined: 2012-11-01 12:59

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby erickwill » 2013-03-01 10:06

nazir wrote:
dencrypt wrote:Forgot to mention that this also works with kernel 3.2.

This is as far as I know the only way to get legacy (discontinued radeon chipsets) drivers to work in Wheezy.


note: Another, slightly simpler way is to use packages from experimental (I'm not sure what the situation is with the newer kernels, but I know that work in Wheezy, 3.2 kernel, FireGL V5700)...


However, you can't install the stock driver with kernels higher than 3.4..
So if you wish to use a cutting edge kernel like 3.7 or 3.8 you will need this method instead the experimental package.
erickwill
 
Posts: 10
Joined: 2013-01-03 23:29

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby nazir » 2013-03-01 14:10

I hope that package maintainers in the future somehow deal with this...

2 dencrypt: The only program that has something to do with opengl and that I use is glview (which seems to work without problems).
I installed XBMC and it looks like it works flawlessly without any special setting...
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_1.png
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_2.png
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_3.png
Merry crisis and happy new fear!
▶♫
User avatar
nazir
 
Posts: 75
Joined: 2007-09-16 15:35
Location: Prague, Czechia

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby jay_e » 2013-03-02 00:23

Greetings.
I have three related questions.
1)
How can I tell which card (ATI/Radeon) this driver will support? (edit: add ati/Radeon)
2)
How to distinguish between 32 and 64 bit drivers?
3)
Does this driver have OpenCL needed to crunch for BOINC?
------------------
More:
1 - about the driver)
I have tried and got a list/status of the cards ( i have since lost the list)
and the highest model went up to 5800.

I have a card manufactured by XFX - Radon HD7750.

I tested the card in windows-vista - with the AMD Catalyst driver.
I got it to number crunch under BOINC.
BOINC said the card/driver was: ATI GPU 0: Capeverde (CAL version 1.4.1741, 2048MB, 2008MB available, 2048 GFLOPS peak)
When I put the card into a Debian box, I can't get any display past the vega boot messages
I had followed the forums and used the debian driver instead of the driver on the AMD-Linux web-page.
(actually, I did try it - but I had path-install problems.)

Will this driver work for this card?

2) 32 or 64 bit
Do I have to do something for a multi-arch to use this driver on a 64 bit AMD?
Or will the driver work as is.
Will I need the ia-32-lib package (it is multi-arch)??
==========
I have not given up. But its time to ask the experts...

Thanks in advance,
Jay E.

PS
If his isn't the right forum for the questions, any suggestions?
jay_e
 
Posts: 39
Joined: 2009-06-04 20:03
Location: Orlando, Florida

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby dencrypt » 2013-03-02 05:28

nazir wrote:I hope that package maintainers in the future somehow deal with this...

2 dencrypt: The only program that has something to do with opengl and that I use is glview (which seems to work without problems).
I installed XBMC and it looks like it works flawlessly without any special setting...
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_1.png
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_2.png
http://www.nazir.cz/tmp/fglrx-legacy_xbmc_3.png


You didn't have to take printscreens, I would have believed you :o

All I can say is, kudos to you my friend. I've tried several times installing the fglrx-legacy-driver for the 3.2 Kernel through adding the experimental repositories. And the installation goes well but when I try XBMC it always complains about unsupported drivers

Image

After some research I thought that it had something to do with the libgl1-fglrx-legacy-glx package since I found it to be missing but installing it made no difference. So since it works for you but not for me It makes me think that my card is unsupported???

dencrypt@cryptserv:~$ lspci |grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS780L [Radeon HD 3000]


Very strange.
dencrypt
 
Posts: 15
Joined: 2012-11-01 12:59

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby jay_e » 2013-03-02 14:26

Dencrypt, Hi there.


Could you, please, help me with a similar problem on getting the correct driver for World Community Grid?
They require OpenCL (not OpenGL)

I tried the Debian driver and ithe video worked - but BOINC did not recognize the GPU.
I *think* the problem was that it did not find OpneCL - for that model of Radeon/ATI.

I had posted an xorg.0.log to:
http://boinc.berkeley.edu/dev/forum_thr ... stid=47934


Here is a snippet of the above-mentioned xorg.o.log:
Code: Select all
((Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown. ))
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.0-1-amd64 x86_64 Debian
Current Operating System: Linux pc-14-large 2.6.32-5-amd64 #1 SMP Fri Feb 15 15:39:52 UTC 2013 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=UUID=e79f4c23-2e17-44d4-939c-66c2ab6243a4 ro quiet
Build Date: 29 October 2011 06:58:14PM
xorg-server 2:1.7.7-14 (Julien Cristau <jcristau@debian.org>)
Current version of pixman: 0.16.4

...

(--) PCI:*(0:1:0:0) 1002:683f:1682:3248 ATI Technologies Inc rev 0, Mem @ 0xc0000000/268435456, 0xfea00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
         [[snip, snip]]
(==) Matched ati as autoconfigured driver 0
(==) Matched vesa as autoconfigured driver 1
(==) Matched fbdev as autoconfigured driver 2
(==) Assigned the driver to the xf86ConfigLayout
(II) LoadModule: "ati"
(II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
(II) Module ati: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 6.13.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "radeon"
(II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 6.13.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "vesa"
(II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
(II) Module vesa: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 2.3.0
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "fbdev"
(II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
compiled for 1.7.6.901, module version = 0.4.2
ABI class: X.Org Video Driver, version 6.0
(II) RADEON: Driver for ATI Radeon chipsets:
ATI Radeon Mobility X600 (M24) 3150 (PCIE), ATI FireMV 2400 (PCI),
ATI Radeon Mobility X300 (M24) 3152 (PCIE),
ATI FireGL M24 GL 3154 (PCIE), ATI FireMV 2400 3155 (PCI),
ATI Radeon X600 (RV380) 3E50 (PCIE),
ATI FireGL V3200 (RV380) 3E54 (PCIE), ATI Radeon IGP320 (A3) 4136,

[[  middle of long log snippped out ]]

ATI FirePro (FireGL) Graphics Adapter,
ATI Mobility Radeon HD 5800 Series, ATI Radeon HD 5700 Series,
ATI Radeon HD 5700 Series, ATI Radeon HD 5700 Series,
ATI Mobility Radeon HD 5000 Series,
ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
ATI FirePro (FireGL) Graphics Adapter,
ATI FirePro (FireGL) Graphics Adapter, ATI Radeon HD 5670,
ATI Radeon HD 5570, ATI Radeon HD 5500 Series, REDWOOD,
ATI Mobility Radeon HD 5000 Series,
ATI Mobility Radeon HD 5000 Series, CEDAR, CEDAR, CEDAR,
ATI FirePro (FireGL) Graphics Adapter,
ATI FirePro (FireGL) Graphics Adapter, CEDAR, ATI Radeon HD 5450,
CEDAR
(II) VESA: driver for VESA chipsets: vesa
(II) FBDEV: driver for framebuffer: fbdev
(II) Primary Device is: PCI 01@00:00:0
(WW) Falling back to old probe method for fbdev
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/linux/libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"



Then, I took a different route and searched for OpenCL...

Debian (Squeeze) does haveOpenCL for Nvidia drivers built into their distribution:

root@xxxx:/var/log# aptitude search openCL
v lib32opencl1
v libopencl1
v libopencl1-dev
p nvidia-libopencl1 - NVIDIA OpenCL library
p nvidia-libopencl1-dev - NVIDIA OpenCL development files
p nvidia-libopencl1-ia32 - NVIDIA OpenCL 32-bit library
p nvidia-opencl-common - NVIDIA OpenCL driver
p nvidia-opencl-icd - NVIDIA OpenCL ICD
p nvidia-opencl-icd-ia32 - NVIDIA OpenCL ICD (32-bit)
v opencl-icd -


I tried the non-nvidia-named open cli.. NOPE. It went to the Nvidia....
I didn't see the AMD open CL because it was in testing - not the stable release.

Get try it.
Fail again
BOINC did NOT recognize the GPU....

Here are the details...
( I used a Ga Tech mirror)

Code: Select all
add to /etc/apt/sources.list
# Backports
deb       http://debian.gtisc.gatech.edu/debian-backports squeeze-backports main non-free
deb-src http://debian.gtisc.gatech.edu/debian-backports squeeze-backports main non-free

verify package and install
--
root@xxxx:/etc/apt# aptitude search amd-clinfo
p amd-clinfo - AMD OpenCL utility

root@xxxx:/etc/apt# aptitude install amd-clinfo

The following NEW packages will be installed:
amd-clinfo amd-libopencl1{a} amd-opencl-icd{a}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.0 MB of archives. After unpacking 35.7 MB will be used.
Do you want to continue? [Y/n/?] y


Reboot and restart BOINC..

Ugggh the BOINC message repeats...

Fri 22 Feb 2013 03:34:18 AM EST No usable GPUs found

OK. I'll close this up...
Since Feb 22, I took the 7750 card out of the Debian Linux box and tested it (to be sure) in a windows box.
I got the Catalyst driver from the AMD website - and BOINC recognized the GPU and crunched away.

Now the card is back in my Debian Squeeze box and I'm stuck.

Opinions, love letters and advice
are requested and accepted. :)

Thanks,

Jay
jay_e
 
Posts: 39
Joined: 2009-06-04 20:03
Location: Orlando, Florida

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby dencrypt » 2013-03-02 18:32

Are you sure you are running proprietary drivers?

You should start a separate thread for this. This has nothing to do with topic.
dencrypt
 
Posts: 15
Joined: 2012-11-01 12:59

Re: How to install ATI fglrx legacy with kernel 3.7x and 3.8

Postby llivv » 2013-03-03 06:13

jay_e

please open your own thread in System Configuration or General Questions
for your question
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5488
Joined: 2007-02-14 18:10
Location: cold storage

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable