Fixing issue: “amdgpu kernel module failed to build”

DuplicateSignature: dkms:amdgpu-dkms-firmware:1:5.6.5.24-1109583:/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
Package: amdgpu-dkms-firmware 1:5.6.5.24-1109583
PackageVersion: 1:5.6.5.24-1109583
SourcePackage: amdgpu-dkms
Title: amdgpu-dkms-firmware 1:5.6.5.24-1109583: amdgpu kernel module failed to build
uname -r
ls /boot
dpkg -l | grep linux- | grep 5.4.0-54
sudo apt install -y linux-image-5.4.0-54-generic
sudo apt install -y linux-headers-5.4.0-54
sudo apt install -y linux-headers-5.4.0-54-generic
sudo apt install -y linux-modules-extra-5.4.0-54-generic
sudo apt remove -y linux-headers-5.4.0-56-generic linux-image-5.4.0-56-generic 
sudo apt remove -y linux-image-unsigned-5.4.0-56-generic
sudo apt remove -y linux-headers-5.4.0-56
sudo apt remove -y linux-modules-5.4.0-56-generic
ls /boot
sudo update-grub && sudo reboot
#1 https://community.amd.com/t5/drivers-software/can-t-install-amdgpu-drivers-on-ubuntu-20-04-1-5-4-0-56-generic/m-p/427234
#2 https://tomas-savenas.medium.com/installing-nvidia-and-amd-gpu-driver-on-linux-server-4f1f1d4360d

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tomas Savenas

Tomas Savenas

88 Followers

Kibernetinio saugumo entuziastas; Aktyviausias Lietuvis TryHackMe platformoje; Inovacijų valdymo ir Antreprenerystės Magistrantas @ KTU