Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
erickwill
Posts: 10
Joined: 2013-01-03 23:29

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

#1 Post by erickwill »

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/cata ... al-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 
4 - Install the driver:
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/am ... _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

#2 Post by erickwill »

New patch added ;) Have fun!

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#3 Post by dencrypt »

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

This should be in the wiki.

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

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

#4 Post by erickwill »

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

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#5 Post by dencrypt »

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.

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

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

#6 Post by erickwill »

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

User avatar
nazir
Posts: 74
Joined: 2007-09-16 15:35
Location: Prague, Czechia

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

#7 Post by nazir »

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!
▶♫

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#8 Post by dencrypt »

: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 :)

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

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

#9 Post by erickwill »

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.

User avatar
nazir
Posts: 74
Joined: 2007-09-16 15:35
Location: Prague, Czechia

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

#10 Post by nazir »

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!
▶♫

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

#11 Post by jay_e »

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?

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#12 Post by dencrypt »

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.

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

#13 Post by jay_e »

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

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#14 Post by dencrypt »

Are you sure you are running proprietary drivers?

You should start a separate thread for this. This has nothing to do with topic.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#15 Post by llivv »

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.

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

#16 Post by jay_e »

Hi there,

OK.
I'll probably start from scratch so I can get a cogent build log - that won't be too long
and have too many dead-ends.
It will take a while.
T H A N K S!
Jay

archer66
Posts: 4
Joined: 2013-03-21 18:55

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

#17 Post by archer66 »

Thank you for the good guide. I used your patched file on kernel 3.2 and installed without any issues. However I am not experienced user and the only way I could test was to run Doom3 :roll: . Before installing the driver the game was lacking graphics :lol: in high resolution, and now its perfect.
Could anyone tell me how to better test the driver, or what lines to look for in Xorg.0.log and xorg.conf?

dencrypt
Posts: 15
Joined: 2012-11-01 12:59

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

#18 Post by dencrypt »

The one that seems most recommended is Phoronix (available in repos) or maybe try http://unigine.com/products/heaven/ which seems more in the variety of 3Dmark/FutureMark if you're from a Windows system.

gsnoorky
Posts: 17
Joined: 2013-05-30 14:01

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

#19 Post by gsnoorky »

I must be missing some packages or something. Another site indicates that Wheezy is impossible at stock--you need to deprecate a certain file. I'm thinking about putting a 5450 in for my 4670. The 4670 is a better card, though--it's not that fanless, 64-bit, short-lived BS that every HTPC hound craves--it really is no good despite what they believe. 5450 is a dumbed-down chip that AMD wants everyone to like. I'll try to find the site again. I should just give up on gnome3....

freddo63
Posts: 152
Joined: 2013-06-22 18:42

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

#20 Post by freddo63 »

woah man where'd you guys post the patched files?! I can't seem to keep a stable connection with the server, and it'll dl for a couple of secs at 150kb and then pause and then continue! The torrent isn't active either... I would have patched them myself, but the patcher keeps asking me what file I want to patch, and as far as I can tell you haven't given clear enough instructions to that end... =/

Post Reply