[SRU] Add CM5 Lite to flash-kernel database
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-
U-Boot-Script-Name: bootscr.rpi
Required-Packages: u-boot-tools
Related branches
- Ubuntu Sponsors: Pending (sru) requested
-
Diff: 354 lines (+57/-37)2 files modifieddb/all.db (+45/-37)
debian/changelog (+12/-0)
- Heinrich Schuchardt (community): Needs Fixing (review)
- Ubuntu Sponsors: Pending (sru) requested
-
Diff: 354 lines (+57/-37)2 files modifieddb/all.db (+45/-37)
debian/changelog (+12/-0)
- Ubuntu Sponsors: Pending (sru) requested
-
Diff: 393 lines (+62/-42)2 files modifieddb/all.db (+50/-42)
debian/changelog (+12/-0)
- Ubuntu Sponsors: Pending requested
-
Diff: 5769 lines (+4743/-133)22 files modifiedREADME (+9/-0)
bootscript/all/bootscr.rpi (+109/-0)
bootscript/arm64/bootscr.mediatek-aiot (+70/-0)
bootscript/arm64/bootscr.zynqmp (+226/-0)
bootscript/arm64/bootscr.zynqmp.kria (+207/-0)
db/all.db (+292/-82)
debian/changelog (+2500/-0)
debian/control (+4/-2)
debian/flash-kernel-installer.install (+1/-0)
debian/flash-kernel-installer.postinst.in (+10/-1)
debian/flash-kernel.postinst (+14/-6)
debian/rules (+7/-0)
functions (+282/-38)
initramfs-tools/hooks/flash_kernel_set_root (+7/-0)
its/arm64/image-kria.its (+161/-0)
its/arm64/image-mediatek-aiot-i1200.its (+111/-0)
its/arm64/image-mediatek-aiot-i500.its (+255/-0)
its/arm64/image-nxp-s32.its (+61/-0)
its/arm64/image-zcu.its (+50/-0)
post-base-installer.d/01flash-kernel-diversion (+9/-0)
test_db (+1/-1)
test_functions (+357/-3)
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 |
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 |
Changed in flash-kernel (Ubuntu Noble): | |
milestone: | ubuntu-24.04.2 → noble-updates |
Changed in flash-kernel (Ubuntu Plucky): | |
status: | New → Confirmed |
Changed in flash-kernel (Ubuntu Plucky): | |
assignee: | nobody → Dave Jones (waveform) |
importance: | Undecided → Medium |
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: base-installer. d to avoid update-initramfs runs before flash-kernel installer, installer. d/01flash- kernel- diversion actually an initramfs from flash-kernel- installer, else we do not find the flash-kernel content to new default without functions: Stop attempting to install the latest kernel $kvers/ device- tree/ in find_dtb_file()
- 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-
is configured
- add a check for the diverted update-initramfs to flash-kernel-
so it gets reverted before we try to call update-initramfs
- make post-base-
executable shell script
- make sure that /dev is bind mounted in /target when running
update-
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/
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/
if we request an older version, just refuse to act without --force.
- Look for dtbs in /lib/firmware/
- 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...