[Bug 2086774] Re: [SRU] Add CM5 to flash-kernel database
Steve Ramage
2086774 at bugs.launchpad.net
Sat Jun 28 01:26:31 UTC 2025
Assuming you are on Ubuntu 24.04.2, and also I can't speak to the wisdom
of the following. :D. But I assume this will all be fixed in 24.04.03 or
24.04.04. But to get around all the errors I did the following. Your
mileage may vary, and I can't speak to the wisdom of what I'm doing
below :D.
1. I ran an apt-get dist-upgrade to upgrade everything, this will fail.
2. I then downloaded a few newer versions of packages, from the links above. You should find the packages yourself instead of trusting blind links from account that posts every 5 years :).
wget http://launchpadlibrarian.net/794517346/flash-kernel_3.107ubuntu13~24.04.4_arm64.deb
wget https://people.canonical.com/~juergh/lp2111928/linux-buildinfo-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget https://people.canonical.com/~juergh/lp2111928/linux-headers-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget https://people.canonical.com/~juergh/lp2111928/linux-image-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
wget https://people.canonical.com/~juergh/lp2111928/linux-modules-6.8.0-1028-raspi_6.8.0-1028.32+cbd1_arm64.deb
The linux images are in a message in the 2nd bug report. I don't
remember where I got the first from, but you just need to find the fixed
version for the flash kernel.
3. dpkg -i *.deb
This will fail, but that's fine, it should complain about newer images
of linux-image-6.8.0, I would make sure that 6.8.0-1028 installs though,
if not try the following:
3a. apt-get install -f
(I think it will find one more package, it needs if the debs can't
install).
4. I then remove the newer version of the kernel to stop it from upgrading
apt-get remove linux-image-6.8.0-1029-raspi
5. Then remove the current kernel
apt-get remove --purge linux-image-6.8.0-1018-raspi linux-
headers-6.8.0-1018-raspi linux-modules-6.8.0-1018-raspi
You'll get a prompt asking you to abort, hit no.
6. Hold the packages that we installed
sudo apt-mark hold flash-kernel \
linux-buildinfo-6.8.0-1028-raspi \
linux-headers-6.8.0-1028-raspi \
linux-image-6.8.0-1028-raspi \
linux-modules-6.8.0-1028-raspi
I hope this will stop future upgrades from breaking the system maybe.
7. Before rebooting make sure dpkg -i *.deb completes without errors, and that apt-get dist-upgrade says there is nothing to do.
--
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/2086774
Title:
[SRU] Add CM5 to flash-kernel database
Status in flash-kernel package in Ubuntu:
Fix Released
Status in flash-kernel source package in Noble:
Fix Released
Status in flash-kernel source package in Oracular:
Fix Released
Bug description:
[ Impact ]
flash-kernel unable to complete successfully on the CM5 (also implying
kernel upgrades will fail).
[ Test Plan ]
* Boot $series release image on CM5
* 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.
[ Other Info ]
Note to SRU reviewers: on the subject of the version number, I've
bumped it to the plucky version (plus a ~release suffix) simply
because after diff'ing noble->oracular->plucky the only differences
are in the changelog, so the version may as well reflect that this is
effectively the (current) plucky version back-ported (I say "current"
because next on the todo list is to merge flash-kernel in plucky to
upstream's 3.108).
Add entry for the Raspberry Pi CM5 to the flash-kernel devices
database, specifically:
Machine: Raspberry Pi Compute Module 5 Rev 1.0
Machine: Raspberry Pi Compute Module 5 Rev *
Kernel-Flavors: raspi raspi-realtime
Method: pi
DTB-Id: bcm2712-rpi-cm5-cm5io.dtb
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2086774/+subscriptions
More information about the foundations-bugs
mailing list