[Bug 2038087] Re: flash-kernel installs wrong DTB on Pi
Heinrich Schuchardt
2038087 at bugs.launchpad.net
Mon Oct 2 11:49:19 UTC 2023
The problem is reproducible:
Create file /etc/flash-kernel/machine with content
Raspberry Pi 400 Rev 1.0
on any arm64 system and run flash-kernel:
$ sudo flash-kernel $(uname -r)
Using DTB: bcm2711-rpi-4-b.dtb
Installing /lib/firmware/6.2.0-1013-raspi/device-tree/broadcom/bcm2711-rpi-4-b.dtb into /boot/dtbs/6.2.0-1013-raspi/./bcm2711-rpi-4-b.dtb
Taking backup of bcm2711-rpi-4-b.dtb.
Installing new bcm2711-rpi-4-b.dtb.
flash-kernel: installing version 6.2.0-1013-raspi
The following change is enough to fix the issue:
--- db/all.db 2023-06-22 14:18:53.000000000 +0000
+++ /usr/share/flash-kernel/db/all.db 2023-10-02 11:46:14.211402418 +0000
@@ -1823,7 +1805,7 @@
Machine: Raspberry Pi 4 Model B Rev 1.2
Machine: Raspberry Pi 4 Model B Rev 1.4
Machine: Raspberry Pi 4 Model B Rev 1.5
-Machine: Raspberry Pi *
+Machine: Raspberry Pi 4 *
Kernel-Flavors: raspi raspi-nolpae
Method: pi
DTB-Id: bcm2711-rpi-4-b.dtb
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2038087
Title:
flash-kernel installs wrong DTB on Pi
Status in flash-kernel package in Ubuntu:
Confirmed
Bug description:
flash-kernel probably shouldn't even be dealing with the DTBs on Pi
but it's picking the wrong one for some machine models. For example on
a Raspberry Pi 400 Rev 1.0 it uses bcm2711-rpi-4-b.dtb. Same one
Compute Module 3 and 3+.
It's probably because in /usr/share/flash-kernel/db/all.db the catch-
all
Machine: Raspberry Pi *
is listed before these above mentioned models (and others as well).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2038087/+subscriptions
More information about the foundations-bugs
mailing list