SRU flash-kernel to add support for RISC-V boards

Bug #1978923 reported by Alexandre Ghiti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

The image for the StarFive VisionFive and the Nezha boards will be available in 22.04.1: in order to be able to boot using UEFI, we need flash-kernel to install the DTBs to the right location for GRUB to load, so we need to add those boards to the flash-kernel database.

[Test Plan]

I tested the version that built here [1] on the VisionFive board, and flash-kernel worked correctly:

ubuntu@ubuntu:~$ sudo dpkg -i flash-kernel_3.104ubuntu11~ppa0_riscv64.deb
Selecting previously unselected package flash-kernel.
(Reading database ... 94352 files and directories currently installed.)
Preparing to unpack flash-kernel_3.104ubuntu11~ppa0_riscv64.deb ...
Unpacking flash-kernel (3.104ubuntu11~ppa0) ...
Setting up flash-kernel (3.104ubuntu11~ppa0) ...
Installing new version of config file /etc/flash-kernel/bootscript/bootscr.uboot-generic ...
Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1001-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.17.0-1001-starfive/starfive/jh7100-starfive-visionfive-v1.dtb
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1001-starfive
 Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1001-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.17.0-1001-starfive/starfive/jh7100-starfive-visionfive-v1.dtb
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
Installing /lib/firmware/5.17.0-1001-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.17.0-1001-starfive/starfive/jh7100-starfive-visionfive-v1.dtb
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
System running in EFI mode, skipping.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for flash-kernel (3.104ubuntu11~ppa0) ...
Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1001-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.17.0-1001-starfive/starfive/jh7100-starfive-visionfive-v1.dtb
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
System running in EFI mode, skipping.

[1] https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+sourcepub/13689678/+listing-archive-extra

[Where problems could occur]

The changes are board-specific so it should not alter the behaviour on other boards and unfortunately, I tried flash-kernel on a non-working kernel as the kernel team is still working on it, but the changes are straightforward enough.

[Other Info]

I added support for the LicheeRV board although not officially supported, but as it works well with our current kernel, we'd better have it available.
Note that I dropped the ~22.04.1 suffix and moved to 3.104ubuntu11 as @waveform has just uploaded 3.106ubuntu1 into kinetic (which already contains the support for those boards).

description: updated
description: updated
Changed in flash-kernel (Ubuntu):
status: New → Fix Committed
Changed in flash-kernel (Ubuntu):
status: Fix Committed → New
Revision history for this message
Dave Jones (waveform) wrote :

Looks good; I've uploaded this to jammy-proposed (minus the ~ppa0 suffix obviously), and targetted the bug to jammy. Could you remove ubuntu-sponsors from the notification list? Thanks!

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Alexandre, or anyone else affected,

Accepted flash-kernel into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/flash-kernel/3.104ubuntu11 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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 Jammy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Alexandre Ghiti (alexghiti) wrote :

Installed on the VisionFive board and rebooted successfully:

ubuntu@ubuntu:~$ sudo dpkg -i flash-kernel_3.104ubuntu11_riscv64.deb
(Reading database ... 71987 files and directories currently installed.)
Preparing to unpack flash-kernel_3.104ubuntu11_riscv64.deb ...
Unpacking flash-kernel (3.104ubuntu11) over (3.104ubuntu11) ...
Setting up flash-kernel (3.104ubuntu11) ...
Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1003-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.b
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1003-starfive
Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1003-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.b
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
Installing /lib/firmware/5.17.0-1003-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.b
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
System running in EFI mode, skipping.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for flash-kernel (3.104ubuntu11) ...
Using DTB: starfive/jh7100-starfive-visionfive-v1.dtb
Installing /lib/firmware/5.17.0-1003-starfive/device-tree/starfive/jh7100-starfive-visionfive-v1.dtb into /boot/dtbs/5.b
Taking backup of jh7100-starfive-visionfive-v1.dtb.
Installing new jh7100-starfive-visionfive-v1.dtb.
System running in EFI mode, skipping.

And on the Nezha board with an image that was built with this version, the image booted fine.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flash-kernel - 3.104ubuntu11

---------------
flash-kernel (3.104ubuntu11) jammy; urgency=medium

  * Add support for VisionFive, Nezha and LicheeRV boards (LP: #1978923)

 -- Alexandre Ghiti <email address hidden> Wed, 15 Jun 2022 13:40:27 +0200

Changed in flash-kernel (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) 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.

Changed in flash-kernel (Ubuntu):
status: New → 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.