¿Cómo instalo amdgpu-dkms en Unbuntu-22?

¿Cómo instalo amdgpu-dkms en Unbuntu-22?

Al instalar usando el amdgpu-installcomando aparentemente "bueno",

# 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

Recibo un error al construir o instalar amdgpu-dkms. Al compilar/instalar a través de amdgpu-install, obtengo más información de un registro de archivo MAKE, pero apt-get install amdgpu-dkmstambién genera un error:

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.

Supongo dma_resvque falta. Lo siguiente que intenté fue instalarlo mediante apt-get:

apt-get install amdgpu-dkms

Lo cual también falla.

¿Hay alguien que haya ejecutado con éxito amdgpu-dkmsUbuntu-22?

ACTUALIZACIONES

Continúo solucionando este problema. Instalar una versión normal de dkmsno proporciona lo que AMD requiere. En cambio, AMD se envía con su propio paquete dkms automake roto en:

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

Y una serie de configureresultados produce un error más profundo:

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.

- Creo que quienquiera que estuviera desarrollando el paquete optimizó para el realtimekernel de Ubuntu, que está disponible en la versión pro. No lo tengo en este momento, pero creo que podría ser un requisito previo para la instalación de la GPU AMD en la nueva 2023-9-13versión de amdgpu-install...deb.

información relacionada