Инструменты пользователя

Инструменты сайта


linux_video_fglrx

Установка драйверов ATI Radeon для Linux openSUSE 13.2

Руководство от 01.05.2016 by reug@mail.ru (Полезно почитать и для других версий Linux)

Введение

При любом варианте установки необходимо иметь все пакеты kernel-* строго одинаковой версии!

Признаком некорректности установки драйверов может быть падение программ, зависящих от OpenGL. Например, в сообщении dmesg может быть что-то типа «segfault … in fglrx-libGL.so.1.2». В случае проблемы с загрузкой вообще (черный экран) после установки драйверов необходимо в меню GRUB2 нажать клавишу <E> на выбранном пункте меню. В появившемся редакторе настроек загрузки добавить опцию single в строку с опциями ядра (начинается с linux) и нажать F10. Появится консоль, в которой можно исправить ситуацию.

Читать ресурсы:

Признаком правильности установки будет правильная информация по команде fglrxinfo:

display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 6530D
OpenGL version string: 4.5.13416 Compatibility Profile Context 15.302''

Проверить драйверы можно также командой fgl_glxgears.

Вариант 1.

Установить из пакетов согласно инструкции на сайте: https://ru.opensuse.org/SDB:AMD_fglrx

При этом придется ставить все исходники ядра (!).

Вариант 2.

Установка драйверов с сайта AMD.

https://bluehatrecord.wordpress.com/2015/09/17/installing-the-proprietary-amd-catalyst-15-9-fglrx-15-201-driver-on-fedora-22-with-linux-kernel-4-1-6/

Файл version.h поместить в каталог, который будет указан в логе инсталляции после первой ошибки /usr/share/ati/fglrx-install.log.


Installation Instructions

1) Download the AMD Catalyst 15.9 (fglrx) driver from AMD’s site.

2) Change your working directory to your ~/Downloads directory and extract the amd-driver-installer-15.20.1046-x86.x86_64.zip file:

$ cd ~/Downloads
$ unzip amd-catalyst-15.9-linux-installer-15.201.1151-x86.x86_64.zip

3) Extract the run archive:

$ sh AMD-Catalyst-15.9-Linux-installer-15.201.1151-x86.x86_64.run --extract

Here, you’ll see a message which reads something like: “Created directory fglrx-install.wIhzk3″ and then “Verifying archive integrity… All good.” followed by a “Uncompressing AMD Catalyst(TM) Proprietary Driver-15.20.1046″ followed by a lot of dots.

4) Now, you should see a newly created folder called fglrx-install.whateveryourcomputernamedit (mine, for example, was fglrx-install.wIhzk3). Change your working directory appropriately and apply the Catalyst159-Kernel416.patch.

$ cd fglrx-install.wIhzk3
$ mv ~/Downloads/Catalyst159-Kernel416.patch.doc ~/Downloads/Catalyst159-Kernel416.patch  #WordPress does not permit me to upload a .patch file, so I add the .doc extension to lazily get around that restraint
$ mv ~/Downloads/Catalyst159-Kernel416.patch ./          #this is not necessary, but I do it for sanity's sake, to keep the patch file with the patched code as a reminder
$ patch -p0 < Catalyst159-Kernel416.patch

If you are successful, you will see the following output:

patching file common/lib/modules/fglrx/build_mod/firegl_public.c Hunk #1 succeeded at 277 (offset 8 lines). Hunk #2 succeeded at 3506 (offset 8 lines). patching file common/lib/modules/fglrx/build_mod/kcl_str.c

5) As Jacob Yates points out, one must copy the version.h header file into the build directory for the current kernel version:

$ sudo cp /usr/include/linux/version.h /lib/modules/`uname -r`/build/include/linux/

6) Now that you’ve patched the installation package and copied the header file needed to build the module, run the installation:

$ sudo ./ati-installer.sh 15.201 --install

7) Choose the “Install Driver 15.201 on X.Org 6.9 or later 64-bit” option from the Setup Wizard, and then simply follow the prompts. Ensure that you do not select “Generate Distribution Specific Driver Package (Recommended)”. This will only work if you use one of the officially supported Linux distributions listed on AMD’s site (Fedora is not included).

8) Reboot your machine and enjoy!


linux_video_fglrx.txt · Последние изменения: 2016/05/01 11:46 (внешнее изменение)