Commit Graph

3404 Commits

Author SHA1 Message Date
Aaron Skomra
189686368a wacom-usb: prefix errors that occur when writing to the device
Make it easier to locate errors that occur when writing to the device.
2023-01-18 19:36:45 -06:00
Michal Suchanek
5688191a7b 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>
2023-01-18 10:56:26 -06:00
Mario Limonciello
52d6c3cb78 Update documentation to indicate that loading "OS Optimized Defaults"
may enable security processor rollback protection on Lenovo systems.

fixes: #5394
2023-01-18 08:08:16 +00:00
Richard Hughes
72f5c1e01e 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.
2023-01-17 19:29:39 +00:00
Vincent Huang
a01b57b17d
synaptics-rmi: add feature to verify signature (#5406) 2023-01-17 09:33:49 +00:00
Richard Hughes
0e381a8666 trivial: Store the chassis kind in the context 2023-01-16 17:49:57 +00:00
Richard Hughes
8af1943142 trivial: Add FuContextHwidFlags for future usage 2023-01-16 17:49:57 +00:00
Richard Hughes
84217074b0 Allow dumping CFI devices using fwupdtool
This regressed with 7dc34ff02e.
2023-01-13 15:43:39 +00:00
Richard Hughes
c10ffb119d trivial: Show a better error when reading am empty CFI flash ID 2023-01-13 15:43:39 +00:00
Jeremy Soller
17f35e206b Add System76 launch_heavy_1 2023-01-12 09:09:12 +00:00
Richard Hughes
cf4f34572b 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.
2023-01-11 16:25:26 +00:00
Richard Hughes
7cc725b918 vbe: Remove the stored VBE dir
This can be easily retrieved using LOCALSTATEDIR_PKG by the subclass.
2023-01-10 20:40:57 +00:00
Vincent Huang
8d365e84de synaptics-rmi: add support to write signature 2023-01-10 14:59:11 +00:00
Richard Hughes
b1ea3fab8c dfu: Add some wisdom for vendors implementing devices 2023-01-10 14:58:57 +00:00
Richard Hughes
058dc2301a Include the plugin README text in the generated docs 2023-01-10 14:58:30 +00:00
Richard Hughes
2c20ade1db 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.
2023-01-09 15:39:36 +00:00
Vincent Huang
1ef407968e synaptics-rmi: add support to more firmware partitions 2023-01-06 11:45:55 +00:00
Sean Rhodes
d83007e1c8
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>
2023-01-06 10:12:36 +00:00
Vincent Huang
716a98e70a synaptics-rmi: add support to USBHID devices 2023-01-06 07:55:02 +00:00
Ivan Mikhanchuk
ed6011fc4d modem-manager: add quirk for Quectel RM520 modem
Quectel RM520 is based on Qualcomm SDX6x chipset and requires different
firehose programmer file.
2023-01-05 17:39:13 +00:00
Ivan Mikhanchuk
d1fc1d1f93 modem-manager: add firehose prog name quirk
Adds FirehoseProgFile quirk to determine the correct filename for the
firehose prog depending on the device VID:PID.
2023-01-05 17:39:13 +00:00
Sean Rhodes
b20737fe4a plugins/flashrom: Allow 32MiB images for the StarBook Mk VI
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2023-01-05 14:57:58 +00:00
Mario Limonciello
c939db9296 trivial: skip self tests that fail with G_IO_ERROR_NOT_DIRECTORY
fixes: #5370
2023-01-05 09:20:35 +00:00
Martin Fernandez
7b6770061c trivial: fix error message on reading IA32_TME_ACTIVATION 2023-01-04 16:16:20 +00:00
Richard Hughes
2aca445360 trivial: Ensure that G_TEST_SRCDIR is set for all self tests
This means that we don't get hard-to-debug failures later in time.
2023-01-04 07:24:01 -06:00
Richard Hughes
6c18cc0f66 mtd: Use dummy SMBIOS data to fix self test on s390x 2023-01-04 07:24:01 -06:00
Richard Hughes
faeefb66d0 Release fwupd 1.8.9 2023-01-03 12:15:50 +00:00
Richard Hughes
542014ebe3 Use 'check' when calling run_command() to avoid a warning
New versions of meson [correctly] warn when this parameter is not specified.
2022-12-29 15:49:02 +00:00
Josh Soref
67deecde31
Lots of spelling fixes
Fixes:

* activate
* active
* additional
* and
* approaches
* attestation
* bootloader
* calculate
* capability
* children
* close
* compatible
* continuous
* convenience
* critical
* data
* delivery
* disabled
* disambiguate
* documented
* elapse
* emergency
* erasable
* expectations
* filesystem
* from
* haptic
* ignorable
* images
* infinity
* information
* information
* inhibited
* insufficient
* interrupt
* into
* limited
* management
* manifest
* maximum
* memory
* metadata
* mismatch
* model
* nonexistent
* not
* objects
* offset
* omissions
* ota
* past
* perform
* peripherals
* predictable
* product
* quarterly
* quirk
* quirks
* recognize
* release
* requests
* revocation
* sanitized
* sector
* status
* the
* the update
* timeout
* transfer
* transfers
* typically
* unspecified
* upgrade
* which
* will
* wireless
2022-12-29 13:57:31 +00:00
Aaron Skomra
513bad1e93 wacom-usb: add scaler support to wacom-usb
Support for updating Wacom scalar firmware is being introduced
with the Cintiq Pro 27.
2022-12-23 10:50:54 +00:00
Richard Hughes
427e5cec7a trivial: Add new convenience API to make plugins simpler 2022-12-20 20:54:12 +00:00
Richard Hughes
47f537e005 wistron-dock: Add a new plugin to update several dock models 2022-12-20 14:51:40 +00:00
Denis Pynkin
4a1f9e8241 synaptics-cape: return false if version detection failed 2022-12-18 00:51:43 +03:00
Denis Pynkin
db57d9fe40 synaptics-cape: add the PID 0x0286
The device with PID=0x00298 has PID=0x0286 with the outdated FWre.
This change allows to recognize and update devices in the field to
the recent FWre version.
See: Google tracker issue 257197851

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
2022-12-18 00:51:43 +03:00
Mario Limonciello
8d97e2fa93 tpm: don't require event log to have all reconstructions 2022-12-17 13:00:51 -06:00
Mario Limonciello
99f36cb494 tpm: Add support for sha384 2022-12-17 08:18:48 -06:00
Richard Hughes
08e3eaafe0 uefi-dbx: Ignore failure to mount the ESP if unsupported
I think this is only possible when a raw partition with no filesystem has the
ESP or BDP UEFI GUID set in the partition table.
2022-12-16 14:58:03 +00:00
Richard Hughes
4cb7a20a68 superio: Return with failure if setting GError 2022-12-15 17:27:22 +00:00
Richard Hughes
a16d150ba9 superio: Do not set GError if not failing 2022-12-15 17:27:22 +00:00
Richard Hughes
4fc8685ca0 synaptics-cape: Prefix the GError correctly 2022-12-15 17:27:22 +00:00
Richard Hughes
a7c199bb59 elantp: Prefix the GError correctly 2022-12-15 17:27:22 +00:00
Richard Hughes
9f8f08e6bd trivial: Remove useless duplication 2022-12-15 17:27:22 +00:00
Vincent Huang
41dbc0292e synaptics-prometheus: add PIDs to quirk file 2022-12-15 08:05:06 +00:00
Richard Hughes
790b9023f7 ti-tps6598x: Use the TX identity to set the PD VID&PID to the correct values
This allows us to match the firmware stream to the dock model perfectly,
without relying on the oUID and CONFIG being set to specific OEM values.
2022-12-14 20:29:48 +00:00
Denis Pynkin
c446211b10 ti-tps6598x: remove the delay on write
Speed up the write by removing the delay after SFWd write:
- 100ms (current): 3m 16s
- no delays: 1m 45s
2022-12-14 23:23:21 +03:00
Mario Limonciello
9e22e9c12f iommu: Suggest to turn on ThunderboltAccess for Lenovo systems
Lenovo systems that offer a BIOS setting for ThunderboltAccess will
use this option to control whether the IOMMU is enabled by default
or not.

It may be counter-intuitive; but as there are other more physically
difficult to attack PCIe devices it's better to have the IOMMU
enabled pre-boot even if it enables access to Thunderbolt/USB4.

Fixes: #5314
2022-12-14 08:44:27 -06:00
Richard Hughes
02e3549f1a trivial: Fix build failure when /var/cache/fwupd is not writable
The fu_context_load_quirks(FU_QUIRKS_LOAD_FLAG_NO_CACHE) has to be done first,
otherwise fu_context_load_hwinfo() auto-loads the quirk db with the defaults.

Fixes a build failure in Fedora QA.
2022-12-14 14:12:17 +00:00
Richard Hughes
41314f3b3f ti-tps6598x: Add a new plugin to update some TI USB-4 docks 2022-12-14 12:50:25 +00:00
Jakub Kolakowski
45f5b50d6f Add needs-shutdown flag for Solidigm NVMe device 2022-12-13 08:37:17 +00:00
Richard Hughes
1d69bec346 trivial: Fix up a plugin method name 2022-12-10 14:42:30 +00:00