[Bug 1928314] Re: Wrong DTB chosen for Raspberry Pi Compute Module 4 (all.db)
Launchpad Bug Tracker
1928314 at bugs.launchpad.net
Mon Apr 18 15:30:17 UTC 2022
This bug was fixed in the package flash-kernel - 3.104ubuntu9
---------------
flash-kernel (3.104ubuntu9) jammy; urgency=medium
* Cache lookup of Bootloader-Has-Broken-Ext4-Extent-Support for significant
performance improvement on Raspberry Pi (LP: #1965129)
* Added note in db/all.db above Pi entries about "incorrect" DTB-Id
(LP: #1928314)
* Add raspi-nolpae kernel flavor to all supported boards (LP: #1962312)
* Added entries for the Pi 4B rev 1.5, and moved CM4 and 400 models to their
own entries for the sake of clarity
* Include overlays/README in the files copied by Method: pi
-- Dave Jones <dave.jones at canonical.com> Mon, 18 Apr 2022 12:13:13
+0100
** Changed in: flash-kernel (Ubuntu)
Status: Confirmed => Fix Released
--
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/1928314
Title:
Wrong DTB chosen for Raspberry Pi Compute Module 4 (all.db)
Status in flash-kernel package in Ubuntu:
Fix Released
Bug description:
When using Ubuntu on a Raspberry Pi Compute Module 4 Rev 1.0, the DTB
for Model 4B is chosen. This is incorrect, as the CM4 has a dedicated
DTB file to be used instead (slightly different hardware).
The incorrect section in 'all.db' is this one:
Machine: Raspberry Pi 4 Model B
Machine: Raspberry Pi 4 Model B Rev 1.1
Machine: Raspberry Pi 4 Model B Rev 1.2
Machine: Raspberry Pi 4 Model B Rev 1.4
Machine: Raspberry Pi Compute Module 4 Rev 1.0
Machine: Raspberry Pi 400 Rev 1.0
Machine: Raspberry Pi *
Kernel-Flavors: raspi
Method: pi
DTB-Id: bcm2711-rpi-4-b.dtb
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools
which assigns the 4B DTB also to the CM4. The correct DTB assignment
for the CM4 would be:
DTB-Id: bcm2711-rpi-cm4.dtb
So, I successfully fixed this issue locally by adding the following
section at the start of the 'all.db' file:
Machine: Raspberry Pi Compute Module 4 Rev 1.0
Kernel-Flavors: raspi
Method: pi
DTB-Id: bcm2711-rpi-cm4.dtb
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools
and removing the line
Machine: Raspberry Pi Compute Module 4 Rev 1.0
from the original section.
This works nicely, but I am not sure about any implications for other
systems. Could someone please have a look into this.
Side note: The catch-all line
Machine: Raspberry Pi *
might make it harder to use strict alphabetic ordering of the Machine
entries, as the CM4 entry must be inserted *before* the catch-all line
in order to be effective.
Thank you for your consideration.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1928314/+subscriptions
More information about the foundations-bugs
mailing list