Unbuntu-22에 amdgpu-dkms를 어떻게 설치합니까?

Unbuntu-22에 amdgpu-dkms를 어떻게 설치합니까?

분명히 "good" amdgpu-install명령을 사용하여 설치할 때,

# amdgpu-install version
# amdgpu-install_22.20.50200-1_all.deb
# cut date: 2023-9-13
# today: 2023-99-20

# allegedly good command 1
amdgpu-install --usecase=graphics

# allegedly good command 2
amdgpu-install --usecase=graphics --vulkan=amdvlk --opencl=rocr

구축 또는 설치에 실패했습니다 amdgpu-dkms. 를 통해 빌드/설치할 때 amdgpu-installmakefile 로그에서 추가 정보를 얻지만 apt-get install amdgpu-dkms오류도 발생합니다.

make: Entering directory '/usr/src/linux-headers-6.2.0-33-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using:           gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build/Makefile:16: *** dma_resv->seq is missing., exit....  Stop.
make: *** [Makefile:2026: /var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.0-33-generic'

# KEY LINE
dma_resv->seq is missing., exit....  Stop.

dma_resv누락된 것 같아요 . 다음으로 시도한 것은 apt-get을 통해 설치하는 것이었습니다.

apt-get install amdgpu-dkms

그것도 실패합니다.

amdgpu-dkmsUbuntu-22에서 성공적으로 실행한 사람이 있습니까 ?

업데이트

계속해서 이 문제를 해결하고 있습니다. 의 일반 버전을 설치하면 dkmsAMD에 필요한 기능이 제공되지 않습니다. 대신 AMD는 다음 위치에 자체적으로 손상된 dkms automake 패키지를 제공합니다.

/var/lib/dkms/amdgpu/5.16.9.22.20-1438747~22.04/source/amd/dkms

그리고 실행하면 configure더 깊은 오류가 발생합니다.

apt-get install linux-headers-realtime
...
# in amd/.../dkms
sudo ./configure

# I was able to move forward on this by installing the linux headers above
# but only 2 lines forward. The UTS_RELEASE definition is still missing. 
# As far as I can tell, my kernel is *not* the realtime kernel, so
# I probably need to install the realtime kernel. 

checking kernel source directory... /usr/src/linux-realtime-headers-5.15.0-1032
checking kernel build directory... /usr/src/linux-realtime-headers-5.15.0-1032
checking kernel source version... Not found
configure: error: *** Cannot find UTS_RELEASE definition.

realtime-- 누가 프로 버전에서 사용할 수 있는 우분투 커널에 최적화된 패키지를 개발했는지 생각합니다 . 지금은 그런 기능이 없지만 새 2023-9-13빌드 에 AMD GPU를 설치하기 위한 전제 조건일 수 있다고 생각합니다 amdgpu-install...deb.

관련 정보