[SRU] Add CM5 Lite to flash-kernel database

Bug #2097008 reported by Dave Jones
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Status tracked in Questing
Noble
Fix Released
Medium
Dave Jones
Oracular
Fix Released
Medium
Dave Jones
Plucky
Fix Released
Medium
Dave Jones
Questing
Fix Released
High
Dave Jones

Bug Description

[ Impact ]

flash-kernel unable to complete successfully on the CM5 Lite (also implying kernel upgrades will fail).

[ Test Plan ]

For each affected $series:

* Flash $series to SD card and move card to CM5 Lite
* Boot image on CM5 Lite
* sudo flash-kernel
* Note "Unsupported platform error"
* sudo apt install -t $series-proposed flash-kernel
* sudo flash-kernel
* flash-kernel complete successfully

To guard against regression, re-test on other supported platforms

[ Where problems could occur ]

Only the database db/all.db is changed. Test plan includes test of operation on other supported platforms to guard against regression, and checks before and after states to ensure issue is present and actually fixed.

[ Original Description ]

As reported in comment 9 of LP: #2086774 we need other matches for the CM5 Lite in the flash-kernel database. Will update for SRU template shortly. Add entry for the Raspberry Pi CM5 to the flash-kernel devices database, specifically:

Machine: Raspberry Pi Compute Module 5 Lite Rev 1.0
Machine: Raspberry Pi Compute Module 5 Lite Rev *
Kernel-Flavors: raspi raspi-realtime
Method: pi
DTB-Id: bcm2712-rpi-cm5l-cm5io.dtb
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools

Related branches

Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Oracular):
assignee: nobody → Dave Jones (waveform)
Changed in flash-kernel (Ubuntu):
assignee: nobody → Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Noble):
assignee: nobody → Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Oracular):
status: New → Confirmed
Changed in flash-kernel (Ubuntu):
status: New → Confirmed
Changed in flash-kernel (Ubuntu Noble):
status: New → Confirmed
Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Noble):
milestone: none → ubuntu-24.04.2
importance: Undecided → Medium
Changed in flash-kernel (Ubuntu Oracular):
importance: Undecided → Medium
Changed in flash-kernel (Ubuntu):
importance: Undecided → High
Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Noble):
milestone: ubuntu-24.04.2 → noble-updates
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (10.3 KiB)

This bug was fixed in the package flash-kernel - 3.109ubuntu1

---------------
flash-kernel (3.109ubuntu1) questing; urgency=medium

  * Merge with Debian unstable (LP: #2109835). Remaining changes:
    - Add support for Raspberry Pi 2, 3, 3+, CM3, CM3+, and 4 using a
      unified bootscript (replaces upstream's entries)
      + Update pi bootscript to support all flash-kernel vars, including
        calculated devtype and partition for future USB boot support
      + Add entry for Raspberry Pi 3A+
      + Add entry for Raspberry Pi CM4
      + Add entry for Raspberry Pi 400
      + Import UC20 updates to the rpi bootscript from the snappy-dev/image
        PPA
    - Add Kernel-Flavors check to Raspberry Pi entries
      + Support "raspi" kernel flavor
    - use umount -l in the cleanup function, else we fail while finishing up
      with the script
    - add a diversion for update-initramfs to live-installers
      post-base-installer.d to avoid update-initramfs runs before flash-kernel
      is configured
    - add a check for the diverted update-initramfs to flash-kernel-installer,
      so it gets reverted before we try to call update-initramfs
    - make post-base-installer.d/01flash-kernel-diversion actually an
      executable shell script
    - make sure that /dev is bind mounted in /target when running
      update-initramfs from flash-kernel-installer, else we do not find the
      boot media (this is only a workaround, actual fixing of the netinst
      environment is needed to fix this properly)
    - drop the "|| true" from the initramfs building code, if we fail here we
      actually dont want to attempt to flash that
    - Do not run flash-kernel inside an LXC container
    - Migrate default /etc/default/flash-kernel content to new default without
      asking via debconf
    - Filter the selection of 'latest' usable kernel through the whitelist.
    - Do not fail if there are no specified Kernel-Flavors for this machine.
    - flash-kernel/functions: Stop attempting to install the latest kernel
      if we request an older version, just refuse to act without --force.
    - Look for dtbs in /lib/firmware/$kvers/device-tree/ in find_dtb_file()
    - Allow us to find DTBs in both the old flat layout and the new vendor
      subdirectory layout, so we keep backward compatibility
    - Add support for gzip-compressed kernel images
    - Fix mkimage_kernel tests
    - Add tests for android-related functions
    - Add "pi" value for the "Method" field which copies all dtbs and
      overlays to the boot partition and provides defaults for the boot
      paths of the kernel, initrd, and u-boot script.
      + This fixes upgrades to support the Pi 4 on Bionic
      + Permit initrd to be missing in flash-kernel
      + Make U-boot optional in the "pi" method. From Groovy onwards, U-Boot
        will be an option in the boot chain but not activated by default.
        For the time being, the U-Boot-Script-Name will remain in the Pi
        entries, but this commit permits it to be blank in future.
      + Copy the Pi's bootloader firmware. At present, the Pi's bootloader
        firmware is being copied to the boot partition by the pos...

Changed in flash-kernel (Ubuntu Questing):
status: Confirmed → Fix Released
Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Plucky):
status: New → Confirmed
Dave Jones (waveform)
Changed in flash-kernel (Ubuntu Plucky):
assignee: nobody → Dave Jones (waveform)
importance: Undecided → Medium
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

still missing the sru info

Revision history for this message
Dave Jones (waveform) wrote :

Bah, sorry -- forgot to copy'n'paste this from the linked bug

description: updated
Changed in flash-kernel (Ubuntu Noble):
milestone: noble-updates → ubuntu-24.04.3
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Dave, or anyone else affected,

Accepted flash-kernel into plucky-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.108ubuntu2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-plucky to verification-done-plucky. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-plucky. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in flash-kernel (Ubuntu Plucky):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-plucky
Changed in flash-kernel (Ubuntu Oracular):
status: Confirmed → Fix Committed
tags: added: verification-needed-oracular
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Dave, or anyone else affected,

Accepted flash-kernel into oracular-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.107ubuntu13~24.10.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-oracular to verification-done-oracular. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-oracular. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in flash-kernel (Ubuntu Noble):
status: Confirmed → Fix Committed
tags: added: verification-needed-noble
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Dave, or anyone else affected,

Accepted flash-kernel into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.107ubuntu13~24.04.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
David Cunningham (davidcunningham) wrote :

Verificaton failed on noble.

Looks like the device tree blob is missing:

```dj@deejnet-a8fd:~$ sudo flash-kernel
Unsupported platform 'Raspberry Pi Compute Module 5 Lite Rev 1.0'.
dj@deejnet-a8fd:~$ sudo apt install -t noble-proposed flash-kernel
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-6.8.0-1019-raspi linux-image-6.8.0-1020-raspi linux-modules-6.8.0-1019-raspi linux-modules-6.8.0-1020-raspi
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  flash-kernel
1 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 50.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports noble-proposed/main arm64 flash-kernel arm64 3.107ubuntu13~24.04.4 [50.1 kB]
Fetched 50.1 kB in 0s (311 kB/s)
Preconfiguring packages ...
(Reading database ... 72486 files and directories currently installed.)
Preparing to unpack .../flash-kernel_3.107ubuntu13~24.04.4_arm64.deb ...
Unpacking flash-kernel (3.107ubuntu13~24.04.4) over (3.107ubuntu13~24.04.2) ...
Setting up initramfs-tools (0.142ubuntu25.5) ...
update-initramfs: deferring update (trigger activated)
Setting up flash-kernel (3.107ubuntu13~24.04.4) ...
Using DTB: bcm2712-rpi-cm5l-cm5io.dtb
flash-kernel: deferring update (trigger activated)
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for initramfs-tools (0.142ubuntu25.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-1028-raspi
Using DTB: bcm2712-rpi-cm5l-cm5io.dtb
Couldn't find DTB bcm2712-rpi-cm5l-cm5io.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image-6.8.0-1028-raspi /lib/firmware/6.8.0-1028-raspi/device-tree/
Installing into /boot/dtbs/6.8.0-1028-raspi/./bcm2712-rpi-cm5l-cm5io.dtb
cp: cannot stat '': No such file or directory
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)```

tags: added: verification-failed-noble
removed: verification-needed-noble
Revision history for this message
Dave Jones (waveform) wrote :

Verified on plucky on CM5 lite and regular Pi 5 (to guard against regression). On CM5 lite: current release version failed as expected, proposed version succeeded. Both versions worked on Pi 5.

tags: added: verification-done-plucky
removed: verification-needed-plucky
Revision history for this message
Dave Jones (waveform) wrote :

Verified on oracular on CM5 lite and regular Pi 5. Same story as plucky.

tags: added: verification-done-oracular
removed: verification-needed-oracular
Revision history for this message
Dave Jones (waveform) wrote (last edit ):

Thanks to @davidcunningham for the verification attempt on noble. You're correct that currently this can't work on noble as it's not going to boot without that dtb. However, I'm going to mark that release verification done because, while it's not *sufficient* to support CM5 lite, it is *part* of a pre-requisite to support the CM5 lite on noble (we also need to add that dtb to the linux-raspi package).

After manually copying the missing dtbs (bcm2712-rpi-cm5l-*.dtb) to the boot partition (and kernel firmware path) of the noble image, verification proceeded as on oracular / plucky: current released version of flash-kernel fails as expected ("unsupported platform"), while proposed version completes successfully (both release and proposed also tested on Pi 5 to guard against regressions).

tags: added: verification-done-noble
removed: verification-failed-noble
Revision history for this message
Dave Jones (waveform) wrote :

Filed LP: #2111928 to track the missing dtbs in linux-raspi

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.108ubuntu2.2

---------------
flash-kernel (3.108ubuntu2.2) plucky; urgency=medium

  * db/all.db: Add CM5 Lite to flash-kernel database (LP: #2097008)

flash-kernel (3.108ubuntu2.1) plucky; urgency=medium

  * db/all.db: Fix entries with "Kernel-Flavors: arm64". (LP: #2092737)

 -- Pragyansh Chaturvedi <email address hidden> Mon, 05 May 2025 13:44:03 +0530

Changed in flash-kernel (Ubuntu Plucky):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for flash-kernel has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.107ubuntu13~24.10.4

---------------
flash-kernel (3.107ubuntu13~24.10.4) oracular; urgency=medium

  * db/all.db: Add CM5 Lite to flash-kernel database (LP: #2097008)

flash-kernel (3.107ubuntu13~24.10.3) oracular; urgency=medium

  * db/all.db: Fix entries with "Kernel-Flavors: arm64". (LP: #2092737)

 -- Pragyansh Chaturvedi <email address hidden> Mon, 05 May 2025 13:52:52 +0530

Changed in flash-kernel (Ubuntu Oracular):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.107ubuntu13~24.04.4

---------------
flash-kernel (3.107ubuntu13~24.04.4) noble; urgency=medium

  * db/all.db: Add CM5 Lite to flash-kernel database (LP: #2097008)

flash-kernel (3.107ubuntu13~24.04.3) noble; urgency=medium

  * db/all.db: Fix entries with "Kernel-Flavors: arm64". (LP: #2092737)

 -- Pragyansh Chaturvedi <email address hidden> Mon, 05 May 2025 13:58:00 +0530

Changed in flash-kernel (Ubuntu Noble):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.