StarLabsLtd / firmware

71 stars 5 forks source link

[StarBook MkV] can't upgrade to coreboot 8.02 #50

Closed twiztedtbone closed 2 years ago

twiztedtbone commented 2 years ago

Howdy!

Having a weird issue trying to update coreboot.

OS: Arch Current coreboot: 8.00

[xxxx@starpod ~]$ fwupdmgr update
Reading…                 [-                                      ]Devices with no available firmware updates: 
 • 0000:00:1f.5
 • Star Drive PCIe SSD
**StarBook (bios) is not currently updatable: failed to open device for prepare: invalid region name**

I've tried searching for the issue, but the phrase "invalid region name" doesn't actually return any search results that I can find, so I'm at a bit of a loss for next steps.

Lemme know if any additional info would help. T

Sean-StarLabs commented 2 years ago

Can you let me know:

twiztedtbone commented 2 years ago

Sure thing, here ya go:

kernel:

5.18.9

flashrom:

1.2

fwupd:

1.8.2

output:

[xxxx@starpod ~]$ sudo flashrom -p internal
flashrom v1.2 on Linux 5.18.9-arch1-1 (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Opened /dev/mtd0 successfully
Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific) mapped at physical address 0x0000000000000000.
No operations were specified.
Sean-StarLabs commented 2 years ago

Can you run:

sudo fwupdtool get-devices --plugins flashrom --verbose | grep mtd

I would guess towards the end of that output, you'll have:

08:55:30:0532 FuPluginFlashrom Error accessing SPIBAR, 0x1000 bytes at 0x00000000fe010000
08:55:30:0532 FuPluginFlashrom /dev/mem mmap failed: Operation not permitted
08:55:30:0532 FuPluginFlashrom FAILED!
08:55:30:0532 FuPluginFlashrom FATAL ERROR!

Which needs a newer version of fwupd to fix.

twiztedtbone commented 2 years ago

Here ya go:

[xxxx@starpod ~]$ sudo fwupdtool get-devices --plugins flashrom --verbose | grep mtd
14:57:43:0623 FuDebug              Verbose debugging enabled (on console 1)
14:57:43:0623 FuMain               locked /run/lock/fwupdtool
14:57:43:0624 FuMain               Failed to stop daemon: failed to find fwupd.service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit fwupd.service not loaded.
14:57:43:0625 FuConfig             trying to load config values from /etc/fwupd/daemon.conf
14:57:43:0625 FuCommon             reading /etc/fwupd/daemon.conf with 2080 bytes
14:57:43:0625 FuConfig             trying to load config values from /var/etc/fwupd/daemon.conf
14:57:43:0625 FuConfig             using autodetected max archive size 18.4 EB
14:57:43:0625 GLib-GIO             _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
14:57:43:0625 FuRemoteList         loading /usr/share/fwupd/metainfo
14:57:43:0625 XbSilo               attempting to load /var/cache/fwupd/metainfo.xmlb
14:57:43:0625 XbSilo               file: 00acedb6-8b26-e433-2d1b-4ac0456fcfa8, current:00acedb6-8b26-e433-2d1b-4ac0456fcfa8, cached: (null)
14:57:43:0625 XbSilo               loading silo with file contents
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/dell-esrt.conf
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/fwupd-tests.conf
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/lvfs-testing.conf
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/lvfs.conf
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/vendor-directory.conf
14:57:43:0625 FuRemoteList         loading remote from /etc/fwupd/remotes.d/vendor.conf
14:57:43:0625 FuRemoteList         ordering lvfs-testing=lvfs+1
14:57:43:0625 FuRemoteList         ignoring unfound remote fwupd
14:57:43:0625 Jcat                 ignoring GPG-KEY-Linux-Foundation-Firmware as not PKCS-7 certificate
14:57:43:0625 Jcat                 ignoring GPG-KEY-Linux-Vendor-Firmware-Service as not PKCS-7 certificate
14:57:43:0625 Jcat                 reading /etc/pki/fwupd/LVFS-CA.pem with 1679 bytes
14:57:43:0626 Jcat                 loaded 1 certificates
14:57:43:0626 Jcat                 ignoring GPG-KEY-Linux-Foundation-Metadata as not PKCS-7 certificate
14:57:43:0626 Jcat                 ignoring GPG-KEY-Linux-Vendor-Firmware-Service as not PKCS-7 certificate
14:57:43:0626 Jcat                 reading /etc/pki/fwupd-metadata/LVFS-CA.pem with 1679 bytes
14:57:43:0626 Jcat                 loaded 1 certificates
14:57:43:0626 Jcat                 reading /var/lib/fwupd/pki/secret.key with 2455 bytes
14:57:43:0626 Jcat                 reading /var/lib/fwupd/pki/client.pem with 1383 bytes
14:57:43:0626 FuEngine             client certificate now exists: nothing to do
14:57:43:0626 FuHistory            trying to open database '/var/lib/fwupd/pending.db'
14:57:43:0626 FuHistory            got schema version of 7
14:57:43:0627 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_ccgx.so)
14:57:43:0628 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_corsair.so)
14:57:43:0629 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_dell.so)
14:57:43:0629 FuPluginDell         Using libsmbios 2.4
14:57:43:0630 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_dell_dock.so)
14:57:43:0630 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_dfu.so)
14:57:43:0631 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_elantp.so)
14:57:43:0631 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_fastboot.so)
14:57:43:0632 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_genesys.so)
14:57:43:0632 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_gpio.so)
14:57:43:0632 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_intel_spi.so)
14:57:43:0633 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_jabra.so)
14:57:43:0634 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_logitech_hidpp.so)
14:57:43:0636 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_modem_manager.so)
14:57:43:0637 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_nordic_hid.so)
14:57:43:0637 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_parade_lspcon.so)
14:57:43:0638 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_pci_bcr.so)
14:57:43:0638 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_realtek_mst.so)
14:57:43:0638 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_redfish.so)
14:57:43:0639 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_rts54hid.so)
14:57:43:0639 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_rts54hub.so)
14:57:43:0639 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_superio.so)
14:57:43:0640 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_synaptics_cxaudio.so)
14:57:43:0640 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_synaptics_mst.so)
14:57:43:0642 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_vli.so)
14:57:43:0642 FuPlugin             load(/usr/lib/fwupd-plugins-7/libfu_plugin_wacom_raw.so)
14:57:43:0642 FuQuirks             loading quirks from /usr/share/fwupd/quirks.d
14:57:43:0647 FuQuirks             loading quirks from /var/lib/fwupd/quirks.d
14:57:43:0647 XbSilo               attempting to load /var/cache/fwupd/quirks.xmlb
14:57:43:0647 XbSilo               file: 87045393-2f58-ef94-63e8-f7dc5e71406c, current:87045393-2f58-ef94-63e8-f7dc5e71406c, cached: (null)
14:57:43:0647 XbSilo               loading silo with file contents
14:57:43:0647 FuSmbios             trying to read /sys/class/dmi/id
14:57:43:0647 FuHwids              loading HwId overrides from /etc/fwupd/daemon.conf
14:57:43:0647 FuHwids              not loading HwId overrides from /var/lib/fwupd/daemon.conf
14:57:43:0647 FuHwids              smbios property Manufacturer=Star Labs
14:57:43:0647 FuHwids              smbios property EnclosureKind=9
14:57:43:0647 FuHwids              smbios property Family=B5
14:57:43:0647 FuHwids              smbios property ProductName=StarBook
14:57:43:0647 FuHwids              smbios property ProductSku=B5
14:57:43:0647 FuHwids              smbios property BiosVendor=coreboot
14:57:43:0647 FuHwids              smbios property BiosVersion=8.00
14:57:43:0647 FuHwids              smbios property BiosMajorRelease=04
14:57:43:0647 FuHwids              smbios property BiosMinorRelease=11
14:57:43:0647 FuHwids              smbios property FirmwareMajorRelease=01
14:57:43:0647 FuHwids              smbios property FirmwareMinorRelease=03
14:57:43:0647 FuHwids              smbios property BaseboardManufacturer=Star Labs
14:57:43:0647 FuHwids              smbios property BaseboardProduct=StarBook
14:57:43:0650 FuEngine             ignoring: Error opening directory “/var/lib/fwupd/local.d”: No such file or directory
14:57:43:0650 FuEngine             ignoring: Error opening directory “/usr/share/fwupd/local.d”: No such file or directory
14:57:43:0650 XbSilo               attempting to load /var/cache/fwupd/metadata.xmlb
14:57:43:0650 XbSilo               file: 51eece63-e0ae-40da-7039-cc63302a68da, current:51eece63-e0ae-40da-7039-cc63302a68da, cached: (null)
14:57:43:0650 XbSilo               loading silo with file contents
14:57:43:0651 FuEngine             1508 components now in silo
14:57:43:0656 FuEngine             failed to setup backend bluez: Error calling StartServiceByName for org.bluez: Unit dbus-org.bluez.service not found.
14:57:43:0656 FuPlugin             init(flashrom)
14:57:43:0656 FuEngine             plugins disabled: acpi_dmar, acpi_facp, acpi_ivrs, acpi_phat, amt, analogix, ata, bcm57xx, bios, ccgx, cfu, ch341a, colorhug, corsair, cpu, cros_ec, dell, dell_dock, dell_esrt, dfu, dfu_csr, ebitdo, elanfp, elantp, emmc, ep963x, fastboot, fresco_pd, genesys, goodixmoc, gpio, hailuck, intel_spi, iommu, jabra, lenovo_thinklmi, linux_lockdown, linux_sleep, linux_swap, linux_tainted, logind, logitech_bulkcontroller, logitech_hidpp, modem_manager, msr, mtd, nitrokey, nordic_hid, nvme, optionrom, parade_lspcon, pci_bcr, pci_mei, pci_psp, pixart_rf, realtek_mst, redfish, rts54hid, rts54hub, scsi, steelseries, superio, synaptics_cape, synaptics_cxaudio, synaptics_mst, synaptics_prometheus, synaptics_rmi, system76_launch, thelio_io, thunderbolt, tpm, uefi_capsule, uefi_dbx, uefi_pk, uefi_recovery, uf2, upower, usi_dock, vli, wacom_raw, wacom_usb
14:57:43:0657 FuEngine             enabling flashrom due to HwId 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0658 FuEngine             enabling flashrom due to HwId 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0658 FuContext            battery threshold now 30
14:57:43:0658 FuPlugin             startup(flashrom)
14:57:43:0660 FuPluginFlashrom     Opened /dev/mtd0 successfully
14:57:43:0660 FuPluginFlashrom     Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific)
14:57:43:0660 FuPluginFlashrom     mapped at physical address 0x0000000000000000.
14:57:43:0660 FuProgress           raw timing data was { 0.001, 0.000, 0.000 } -- steps were set as [ 5 90 5 ] but should have been [ 90 4 6 ] at ../fwupd/plugins/flashrom/fu-plugin-flashrom.c:277
14:57:43:0660 FuPlugin             coldplug(flashrom)
14:57:43:0661 FuDevice             using dbee8bd3b1ae0316ad143336155651eedb495a0e for flashrom:bios
14:57:43:0661 FuPlugin             emit added from flashrom: dbee8bd3b1ae0316ad143336155651eedb495a0e
14:57:43:0668 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0668 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0668 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0668 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0668 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0668 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0668 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0668 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0669 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0669 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0669 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0669 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0669 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0669 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0669 FuPlugin             fu_plugin_device_registered(flashrom)
14:57:43:0669 FuDeviceList         ::added dbee8bd3b1ae0316ad143336155651eedb495a0e
14:57:43:0669 FuMain               ADDED:
FuFlashromDevice:
  DeviceId:             dbee8bd3b1ae0316ad143336155651eedb495a0e
  Name:                 StarBook (bios)
  Guid:                 230c8b18-8d9b-53ec-838b-6cfc0383493a ← main-system-firmware
  Guid:                 7227cf32-bb0f-5894-8d66-c91a43c10eae ← FLASHROM\VENDOR_Star Labs&PRODUCT_StarBook&REGION_BIOS
  Guid:                 5a05daed-8257-5302-a16e-e74e93c3ea66 ← FLASHROM\GUID_85aba599-addd-5985-a2e8-eddb41c61ba3
  Guid:                 7c13a5b2-22f8-5564-8b48-4bbf20da8ed6 ← Star Labs&B5&StarBook&B5&Star Labs&StarBook
  Guid:                 e327ada1-c062-536b-a1bd-3dcfca48e390 ← Star Labs&B5&StarBook&B5
  Guid:                 b7a2bed5-186f-5643-a96a-0ac51de16c41 ← Star Labs&B5&StarBook
  Guid:                 372a7618-7117-5c3d-b0ea-a67d4e351893 ← Star Labs&B5&Star Labs&StarBook
  Guid:                 54c96fef-31e7-5011-a3ff-ea8e855d9acd ← Star Labs&B5&StarBook&B5&coreboot
  Branch:               coreboot
  Plugin:               flashrom
  Protocol:             org.flashrom
  Flags:                internal|updatable|require-ac|supported|registered|needs-shutdown|can-verify|can-verify-image|has-multiple-branches
  Vendor:               Star Labs
  VendorId:             DMI:coreboot
  Version:              8.00
  VersionFormat:        pair
  Icon:                 computer
  Created:              2022-07-07
  PhysicalId:           flashrom
  LogicalId:            bios
  CustomFlags:          reset-cmos
  FirmwareSizeMax:      16777216
  InternalFlags:        ensure-semver|md-set-signed
  PrivateFlags:         reset-cmos

14:57:43:0670 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0670 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0670 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0670 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0671 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0671 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0671 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0671 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0671 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0671 FuEngine             using plugins: flashrom
14:57:43:0685 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0685 FuEngine             client does not understand branches, skipping (null):0.2
14:57:43:0685 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0685 FuEngine             client does not understand branches, skipping (null):0.1
14:57:43:0685 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0685 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0685 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0685 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0685 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0685 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0686 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0686 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0686 FuEngine             client does not understand branches, skipping (null):0.2
14:57:43:0687 FuEngine             requirement 1.7.0 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             HWID provided 85aba599-addd-5985-a2e8-eddb41c61ba3
14:57:43:0687 FuEngine             client does not understand branches, skipping (null):0.1
14:57:43:0687 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0687 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0687 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0687 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0687 FuEngine             requirement 1.7.6 ge 1.8.2 -> org.freedesktop.fwupd passed
14:57:43:0687 FuEngine             failed to set release for component: client requirement switch-branch not supported
14:57:43:0687 FuEngine             writing motd target /var/cache/fwupd/motd.d/85-fwupd
14:57:43:0687 FuMain               FuFlashromDevice:
  DeviceId:             dbee8bd3b1ae0316ad143336155651eedb495a0e
  Name:                 StarBook (bios)
  Guid:                 230c8b18-8d9b-53ec-838b-6cfc0383493a ← main-system-firmware
  Guid:                 7227cf32-bb0f-5894-8d66-c91a43c10eae ← FLASHROM\VENDOR_Star Labs&PRODUCT_StarBook&REGION_BIOS
  Guid:                 5a05daed-8257-5302-a16e-e74e93c3ea66 ← FLASHROM\GUID_85aba599-addd-5985-a2e8-eddb41c61ba3
  Guid:                 7c13a5b2-22f8-5564-8b48-4bbf20da8ed6 ← Star Labs&B5&StarBook&B5&Star Labs&StarBook
  Guid:                 e327ada1-c062-536b-a1bd-3dcfca48e390 ← Star Labs&B5&StarBook&B5
  Guid:                 b7a2bed5-186f-5643-a96a-0ac51de16c41 ← Star Labs&B5&StarBook
  Guid:                 372a7618-7117-5c3d-b0ea-a67d4e351893 ← Star Labs&B5&Star Labs&StarBook
  Guid:                 54c96fef-31e7-5011-a3ff-ea8e855d9acd ← Star Labs&B5&StarBook&B5&coreboot
  Branch:               coreboot
  Plugin:               flashrom
  Protocol:             org.flashrom
  Flags:                internal|updatable|require-ac|supported|registered|needs-shutdown|can-verify|can-verify-image|has-multiple-branches
  Vendor:               Star Labs
  VendorId:             DMI:coreboot
  Version:              8.00
  VersionFormat:        pair
  Icon:                 computer
  Created:              2022-07-07

14:57:43:0688 FuPlugin             destroy(flashrom)

Incidentally, I'm using the Manjaro/Starlabs version of fwupd per the Starlabs support page, as I assumed it contained device-specific patches necessary for proper function vs. the version in the official Arch repos. I would be doing the same for flashrom, however the package doesn't seem to exist anymore.

Could the issue be due to the incongrunt versions of fwupd and flashrom (i.e. not both being either vanilla or Starlabs-specific)?

Sean-StarLabs commented 2 years ago

No, that's happy.

Did you refresh? i.e. fwupdmgr refresh --force

twiztedtbone commented 2 years ago

I did before opening the issue, yea. Here's what that looks like in full:

[xxxx@starpod ~]$ fwupdmgr refresh --force
Updating lvfs
Downloading…             [***************************************]
Successfully downloaded new metadata: 2 local devices supported
[xxxx@starpod ~]$ fwupdmgr update
Devices with no available firmware updates: 
 • 0000:00:1f.5
 • Star Drive PCIe SSD
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade StarBook (bios) from 8.00 to 8.02?                                   ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release includes the following features:                         ║
║                                                                              ║
║ • Disabled edk2 serial debug support for faster boot times                   ║
║ • Configured PCIe Base Address in edk2 to avoid auto-config                  ║
║ • Increase setup resolution to full screen                                   ║
║ • Adjusted spacing for boot prompt                                           ║
║                                                                              ║
║ StarBook (bios) and all connected devices may not be usable while updating.  ║
╚══════════════════════════════════════════════════════════════════════════════╝

Perform operation? [Y|n]: 
Downloading…             [***************************************]
Downloading…             [***************************************]
Decompressing…           [***************************************]
Authenticating…          [***************************************]
Waiting…                 [   -                                   ]
failed to open device for prepare: invalid region name
Sean-StarLabs commented 2 years ago

Okay, so that's being returned from flashrom - I guess the version of the flashrom might be really old and have a different API (version number is flashrom are weird and quite useless).

Manjaro package here - might be worth trying that or building flashrom from source?

twiztedtbone commented 2 years ago

Manjaro package here - might be worth trying that [...]

Addressing this first for visibility (good news later); this was the version I pointed to in an earlier reply as not existing. The page you linked to exists, but if you follow those links to get to the source on Gitlab, you're greeted with an empty page (meaning I couldn't acquire a PKGBUILD). The only package in Marjaro with starlabs in the name appears to be fwupd-starlabs (which I currently have installed); flashrom doesn't seem to exist in any form, unless I'm severely misunderstanding how the Manjaro repos work.

Out of curiosity, could I just be using the latest Git masters for flashrom/fwupd and be good to go? Or does fwupd-starlabs (and flashrom, for that matter) have system-specific patches? Probably a dumb question, but I don't understand this firmware-level stuff very well.

Okay, so that's being returned from flashrom - I guess the version of the flashrom might be really old and have a different API (version number is flashrom are weird and quite useless).

[...] or building flashrom from source?

And there we go! Building the latest flashrom from Git (the last official release being from over two years ago) did the trick. It's not too often you have to worry about this sort of thing on a rolling distro, but there it is.

Thanks Sean!

Sean-StarLabs commented 2 years ago

Awesome :)

Git masters would do the job - we don't do forks, flashrom-starlabs is just newer.