OpenSBI 0.8 backport

Bug #1905456 reported by Dimitri John Ledkov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
opensbi (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

OpenSBI 0.8 backport

[Impact]

 * OpenSBI is used to create RISC-V images for various boards and to boot RISC-V virtual machines.

 * 0.7 & 0.8 add support for more hardware, but are otherwise backwards compatible.

 * qemu/virt file location got moved to generic, add backwards compatible symlink for it, to avoid breaking any stable users.

[Test Case]

 * Boot cpc hirsute cloud image using opensbi fw loader from qemu/virt and generic location

[Where problems could occur]

 * OpenSBI adds more hardware features, which some kernels might not be compatible with. Given how quickly the platform evolves newer OpenSBI is better. But things may fail to boot, or missbehave - i.e. a VM that used to boot and not work, will now boot and not work differently =) for example there are shutdown/poweroff/reboot issues with any sets of opensbi & Ubuntu kernels.

[Other Info]

OpenSBI Version 0.8
@avpatel avpatel released this on 20 Jun

This release has:

Simple FDT timer driver framework
Simple FDT ipi driver framework
Simple FDT irqchip driver framework
Simple FDT serial framework
Generic FDT based platform support
Nuclei UX600 platform support
Detect HART CSRs at boot time
Multi-PLIC support
Multi-CLINT support
Allow multiple builtin DTBs
Hypervisor v0.6.1 specification support
Shakti C-class platform support

OpenSBI Version 0.7
@avpatel avpatel released this on 20 Apr

This release has:

Lots of code cleanups
Lots of performance improvements
SBI v0.2 HSM extension
Simple bitops library
Simple bitmap library
Simple hartmask library
Sparse and discontinuous HART id support
Memory reservation in DTB passed to next booting stage
OpenPiton platform support

Changed in opensbi (Ubuntu):
status: New → Won't Fix
status: Won't Fix → Fix Released
Changed in opensbi (Ubuntu Focal):
status: New → Triaged
Changed in opensbi (Ubuntu Focal):
status: Triaged → In Progress
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted opensbi into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/opensbi/0.8-1~ubuntu0.20.04.1 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 opensbi (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

qemu-system-riscv64 -machine virt -m 2048 -smp 4 -device virtio-blk-device,drive=vda -drive file=focal-riscv64-20200422.qcow2,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -bios /usr/lib/riscv64-linux-gnu/opensbi/qemu/virt/fw_jump.elf -device loader,file=/usr/lib/u-boot/qemu-riscv64_smode/uboot.elf,addr=0x80200000 -nographic

Booted.

And also

qemu-system-riscv64 -machine virt -m 2048 -smp 4 -device virtio-blk-device,drive=vda -drive file=focal-riscv64-20200422.qcow2,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -device loader,file=/usr/lib/u-boot/qemu-riscv64_smode/uboot.elf,addr=0x80200000 -nographic

with

$ dpkg-query -W | grep -e qemu-system-misc -e u-boot -e opensbi
opensbi 0.8-1~ubuntu0.20.04.1
qemu-system-misc 1:4.2-3ubuntu6.10
u-boot-qemu 2020.10+dfsg-1ubuntu0~20.04.1

Thus confirming that both existing, and future proof usecases of opensbi work correctly.

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

This bug was fixed in the package opensbi - 0.8-1~ubuntu0.20.04.1

---------------
opensbi (0.8-1~ubuntu0.20.04.1) focal; urgency=medium

  * HWE enablement backport LP: #1905456:
    - preserve qemu/virt as a symlink to generic
    - use debhelper-compat 12, as 13 did not make into focal

opensbi (0.8-1) unstable; urgency=medium

  * New upstream version.
  * u-boot-qemu: Update for transition from "qemu/virt" to "generic"
    platform.
  * debian/control: Update to debhelper compatibility 13.

opensbi (0.7-1) unstable; urgency=medium

  * New upstream version.
  * debian/copyright: Update.

 -- Dimitri John Ledkov <email address hidden> Tue, 24 Nov 2020 18:57:01 +0000

Changed in opensbi (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for opensbi 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.

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.