[Bug 2012750] Re: flash-kernel breaks when locally built RPI kernels are installed.

MichaƂ Fita 2012750 at bugs.launchpad.net
Wed Feb 7 11:31:34 UTC 2024


One thing that bothers me regarding this report is that Kernels built
for Raspbian don't need `flash-kernel` as they install themselves in
right place, where their bootloader is capable to pick them up. So, if
you're building from unmodified sources, you not only conflict with
`flash-kernel`, but these packages probably do something in `/boot`
directories that's not supported on FAT32 based `/boot` partition
Debian/Ubuntu uses by default.

Your porting should remove Raspbian specific features from them, and
port right method of `/boot` populating into the `flash-kernel`.

-- 
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/2012750

Title:
  flash-kernel breaks when locally built RPI kernels are installed.

Status in flash-kernel package in Ubuntu:
  Expired

Bug description:
  I have been repackaging the Raspberry Pi Foundation's official kernels
  for some time with this script:

  https://gist.github.com/satmandu/a507c59d84737f6d29ff353395819d51

  I could always install these kernels before and have flash-kernel not
  break.

  The updates to flash-kernel in lunar cause it to fail, with a "dpkg-
  query: no packages found matching" message.

  What's the best way to handle this? The kernel packages always end up
  built with naming such as linux-headers-6.1.20-v8+_all.deb and linux-
  image-6.1.20-v8+_arm64.deb.

  I use this in /etc/flash-kernel/db:
  # To override fields include the Machine field and the fields you wish to
  # override.
  #
  # e.g. to override Boot-Device on the Dreamplug to sdb rather than sda
  #
  #Machine: Globalscale Technologies Dreamplug
  #Boot-Device: /dev/sdb1
  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 400 Rev 1.1
  Machine: Raspberry Pi *
  Kernel-Flavors: any
  #Method: pi
  #DTB-Id: bcm2711-rpi-4-b.dtb
  #U-Boot-Script-Name: bootscr.rpi
  #Required-Packages: u-boot-tools

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: flash-kernel 3.106ubuntu14
  Uname: Linux 6.1.20-v8+ aarch64
  ApportVersion: 2.26.0-0ubuntu2
  Architecture: arm64
  CasperMD5CheckResult: unknown
  Date: Fri Mar 24 11:55:21 2023
  ImageMediaBuild: 20211013
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=screen.xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: flash-kernel
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.flash-kernel.db: 2022-03-29T10:53:48.654542

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2012750/+subscriptions




More information about the foundations-bugs mailing list