Fwupd missing uefi plugin for riscv64

Bug #1939138 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fwupd (Ubuntu)
Fix Released
Wishlist
Heinrich Schuchardt
fwupd-efi (Ubuntu)
Fix Released
Wishlist
Heinrich Schuchardt
fwupd-signed (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Architecture riscv64 is missing for package fwupd-signed.

tags: added: fr-1554
Revision history for this message
Mario Limonciello (superm1) wrote :

I've made the changes to the packaging for this, I need to get it sponsored in Debian and then it will come back to Ubuntu.

https://salsa.debian.org/efi-team/fwupd-efi/-/commit/b3a4d994820f7e8061f12ca12dfe718703e39995

Changed in fwupd-efi (Ubuntu):
status: New → Fix Committed
assignee: nobody → Mario Limonciello (superm1)
Revision history for this message
Mario Limonciello (superm1) wrote :

So I had a look some more and this is still going to fail, it needs changes in fwupd too.

If you want to see this happen, I'll need you to help with a few things:

0) Does riscv64 have the concept of UEFI secure boot?
If not, then we need to think about what gets signed lots of various code paths in fwupd and fwupd-efi. My template packaging changes might not even make sense anymore.

1) What is the suffix for EFI binaries on riscv64? I looked and don't see GRUB or SHIM building binaries for it.

2) Please submit a patch to fwupd upstream with the support for this suffix here: https://github.com/fwupd/fwupd/blob/204da7a7750d1fa126f3cb913372446821eb6d0b/plugins/uefi-capsule/fu-uefi-common.c#L18

3) can you please make sure that both fwupd and fwupd-efi source packages can build on riscv64 and don't need other code changes?

I'll help land any changes that are needed upstream, but I'll need you to find them first.

Changed in fwupd-efi (Ubuntu):
assignee: Mario Limonciello (superm1) → Heinrich Schuchardt (xypron)
status: Fix Committed → Triaged
Changed in fwupd-signed (Ubuntu):
status: New → Invalid
Changed in fwupd (Ubuntu):
status: New → Triaged
assignee: nobody → Heinrich Schuchardt (xypron)
summary: - fwupd-signed missing for riscv64
+ Fwupd missing uefi plugin for riscv64
Revision history for this message
Mario Limonciello (superm1) wrote :

You can see the build failure for fwupd-efi when riscv64 is added to architectures:
https://launchpadlibrarian.net/580380222/buildlog_ubuntu-jammy-riscv64.fwupd-efi_1%3A1.1-4_BUILDING.txt.gz

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Hello Mario,

first thing to work on will be https://github.com/fwupd/fwupd-efi.

I have forked it on https://github.com/xypron/fwupd-efi/tree/riscv. But when building on riscv64 it gave me an error for some x86_64 specific include (cpuid.h). Any suggestions?

Best regards

Heinrich

Revision history for this message
Mario Limonciello (superm1) wrote :

I opened up this upstream https://github.com/fwupd/fwupd-efi/issues/19. Share your build log there and hughsie and I can comment on any ideas we have.

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

This bug was fixed in the package fwupd-efi - 1:1.2-2

---------------
fwupd-efi (1:1.2-2) unstable; urgency=medium

  * Correct the signing template to use binary package not source package

 -- Mario Limonciello <email address hidden> Wed, 26 Jan 2022 13:15:00 -0600

Changed in fwupd-efi (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Mario Limonciello (superm1) wrote :

That closing the bug was not correct; it's still not sorted upstream, pending Heinrich's work.

Changed in fwupd-efi (Ubuntu):
status: Fix Released → Triaged
Changed in fwupd (Ubuntu):
importance: Undecided → Wishlist
Changed in fwupd-efi (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Mario Limonciello (superm1) wrote :
Changed in fwupd-efi (Ubuntu):
status: Triaged → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
Mario Limonciello (superm1) wrote :

Fwupd 1.9.14 is built with uefi capsules plugin for this architecture.

Changed in fwupd (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I expect we'll be syncing fwupd-efi 1.5 from Debian in the next few days which adds riscv64 support

Changed in fwupd-efi (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Mario Limonciello (superm1) wrote :

> I expect we'll be syncing fwupd-efi 1.5 from Debian in the next few days which adds riscv64 support

It also means syncing gnu-efi 3.0.18. Is that OK at this stage?

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.