]> git.proxmox.com Git - fwupd.git/log
fwupd.git
21 months agodfu: Clear the buffer before getting the status
Richard Hughes [Wed, 1 Feb 2023 16:54:47 +0000 (16:54 +0000)]
dfu: Clear the buffer before getting the status

This makes emulation of DFU devices work as the control transfer data is then
predictable.

21 months agotrivial: Enable USB debugging when backend debugging is enabled
Richard Hughes [Wed, 1 Feb 2023 15:39:22 +0000 (15:39 +0000)]
trivial: Enable USB debugging when backend debugging is enabled

21 months agotrivial: Use new API in libgusb to better detect USB replug
Richard Hughes [Wed, 1 Feb 2023 15:38:52 +0000 (15:38 +0000)]
trivial: Use new API in libgusb to better detect USB replug

21 months agoAdd API to wait for a device
Richard Hughes [Tue, 31 Jan 2023 19:11:29 +0000 (19:11 +0000)]
Add API to wait for a device

This allows us to ignore all the delays when the device is emulated, with the
idea being to do dozens of device emulations in the CI tests.

Also, do not call fu_progress_sleep() when the device is emulated.

21 months agoDo not invalidate the probe for emulated devices
Richard Hughes [Tue, 31 Jan 2023 15:04:56 +0000 (15:04 +0000)]
Do not invalidate the probe for emulated devices

If the device does not replug, and we change the GUsbDevice because the phase
changed we don't want reprobe the hardware.

If we reprobe then the emulated device will request extra data compared to the
real device, which will cause emulation to fail.

21 months agotrivial: Require --force to overwrite files with 'fwupdmgr download'
Richard Hughes [Tue, 31 Jan 2023 15:27:54 +0000 (15:27 +0000)]
trivial: Require --force to overwrite files with 'fwupdmgr download'

21 months agoReturn an error when the pending db could not be updated
Richard Hughes [Tue, 31 Jan 2023 08:44:27 +0000 (08:44 +0000)]
Return an error when the pending db could not be updated

21 months agobuild(deps): bump docker/build-push-action from 3 to 4
dependabot[bot] [Mon, 30 Jan 2023 23:09:43 +0000 (23:09 +0000)]
build(deps): bump docker/build-push-action from 3 to 4

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
21 months agotrivial: Do not hardcode fwupdmgr as a binary name
Richard Hughes [Mon, 30 Jan 2023 20:53:38 +0000 (20:53 +0000)]
trivial: Do not hardcode fwupdmgr as a binary name

21 months agotrivial: Record the install phase for future functionality
Richard Hughes [Mon, 30 Jan 2023 14:46:19 +0000 (14:46 +0000)]
trivial: Record the install phase for future functionality

21 months agotrivial: Do not inherit history from emulated devices
Richard Hughes [Mon, 30 Jan 2023 14:46:39 +0000 (14:46 +0000)]
trivial: Do not inherit history from emulated devices

21 months agotrivial: Remove some dead comments left in after debugging
Richard Hughes [Mon, 30 Jan 2023 14:39:49 +0000 (14:39 +0000)]
trivial: Remove some dead comments left in after debugging

21 months agoUse indexes when building the quirk prepared queries
Richard Hughes [Sat, 28 Jan 2023 19:11:47 +0000 (19:11 +0000)]
Use indexes when building the quirk prepared queries

This can save 250us on each query (of which we do a *lot*), and reduces the
number of queries by about half if the user is using a libxmlb version that can
convert from `_BOUND_TEXT` to `_BOUND_INDEX_TEXT`.

The more devices detected, the bigger the difference, and without this patch
fixing libxmlb would break fwupd as we'e been searching with an index, but not
actually providing one.

21 months agotrivial: Add FuProgress to fu_context_load_hwinfo()
Richard Hughes [Sat, 28 Jan 2023 12:32:49 +0000 (12:32 +0000)]
trivial: Add FuProgress to fu_context_load_hwinfo()

TIL: fu_bios_settings_setup() takes over 50ms (10%!) at startup.

21 months agotrivial: Remove duplicate call to fu_engine_ensure_device_supported()
Richard Hughes [Fri, 27 Jan 2023 16:50:06 +0000 (16:50 +0000)]
trivial: Remove duplicate call to fu_engine_ensure_device_supported()

This is moderately expensive to call as it processes each requirement on each
release on each device, so the last thing we want to do is call it *twice*.

21 months agotrivial: Update all fixes using markdownlint
Richard Hughes [Mon, 30 Jan 2023 13:36:53 +0000 (13:36 +0000)]
trivial: Update all fixes using markdownlint

21 months agotrivial: Update all fixes using codespell
Richard Hughes [Mon, 30 Jan 2023 13:35:27 +0000 (13:35 +0000)]
trivial: Update all fixes using codespell

21 months agoUse a more compact JSON format using precommit
Richard Hughes [Mon, 30 Jan 2023 12:24:35 +0000 (12:24 +0000)]
Use a more compact JSON format using precommit

21 months agoRemove unused API for setting backend tags
Richard Hughes [Mon, 30 Jan 2023 11:54:05 +0000 (11:54 +0000)]
Remove unused API for setting backend tags

It turns out we do not want to know the current phase of the device, and we can
achieve the same thing tagging the GUsbDevice manually and clearing the events
at exactly the correct time.

21 months agoti-tps6598x: Assign the DMC as the proxy rather than just the parent
Richard Hughes [Mon, 30 Jan 2023 11:05:03 +0000 (11:05 +0000)]
ti-tps6598x: Assign the DMC as the proxy rather than just the parent

We 'write through' the parent, and by telling fwupd this we can make better
decisions when emulating.

21 months agoCopy some flags from the proxy to the logical device
Richard Hughes [Mon, 30 Jan 2023 11:41:38 +0000 (11:41 +0000)]
Copy some flags from the proxy to the logical device

21 months agotrivial: update fwupd-efi to 1.4
Mario Limonciello [Fri, 27 Jan 2023 16:04:59 +0000 (10:04 -0600)]
trivial: update fwupd-efi to 1.4

fwupd-efi 1.4 enforces that NX bit is set by default.
This won't affect most users, it should only affect those that compile
by hand and don't have fwupd-efi installed already.

21 months agotrivial: Do not ask for polkit auth if the device is emulated
Richard Hughes [Fri, 27 Jan 2023 15:21:11 +0000 (15:21 +0000)]
trivial: Do not ask for polkit auth if the device is emulated

21 months agotrivial: Do not wait for the acquiesce delay if emulated
Richard Hughes [Fri, 27 Jan 2023 15:20:48 +0000 (15:20 +0000)]
trivial: Do not wait for the acquiesce delay if emulated

21 months agoPropagate device tag to parent device
Frédéric Danis [Fri, 20 Jan 2023 10:20:20 +0000 (11:20 +0100)]
Propagate device tag to parent device

21 months agotrivial: Correctly compress zip files in FuArchive
Richard Hughes [Thu, 26 Jan 2023 14:15:48 +0000 (14:15 +0000)]
trivial: Correctly compress zip files in FuArchive

21 months agoEnsure the new GUsbDevice is assigned in subclasses of FuUsbDevice
Richard Hughes [Wed, 25 Jan 2023 13:40:27 +0000 (13:40 +0000)]
Ensure the new GUsbDevice is assigned in subclasses of FuUsbDevice

Re-incorporate the emulated USB devices when the backend device changes.

21 months agotrivial: Fix critical warning in future code
Richard Hughes [Wed, 25 Jan 2023 13:38:12 +0000 (13:38 +0000)]
trivial: Fix critical warning in future code

Both types need to be FuUdevDevice to compare the sysfs paths.

21 months agoDo not return emulated devices from GetHistory
Richard Hughes [Thu, 26 Jan 2023 11:41:32 +0000 (11:41 +0000)]
Do not return emulated devices from GetHistory

21 months agotrivial: Add fu_device_has_problem() to be consistent and hide details
Richard Hughes [Thu, 26 Jan 2023 11:14:35 +0000 (11:14 +0000)]
trivial: Add fu_device_has_problem() to be consistent and hide details

21 months agoRemove duplicate calls to fu_device_list_wait_for_replug()
Richard Hughes [Thu, 26 Jan 2023 08:00:31 +0000 (08:00 +0000)]
Remove duplicate calls to fu_device_list_wait_for_replug()

The fu_engine_get_device() function is called at the start of each phase,
which calls fu_device_list_wait_for_replug() a second time.

Duplicate calls are at best confusing, and at worst could cause a 'device
failed to come back' failure.

21 months agoAdd a device problem for 'update-in-progress'
Richard Hughes [Thu, 26 Jan 2023 08:51:00 +0000 (08:51 +0000)]
Add a device problem for 'update-in-progress'

We already had this as an inhibit, but this was not translated client-side.

We also need to propagate the problem to the bootloader device if the device
replugs during firmware update.

21 months agocolorhug: Show the flash success value in debugging
Richard Hughes [Thu, 26 Jan 2023 08:55:49 +0000 (08:55 +0000)]
colorhug: Show the flash success value in debugging

22 months agoAdd python3-pefile/python-pefile to CI build deps
Mario Limonciello [Wed, 25 Jan 2023 22:56:15 +0000 (16:56 -0600)]
Add python3-pefile/python-pefile to CI build deps

This is so that it can be used by subproject fwupd-efi

22 months agoFix hotplug events when emulating devices
Richard Hughes [Wed, 25 Jan 2023 10:24:46 +0000 (10:24 +0000)]
Fix hotplug events when emulating devices

22 months agomodem-manager: remove improper use of assert
Ivan Mikhanchuk [Wed, 25 Jan 2023 01:06:09 +0000 (17:06 -0800)]
modem-manager: remove improper use of assert

FuSaharaLoader being NULL is normal for devices that only
support Firehose and don't use Sahara QDL port.

22 months agowacom-usb: Retry set_report on failure
Jason Gerecke [Tue, 17 Jan 2023 22:24:14 +0000 (14:24 -0800)]
wacom-usb: Retry set_report on failure

Sometimes the flash process will randomly hang and time-out when sending
data to the device. We currently do not use any retry logic, so if this
happens the flash attempt is treated as a failure. This can be a source
of worry or frustration, especially if subsequent manual retries fail
in a similar way.

Adding FU_HID_DEVICE_FLAG_RETRY_FAILURE to the list of flags used when
calling fu_hid_device_set_report allows fwupd to try sending a block
multiple times if such a time-out (or other error) occurs. This makes
the flash process less prone to failure.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
22 months agotrivial: Fix tests to include 'emulated'
Richard Hughes [Tue, 24 Jan 2023 15:41:01 +0000 (15:41 +0000)]
trivial: Fix tests to include 'emulated'

22 months agoAdd fu_device_remove_backend_tag() for future use
Richard Hughes [Tue, 24 Jan 2023 13:15:28 +0000 (13:15 +0000)]
Add fu_device_remove_backend_tag() for future use

22 months agotrivial: Proxy the _SAVE_EVENTS flag even if set at runtime
Richard Hughes [Mon, 23 Jan 2023 15:54:10 +0000 (15:54 +0000)]
trivial: Proxy the _SAVE_EVENTS flag even if set at runtime

22 months agoUse the new GUsb API for loading by tag
Richard Hughes [Mon, 23 Jan 2023 15:52:54 +0000 (15:52 +0000)]
Use the new GUsb API for loading by tag

Based on a patch by frederic.danis@collabora.com, many thanks.

22 months agoDo not make any of the HWIDs setup failures fatal
Richard Hughes [Tue, 24 Jan 2023 09:52:17 +0000 (09:52 +0000)]
Do not make any of the HWIDs setup failures fatal

It's perfectly okay to have no HWIDs defined.

Should help with https://github.com/fwupd/fwupd/issues/5402

22 months agotrivial: Add a device flag specifying it is emulated
Richard Hughes [Mon, 23 Jan 2023 17:30:11 +0000 (17:30 +0000)]
trivial: Add a device flag specifying it is emulated

22 months agotrivial: Fix fuzzing with libxmlb from main, harder
Richard Hughes [Mon, 23 Jan 2023 17:16:57 +0000 (17:16 +0000)]
trivial: Fix fuzzing with libxmlb from main, harder

22 months agotrivial: Force enums to be uint64, harder
Richard Hughes [Mon, 23 Jan 2023 17:11:23 +0000 (17:11 +0000)]
trivial: Force enums to be uint64, harder

22 months agotrivial: Fix fuzzing with libxmlb from main
Richard Hughes [Mon, 23 Jan 2023 16:46:13 +0000 (16:46 +0000)]
trivial: Fix fuzzing with libxmlb from main

22 months agoSave all the FwupdDeviceFlags in the pending database
Richard Hughes [Mon, 23 Jan 2023 15:43:37 +0000 (15:43 +0000)]
Save all the FwupdDeviceFlags in the pending database

Force the compiler to treat them as uint64_t so that bitwise operations work.
At the moment flags greater than 1<<32 are just being silently ignored...

22 months agoSupport unsetting specific device flags
Richard Hughes [Mon, 23 Jan 2023 16:05:00 +0000 (16:05 +0000)]
Support unsetting specific device flags

This makes it possible to 'undo' the notification, for example.

22 months agotrivial: Fix build fix when using ppc64le system
Richard Hughes [Mon, 23 Jan 2023 11:22:43 +0000 (11:22 +0000)]
trivial: Fix build fix when using ppc64le system

22 months agotrivial: Use %autochangelog in reference spec file
Richard Hughes [Mon, 23 Jan 2023 10:44:28 +0000 (10:44 +0000)]
trivial: Use %autochangelog in reference spec file

22 months agoAllow desktop software to inhibit the system to prevent all updates
Richard Hughes [Sat, 21 Jan 2023 13:37:49 +0000 (13:37 +0000)]
Allow desktop software to inhibit the system to prevent all  updates

On edge hardware a process may want to disable firmware updates as it might be
a bad time to allow an upgrade.

22 months agotrivial: post release version bump
Richard Hughes [Mon, 23 Jan 2023 10:19:17 +0000 (10:19 +0000)]
trivial: post release version bump

22 months agoRelease fwupd 1.8.10
Richard Hughes [Mon, 23 Jan 2023 10:17:45 +0000 (10:17 +0000)]
Release fwupd 1.8.10

22 months agoemmc: correct legacy GUID generation
Daniil Lunev [Sun, 22 Jan 2023 22:44:09 +0000 (09:44 +1100)]
emmc: correct legacy GUID generation

It used to be generated with decimal, not hexadecimal values.

Change-Id: I2a6a5bdea50e2d08a7de9f65a1f9a03de29e1591

22 months agotrivial: Fix bitwise operators in last commit
Richard Hughes [Sun, 22 Jan 2023 08:23:45 +0000 (08:23 +0000)]
trivial: Fix bitwise operators in last commit

22 months agoAdd fu_context_remove_flag() for future use
Richard Hughes [Sat, 21 Jan 2023 20:47:18 +0000 (20:47 +0000)]
Add fu_context_remove_flag() for future use

22 months agoSpeed up startup by a huge amount when using directory remotes
Richard Hughes [Sat, 21 Jan 2023 09:54:28 +0000 (09:54 +0000)]
Speed up startup by a huge amount when using directory remotes

By using libxmlb correctly we can avoid rebuilding the metadata if the directory
is unchanged. This means the initial 'generation' is unchanged in speed, but
subsequent loads are almost instant as the archives are not decompressed.

22 months agoShow some debugging when we ignore a release due to missing checksums
Richard Hughes [Sat, 21 Jan 2023 11:00:48 +0000 (11:00 +0000)]
Show some debugging when we ignore a release due to missing checksums

22 months agoFallback to the <checksum> if the <artifact> is invalid
Richard Hughes [Sat, 21 Jan 2023 10:59:22 +0000 (10:59 +0000)]
Fallback to the <checksum> if the <artifact> is invalid

In 62a62f8f0f707d815e65ca9d0634459edb6eed97 we started ignoring the artifact
when the type was 'binary' -- however, we need to fall back to the older tag
schema if the data was not set, rather than only if the <artifact> tag was not
found.

22 months agowacom-usb: prefix errors that occur when writing to the device
Aaron Skomra [Thu, 27 Oct 2022 02:11:50 +0000 (19:11 -0700)]
wacom-usb: prefix errors that occur when writing to the device

Make it easier to locate errors that occur when writing to the device.

22 months agoParse the DT chassis-type when parsing the FDT
Richard Hughes [Wed, 18 Jan 2023 15:10:22 +0000 (15:10 +0000)]
Parse the DT chassis-type when parsing the FDT

22 months agouefi-capsule: Do not call grub2-probe without arguments
Michal Suchanek [Wed, 18 Jan 2023 15:07:05 +0000 (16:07 +0100)]
uefi-capsule: Do not call grub2-probe without arguments

commit 684bc0381 ("trivial: fix various shellcheck warnings") adds call
to ${grub_probe} without any argument which causes grub2-probe to return
an error, and generating grub configuration fails.

Add --version argument to avoid the error, and redierct the output to
/dev/null so that it's not included in the grub configuration file.

The commit also adds superfluous single quotes causing another error:

/usr/sbin/grub2-probe: error: cannot find a GRUB drive for `${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/".  Check your device.map.

Fix the quoting to work at least for single device.

Fixes: #5424
Fixes: 684bc0381 ("trivial: fix various shellcheck warnings")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
22 months agoUpdate documentation to indicate that loading "OS Optimized Defaults"
Mario Limonciello [Wed, 11 Jan 2023 16:17:51 +0000 (10:17 -0600)]
Update documentation to indicate that loading "OS Optimized Defaults"
may enable security processor rollback protection on Lenovo systems.

fixes: #5394

22 months agoImprove FDT parsing compatibility
Richard Hughes [Fri, 13 Jan 2023 10:06:07 +0000 (10:06 +0000)]
Improve FDT parsing compatibility

Newer versions of dtc agressively pack the string table, using *any* matching
suffix rather than whole strings. This is specification compliant, but breaks
if you use the offset as a hash key as a [premature] optimization.

Just use the string table as a flat block of memory rather than pre-parsing it.

This fixes reading the system FDT on new OpenBMC builds.

22 months agoRefactor the hwids functionality
Richard Hughes [Mon, 16 Jan 2023 15:42:55 +0000 (15:42 +0000)]
Refactor the hwids functionality

This refactors the code as it was getting very confusing; before FuSmbios was
reading both SMBIOS and the kernel-provided DT -- and various things were
injecting overrides in three different place. To properly support FDT remove
one layer of indirection.

This also lets us use the compatible strings to enable plugins specifying the
flag _REQUIRE_HWID -- which means we only load the plugin if it's got a chance
of working. e.g.

    [aspeed,ast2500]

22 months agotrivial: Make the installed-tests redfish.conf secure to avoid a warning
Richard Hughes [Tue, 17 Jan 2023 11:25:19 +0000 (11:25 +0000)]
trivial: Make the installed-tests redfish.conf secure to avoid a warning

Also, don't attempt to change the permissions if the correct one is already
set.

22 months agotrivial: update supported cpu documentation to add more info for AMD
Mario Limonciello [Mon, 16 Jan 2023 18:02:29 +0000 (12:02 -0600)]
trivial: update supported cpu documentation to add more info for AMD

This should hopefully help disambiguate when information isn't available
what to do.

Fixes: #5415
22 months agosynaptics-rmi: add feature to verify signature (#5406)
Vincent Huang [Tue, 17 Jan 2023 09:33:49 +0000 (17:33 +0800)]
synaptics-rmi: add feature to verify signature (#5406)

22 months agotrivial: Add FU_PATH_KIND_SYSFSDIR_DMI for future use
Richard Hughes [Mon, 16 Jan 2023 20:12:33 +0000 (20:12 +0000)]
trivial: Add FU_PATH_KIND_SYSFSDIR_DMI for future use

22 months agotrivial: Add fu_context_get_hwids() for future use
Richard Hughes [Mon, 16 Jan 2023 15:51:58 +0000 (15:51 +0000)]
trivial: Add fu_context_get_hwids() for future use

22 months agotrivial: Add fu_context_get_smbios() for future use
Richard Hughes [Mon, 16 Jan 2023 14:48:50 +0000 (14:48 +0000)]
trivial: Add fu_context_get_smbios() for future use

22 months agotrivial: Store the chassis kind in the context
Richard Hughes [Mon, 16 Jan 2023 14:39:08 +0000 (14:39 +0000)]
trivial: Store the chassis kind in the context

22 months agotrivial: Add FuContextHwidFlags for future usage
Richard Hughes [Mon, 16 Jan 2023 14:22:14 +0000 (14:22 +0000)]
trivial: Add FuContextHwidFlags for future usage

22 months agotrivial: Add a GError parameter to fu_context_get_smbios_string()
Richard Hughes [Fri, 13 Jan 2023 10:39:56 +0000 (10:39 +0000)]
trivial: Add a GError parameter to fu_context_get_smbios_string()

This matches the behaviour of fu_smbios_get_string() and was probably accidental.

22 months agotrivial: Fix the progress steps when dumping firmware
Richard Hughes [Thu, 12 Jan 2023 11:26:15 +0000 (11:26 +0000)]
trivial: Fix the progress steps when dumping firmware

In most cases the firmware dump is going to take a *lot* longer than the
engine startup.

22 months agoAllow dumping CFI devices using fwupdtool
Richard Hughes [Thu, 12 Jan 2023 11:23:11 +0000 (11:23 +0000)]
Allow dumping CFI devices using fwupdtool

This regressed with 7dc34ff02e.

22 months agotrivial: Show a better error when reading am empty CFI flash ID
Richard Hughes [Thu, 12 Jan 2023 11:19:54 +0000 (11:19 +0000)]
trivial: Show a better error when reading am empty CFI flash ID

22 months agotrivial: Add CFI data for W25Q256
Richard Hughes [Thu, 12 Jan 2023 11:18:50 +0000 (11:18 +0000)]
trivial: Add CFI data for W25Q256

22 months agoAdd System76 launch_heavy_1
Jeremy Soller [Wed, 11 Jan 2023 17:05:15 +0000 (10:05 -0700)]
Add System76 launch_heavy_1

22 months agoRespect user requested paths for ESP even if they aren't volumes
Mario Limonciello [Wed, 11 Jan 2023 04:23:08 +0000 (22:23 -0600)]
Respect user requested paths for ESP even if they aren't volumes

These paths may be used for bind mounts, which we can't accurately
discover. Leave a message in the logs accordingly, but allow these
paths.

fixes: #5185

22 months agoAdd fu_context_get_fdt() to get the Flat Device Tree
Richard Hughes [Wed, 11 Jan 2023 15:04:08 +0000 (15:04 +0000)]
Add fu_context_get_fdt() to get the Flat Device Tree

This is needed because multiple plugins will soon be consuming the system FDT,
and we don't want to either parse this multiple times, or duplicate the loading
logic.

22 months agotrivial: Create the parent directories when using fu_firmware_write_file()
Richard Hughes [Wed, 11 Jan 2023 15:03:11 +0000 (15:03 +0000)]
trivial: Create the parent directories when using fu_firmware_write_file()

22 months agotrivial: install dmi data into installed-tests
Mario Limonciello [Wed, 11 Jan 2023 03:17:18 +0000 (21:17 -0600)]
trivial: install dmi data into installed-tests

fixes: #5402

22 months agoFix installing with -Doffline=false
Richard Hughes [Tue, 10 Jan 2023 22:04:53 +0000 (22:04 +0000)]
Fix installing with -Doffline=false

22 months agotrivial: Reduce runtime RSS requirement for each device subclass
Richard Hughes [Tue, 10 Jan 2023 20:28:31 +0000 (20:28 +0000)]
trivial: Reduce runtime RSS requirement for each device subclass

Remove the FuDeviceClass padding, as this library now loaded using an rpath
rather than a shared library with a static API. This matches what we did for
the FuFirmwareClass objects a while ago.

22 months agovbe: Remove the stored VBE dir
Richard Hughes [Tue, 10 Jan 2023 20:18:55 +0000 (20:18 +0000)]
vbe: Remove the stored VBE dir

This can be easily retrieved using LOCALSTATEDIR_PKG by the subclass.

22 months agoDo not show a warning when coldplugging an unsupported backend
Richard Hughes [Tue, 10 Jan 2023 20:23:27 +0000 (20:23 +0000)]
Do not show a warning when coldplugging an unsupported backend

This also fixes a critical warning about the child progress not being completed.

22 months agotrivial: Set the backend ID when added
Richard Hughes [Tue, 10 Jan 2023 20:14:40 +0000 (20:14 +0000)]
trivial: Set the backend ID when added

This matches what the plugin does and means there's no critical warning when
adding to the hash table.

22 months agotrivial: fail setup script if dependencies are missing
Mario Limonciello [Tue, 10 Jan 2023 17:38:21 +0000 (11:38 -0600)]
trivial: fail setup script if dependencies are missing

This makes CI failures more predictable and obvious.

22 months agotrivial: drop docs from abi job
Mario Limonciello [Tue, 10 Jan 2023 17:36:21 +0000 (11:36 -0600)]
trivial: drop docs from abi job

It's built with features=disabled, no need to include it.

22 months agotrivial: clarify documentation on PSP security processor (Fixes: #5394)
Mario Limonciello [Tue, 10 Jan 2023 17:14:33 +0000 (11:14 -0600)]
trivial: clarify documentation on PSP security processor (Fixes: #5394)

22 months agosynaptics-rmi: add support to write signature
Vincent Huang [Tue, 10 Jan 2023 06:17:07 +0000 (14:17 +0800)]
synaptics-rmi: add support to write signature

22 months agodfu: Add some wisdom for vendors implementing devices
Richard Hughes [Thu, 29 Dec 2022 14:52:13 +0000 (14:52 +0000)]
dfu: Add some wisdom for vendors implementing devices

22 months agoInclude the plugin README text in the generated docs
Richard Hughes [Tue, 10 Jan 2023 10:03:27 +0000 (10:03 +0000)]
Include the plugin README text in the generated docs

22 months agoemmc: Add back a legacy GUID to fix a regression
Richard Hughes [Mon, 9 Jan 2023 08:05:48 +0000 (08:05 +0000)]
emmc: Add back a legacy GUID to fix a regression

I had no idea anyone was using this, so apologies. The instance ID is completely
wrong, but it is effectively D-Bus ABI and we need to support old firmware in
the field.

22 months agoAdd a pefile firmware parser
Richard Hughes [Fri, 6 Jan 2023 11:31:05 +0000 (11:31 +0000)]
Add a pefile firmware parser

This will eventually allow us to reconstruct a SBoM using a UEFI file volume.

This can be used like this `fwupdtool firmware-parse efi/fwupdx64.efi pefile`
to produce:

    <firmware gtype="FuPefileFirmware">
      <data size="0xef59">MZ.</data>
      <firmware>
        <id>.text</id>
        <offset>0x2d0</offset>
        <size>0x7bab</size>
        <data size="0x7bab">H...QRH.=....H.5</data>
      </firmware>
      ...
      <firmware gtype="FuCoswidFirmware">
        <id>fwupd-efi:fwupdx64</id>
        <idx>0x7</idx>
        <version>1.4</version>
        <offset>0xc4e0</offset>
        <size>0xce</size>
        <data size="0xce">..een-US</data>
        <version_scheme>semver</version_scheme>
        <product>fwupdx64</product>
        <summary>EFI helpers to install system firmware</summary>
        <colloquial_version>1.3-7-g881a508</colloquial_version>
        <link>
          <href>https://spdx.org/licenses/LGPL-2.0.html</href>
          <rel>license</rel>
        </link>
        <entity>
          <name>Richard Hughes</name>
          <regid>hughsie.com</regid>
          <role>maintainer</role>
          <role>tag-creator</role>
        </entity>
      </firmware>
    </firmware>

22 months agoAlways search for uSWID data in the image
Richard Hughes [Fri, 6 Jan 2023 10:05:32 +0000 (10:05 +0000)]
Always search for uSWID data in the image

22 months agosynaptics-rmi: add support to more firmware partitions
Vincent Huang [Fri, 6 Jan 2023 10:24:41 +0000 (18:24 +0800)]
synaptics-rmi: add support to more firmware partitions

22 months agoplugins/flashrom: Allow 32MiB images for the StarBook Mk VI (#5383)
Sean Rhodes [Fri, 6 Jan 2023 10:12:36 +0000 (10:12 +0000)]
plugins/flashrom: Allow 32MiB images for the StarBook Mk VI (#5383)

Also allow 32MiB images for the coreboot firmware

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
22 months agosynaptics-rmi: add support to USBHID devices
Vincent Huang [Fri, 6 Jan 2023 03:15:45 +0000 (11:15 +0800)]
synaptics-rmi: add support to USBHID devices