StarLabsLtd / firmware

68 stars 4 forks source link

How to update Starlite MKV firmware with fwupd? #179

Closed M1cha closed 1 week ago

M1cha commented 1 week ago

Even though I see the coreboot update on the LVFS website, the CLI client does not.

Sean-StarLabs commented 1 week ago

I manually compiled and installed flashrom flashrom 1.4.0-devel (git:v1.2-1356-gfb14ceb3)

That's specific - does flashrom on its own work?

M1cha commented 1 week ago

I manually compiled and installed flashrom flashrom 1.4.0-devel (git:v1.2-1356-gfb14ceb3)

That's specific - does flashrom on its own work?

That's just the 1.3-0 branch. Looks good, yes:

# flashrom -p internal -r dump.rom --ifd -i bios
flashrom 1.4.0-devel (git:v1.2-1356-gfb14ceb3) on Linux 6.9.5-zen1-1-zen (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) on internal.
Reading ich descriptor... done.
Using region: "bios".
Reading flash... done.

And the dump contains data that looks like 24.05-150-g8fa1b56fc0fb-dirty.StarLabs.StarLite Mk V

Sean-StarLabs commented 1 week ago

Cool, what's the output of: sudo fwupdtool get-devices --plugins flashrom --verbose

M1cha commented 1 week ago
12:31:21.475 FuDebug              verbose to info (on console 1)
12:31:21.475 FuEngine             starting fwupd 1.9.21…
12:31:21.476 FuMain               failed to stop daemon: failed to find fwupd.service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit fwupd.service not loaded.
Loading…                 [ -                                     ]12:31:21.477 FuRemoteList         loading remote from /etc/fwupd/remotes.d/lvfs-testing.conf
12:31:21.477 FuRemoteList         loading remote from /etc/fwupd/remotes.d/lvfs.conf
12:31:21.477 FuRemoteList         loading remote from /etc/fwupd/remotes.d/vendor-directory.conf
12:31:21.477 FuRemoteList         enabled remotes: vendor-directory[1000], lvfs-testing[1], lvfs[0]
Loading…                 [                                       ]12:31:21.478 FuEngine             client certificate now exists: nothing to do
Loading…                 [*                                      ]12:31:21.485 FuQuirks             loading quirks from /usr/share/fwupd/quirks.d
12:31:21.485 FuQuirks             loading quirks from /var/lib/fwupd/quirks.d
Loading…                 [*                                      ]12:31:21.486 FuContext            SMBIOS Manufacturer=Star Labs
12:31:21.486 FuContext            SMBIOS EnclosureKind=20
12:31:21.486 FuContext            SMBIOS Family=I5
12:31:21.486 FuContext            SMBIOS ProductName=StarLite
12:31:21.486 FuContext            SMBIOS ProductSku=I5
12:31:21.486 FuContext            SMBIOS BiosVendor=coreboot
12:31:21.486 FuContext            SMBIOS BiosVersion=24.05
12:31:21.486 FuContext            SMBIOS BiosMajorRelease=18
12:31:21.486 FuContext            SMBIOS BiosMinorRelease=05
12:31:21.486 FuContext            SMBIOS FirmwareMajorRelease=18
12:31:21.486 FuContext            SMBIOS FirmwareMinorRelease=05
12:31:21.486 FuContext            SMBIOS BaseboardManufacturer=Star Labs
12:31:21.486 FuContext            SMBIOS BaseboardProduct=StarLite
12:31:21.486 FuContext            failed to load fdt: cannot find /sys/firmware/fdt or override /var/lib/fwupd/system.dtb
12:31:21.486 FuContext            added udev subsystem watch of firmware-attributes
Loading…                 [**                                     ]12:31:21.486 FuEngine             loading metadata for remote 'vendor-directory'
12:31:21.486 FuEngine             ignoring: /usr/share/fwupd/remotes.d/vendor/firmware/README.md
12:31:21.486 FuEngine             ignoring: Error opening directory “/var/lib/fwupd/local.d”: No such file or directory
12:31:21.486 FuEngine             ignoring: Error opening directory “/usr/share/fwupd/local.d”: No such file or directory
12:31:21.488 FuEngine             3110 components now in silo
Loading…                 [***                                    ]12:31:21.503 FuEngine             plugins disabled: modem_manager, uefi_capsule, acpi_dmar, acpi_facp, acpi_ivrs, acpi_phat, algoltek_usb, amd_pmc, amd_gpu, analogix, android_boot, ata, audio_s5gen2, aver_hid, bcm57xx, bios, ccgx, ccgx_dmc, cfu, ch341a, ch347, colorhug, corsair, cpu, cros_ec, dell, dell_dock, dfu, dfu_csr, ebitdo, elantp, elanfp, emmc, ep963x, fastboot, focalfp, fpc, fresco_pd, genesys, genesys_gl32xx, goodixmoc, goodixtp, gpio, hailuck, igsc, intel_me, intel_usb4, iommu, jabra, jabra_gnp, kinetic_dp, lenovo_thinklmi, linux_display, linux_lockdown, linux_sleep, linux_swap, linux_tainted, logind, logitech_hidpp, logitech_bulkcontroller, logitech_rallysystem, logitech_scribe, logitech_tap, mediatek_scaler, msr, mtd, nitrokey, nordic_hid, nvme, optionrom, parade_lspcon, pci_bcr, pci_mei, pci_psp, pixart_rf, powerd, qsi_dock, realtek_mst, redfish, rts54hid, rts54hub, steelseries, scsi, superio, synaptics_cape, synaptics_cxaudio, synaptics_mst, synaptics_prometheus, synaptics_rmi, synaptics_vmm9, system76_launch, test, test_ble, thelio_io, thunderbolt, ti_tps6598x, tpm, uefi_dbx, uefi_esrt, uefi_pk, uefi_recovery, uf2, upower, usi_dock, vbe, vli, wacom_raw, wacom_usb, wistron_dock
Loading…                 [***                                    ]12:31:21.503 FuContext            battery threshold now 30
Loading…                 [-                                      ]12:31:21.504 FuEngine             disabling plugin because: failed to startup using flashrom: no HwIDs found
Loading…                 [************************************** ]12:31:21.530 FuEngine             FuUsbBackend:
  Name:                 usb
  Enabled:              true
  DoneSetup:            true
  CanInvalidate:        false
FuUdevBackend:
  Name:                 udev
  Enabled:              true
  DoneSetup:            true
  CanInvalidate:        false
DoneColdplug:           true
FuBluezBackend:
  Name:                 bluez
  Enabled:              true
  DoneSetup:            true
  CanInvalidate:        false

12:31:21.536 FuEngine             resetting update motd timeout

No detected devices
12:31:21.540 FuMain               No detected devices

disabling plugin because: failed to startup using flashrom: no HwIDs found looks interesting.

Sean-StarLabs commented 1 week ago
echo -e "[3d9415bb-3027-541b-99b7-cf21e5383bdb]\nPlugin = flashrom" | sudo tee /var/lib/fwupd/quirks.d/flashrom.quirk
sudo systemctl restart fwupd
M1cha commented 1 week ago

that worked and it updated successfully, thx :) Do other distros need that as well or do they already ship that by default? Either way, it'd probably a good idea to mention that in your guide.

Sean-StarLabs commented 1 week ago

Nope - Arch won't soon either once it gets the latest build of fwupd

mpetuska commented 2 days ago

Odd, fwupd only lists N200 and NVME for me, no SPI controller (nor touchscreen for that matter). I'm on f40 silverblue

mpetuska commented 1 day ago

Could we reopen this for touchscreen hardware not detected issue?

Sean-StarLabs commented 1 day ago

Can you elaborate on the issue?