我尝试amdgpu-pro
在 Zesty 中安装,但在构建内核模块时遇到错误:
Setting up amdgpu-pro-dkms (16.60-379184) ...
Loading new amdgpu-pro-16.60-379184 DKMS files...
Building for 4.10.0-13-generic
Building for architecture x86_64
Building initial module for 4.10.0-13-generic
ERROR (dkms apport): kernel package linux-headers-4.10.0-13-generic is not supported
Error! Bad return status for module build on kernel: 4.10.0-13-generic (x86_64)
Consult /var/lib/dkms/amdgpu-pro/16.60-379184/build/make.log for more information.
内容/var/lib/dkms/amdgpu-pro/16.60-379184/build/make.log
如下:
DKMS make.log for amdgpu-pro-16.60-379184 for kernel 4.10.0-13-generic (x86_64)
Thu Apr 13 15:09:27 PDT 2017
make: Entering directory '/usr/src/linux-headers-4.10.0-13-generic'
LD /var/lib/dkms/amdgpu-pro/16.60-379184/build/built-in.o
LD /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/built-in.o
CC [M] /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o
In file included from /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
from /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../backport/backport.h:5,
from <command-line>:0:
/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../amdgpu/amdgpu.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
scripts/Makefile.build:294: recipe for target '/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o' failed
make[2]: *** [/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o] Error 1
scripts/Makefile.build:567: recipe for target '/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu' failed
make[1]: *** [/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu] Error 2
Makefile:1524: recipe for target '_module_/var/lib/dkms/amdgpu-pro/16.60-379184/build' failed
make: *** [_module_/var/lib/dkms/amdgpu-pro/16.60-379184/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.10.0-13-generic'
如何让驱动程序在 17.04 中运行?
答案1
我有一些坏消息。
首先,您还尝试安装 16.60,它不是最新版本(尽管最新版本也对您没有帮助)。
日志文件提到:
/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../amdgpu/amdgpu.h:37:25: fatal error: linux/fence.h: No such file or directory
栅栏.h更名为dma-fence.h在 linux 4.10 中(如果单击版本 4.9,您会看到 fence.h 存在,但 dma-fence.h 不存在)。
因此,如果您尝试最新版本(17.10在撰写本文时)在内核 4.9 或更早版本上可能工作...但除此之外,您必须等待 AMD 发布支持 4.10 的更新。