[Bug 2054304] [NEW] [SRU] Jammy RISC-V nezha and licheerv (allwinner kernel) images failing to build

Ɓukasz Zemczak 2054304 at bugs.launchpad.net
Mon Feb 19 11:22:18 UTC 2024


Public bug reported:

[ Impact ]

The new allwinner kernel in jammy (20.04) no longer has the "-allwinner"
flavour suffix, but "-generic". This results in flash-kernel failing to
match the kernel when running (and f-k failing to run causes apt upgrade
to fail). The "Kernel-Flavor:" field for all boards which are currently
limited to "allwinner riscv64" should be changed to "any"; this matches
the state in noble.


[ Test Plan ]

There are three entries in the f-k database which are affected:

* Allwinner D1 Nezha
* Sipeed Lichee RV
* Sipeed Lichee RV Dock

Ideally, a jammy image should be tested on each of these three boards as
follows:

* Install jammy image
* Enable proposed (https://wiki.ubuntu.com/Testing/EnableProposed)
* sudo apt install -t jammy-proposed flash-kernel
* sudo apt update; sudo apt full-upgrade
* Upgrade should run successfully without apt dying during flash-kernel
* Verify freshly installed kernel is from the 6.5 series and is "-generic" flavour
* sudo reboot
* Check system reboots and is operational afterward


[ Regression Potential ]

Database changes in flash-kernel should only affect the listed boards,
and the move to "any" makes the entry less restrictive which is
generally a "safer" change. However if, for any reason, one of these
boards has an unsupported kernel flavour with a later version installed,
that will cause a regression as flash-kernel will now select that kernel
for installation. This shouldn't be the case in any supported
configuration, but is a possibility to be aware of.


[ Original Description ]

Since the beginning of the year, all jammy -allwinner kernel based
images are failing to build, aka. the nezha and licheerv subarch ones.
It looks like the problem is with the new allwinner kernel, now needing
some changes to flash-kernel to properly handle it during DTB
preparation.

** Affects: flash-kernel (Ubuntu)
     Importance: Critical
         Status: Invalid

** Affects: flash-kernel (Ubuntu Jammy)
     Importance: Critical
     Assignee: Dave Jones (waveform)
         Status: In Progress

** Also affects: flash-kernel (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Changed in: flash-kernel (Ubuntu)
       Status: New => Invalid

** Changed in: flash-kernel (Ubuntu Jammy)
       Status: New => In Progress

** Changed in: flash-kernel (Ubuntu Jammy)
   Importance: Undecided => Critical

** Changed in: flash-kernel (Ubuntu Jammy)
     Assignee: (unassigned) => Dave Jones (waveform)

** Changed in: flash-kernel (Ubuntu Jammy)
    Milestone: None => ubuntu-22.04.4

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

Title:
  [SRU] Jammy RISC-V nezha and licheerv (allwinner kernel) images
  failing to build

Status in flash-kernel package in Ubuntu:
  Invalid
Status in flash-kernel source package in Jammy:
  In Progress

Bug description:
  [ Impact ]

  The new allwinner kernel in jammy (20.04) no longer has the
  "-allwinner" flavour suffix, but "-generic". This results in flash-
  kernel failing to match the kernel when running (and f-k failing to
  run causes apt upgrade to fail). The "Kernel-Flavor:" field for all
  boards which are currently limited to "allwinner riscv64" should be
  changed to "any"; this matches the state in noble.

  
  [ Test Plan ]

  There are three entries in the f-k database which are affected:

  * Allwinner D1 Nezha
  * Sipeed Lichee RV
  * Sipeed Lichee RV Dock

  Ideally, a jammy image should be tested on each of these three boards
  as follows:

  * Install jammy image
  * Enable proposed (https://wiki.ubuntu.com/Testing/EnableProposed)
  * sudo apt install -t jammy-proposed flash-kernel
  * sudo apt update; sudo apt full-upgrade
  * Upgrade should run successfully without apt dying during flash-kernel
  * Verify freshly installed kernel is from the 6.5 series and is "-generic" flavour
  * sudo reboot
  * Check system reboots and is operational afterward

  
  [ Regression Potential ]

  Database changes in flash-kernel should only affect the listed boards,
  and the move to "any" makes the entry less restrictive which is
  generally a "safer" change. However if, for any reason, one of these
  boards has an unsupported kernel flavour with a later version
  installed, that will cause a regression as flash-kernel will now
  select that kernel for installation. This shouldn't be the case in any
  supported configuration, but is a possibility to be aware of.

  
  [ Original Description ]

  Since the beginning of the year, all jammy -allwinner kernel based
  images are failing to build, aka. the nezha and licheerv subarch ones.
  It looks like the problem is with the new allwinner kernel, now
  needing some changes to flash-kernel to properly handle it during DTB
  preparation.

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




More information about the foundations-bugs mailing list