Bug#933733: linux-image-4.19.0-5-amd64: amdgpu does not find installed firmware (Also "5.3.0-0.bpo.2-amd64")
Le samedi 28 décembre 2019, 19:21:47 CET Fab Stz a écrit :
> Hello,
>
> I have an equivalent problem with "5.3.0-0.bpo.2-amd64"
>
> [drm:amdgpu_pci_probe [amdgpu]] *ERROR* amdgpu requires firmware installed
>
> I have both "4.19.0-6-amd64" installed and "5.3.0-0.bpo.2-amd64"
>
> I checked the content of "/boot/initrd.img-5.3.0-0.bpo.2-amd64" which is the
> file used by grub according to /boot/grub/grub.cfg. Please find it attached
>
> # lsinitramfs /boot/initrd.img-5.3.0-0.bpo.2-amd64 | grep amdgpu >
> lsinitramfs.out.txt
>
> The firmware files are there, but
> - on 4.19 they are in folder usr/lib/firmware/amdgpu/
> - on 5.3 they are in folder usr/lib/firmware/5.3.0-0.bpo.2-amd64/amdgpu/
>
> Could that difference in location be the cause ? How to get it working ?
>
> Regards
A workaround/fix is to patch /usr/share/initramfs-tools/hook-functions this
way (see patch attached)
That way, the firmware will be copied from
/lib/firmware/5.3.0-0.bpo.2-amd64/amdgpu/
to this dir in the initramfs
usr/lib/firmware/amdgpu/
instead of
usr/lib/firmware/5.3.0-0.bpo.2-amd64/amdgpu/
After that, at boot-time the amdgpu firmware is found.
Please note that after patching it is necessary to run this command:
# update-initramfs -u -k <the_kernel_version>
BTW: #933733 and #942513 may be duplicates.
Regards
--- hook-functions.bak 2019-08-23 03:11:27.000000000 +0200
+++ hook-functions 2019-12-28 20:07:32.732539852 +0100
@@ -101,7 +101,7 @@
if [ -e "/lib/firmware/${version}/${firmware}" ]; then
copy_file firmware \
- "/lib/firmware/${version}/${firmware}"
+ "/lib/firmware/${version}/${firmware}" "/lib/firmware/${firmware}"
else
copy_file firmware "/lib/firmware/${firmware}"
fi
Reply to: