Provide .bin files too

Bug #1910134 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
Groovy
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * In addition to .elf binaries, also ship the flat .bin files. Needed to create SPI images for the Unleashed firmware.

[Test Case]

 * The .bin cannot be used directly, as they are consumed by u-boot built-process, thus .bin will be validated by booting a livecd-rootfs image for the first time, once this SRU is out, and u-boot sru that uses these is out as well.

 * Given this is a rebuilt of OpenSBI it would be nice to double check that qemu (generic) platform still behaves correctly by executing test case from https://bugs.launchpad.net/ubuntu/+source/opensbi/+bug/1905456

[Where problems could occur]

 * Extra files are being shipped which will increase package size. Given it is a rebuild, the qemu platform files are verified to be working correctly.

Changed in opensbi (Ubuntu Hirsute):
status: New → Fix Released
Changed in opensbi (Ubuntu Groovy):
status: New → In Progress
Changed in opensbi (Ubuntu Focal):
status: New → In Progress
milestone: none → ubuntu-20.04.2
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Not too happy with the test case, but also not much else one can do. Especially that the SRU itself is trivial with no real risk of regressions. Accepting.

Changed in opensbi (Ubuntu Groovy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-groovy
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted opensbi into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/opensbi/0.8-1ubuntu0.20.10.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-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. 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.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

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.2 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-focal
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

opensbi 0.8-1ubuntu0.20.10.1
/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_dynamic.bin is present in groovy

qemu-system-riscv64 -machine virt -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-blk-device,drive=vda -drive file=hirsute-server-cloudimg-riscv64.img,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -nographic

booted fine to command-line login prompt.

tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

opensbi 0.8-1~ubuntu0.20.04.2

/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_dynamic.bin is present in focal

qemu-system-riscv64 -machine virt -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-blk-device,drive=vda -drive file=hirsute-server-cloudimg-riscv64.img,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -nographic

booted fine to command-line login prompt.

And also, the legacy path, did too:
qemu-system-riscv64 -machine virt -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/qemu/virt/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-blk-device,drive=vda -drive file=hirsute-server-cloudimg-riscv64.img,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0 -nographic

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-1ubuntu0.20.10.1

---------------
opensbi (0.8-1ubuntu0.20.10.1) groovy; urgency=medium

  * Also install fw_*.bin, for embedding into e.g. U-Boot FITs. LP: #1910134

 -- Dimitri John Ledkov <email address hidden> Mon, 04 Jan 2021 18:44:24 +0000

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * Also install fw_*.bin, for embedding into e.g. U-Boot FITs. LP: #1910134

 -- Dimitri John Ledkov <email address hidden> Mon, 04 Jan 2021 18:36:36 +0000

Changed in opensbi (Ubuntu Focal):
status: Fix Committed → 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.