Commit Graph

2659 Commits

Author SHA1 Message Date
Dylan Van Assche
f6833f96c3 modem-manager: add context for fu_mm_device_udev_new
After upgrading a modem, the FuContext was missing when the modem comes back
2021-12-20 10:02:36 +00:00
Philipp Wendler
935e92d079 uefi-capsule: clarify UDisks requirement for ESP autodetection
The ESP is autodetected only if UDisks is available,
but this was not explicitly documented so far.

Fixes #4103
2021-12-17 14:35:08 -06:00
Mario Limonciello
22057f76cc redfish: Use secure helper to set file permissions when setting password
Instead of installing the conf file as locked down, set permissions when
using it.

This fixes a problem on snap first run:
```
cp: cannot open '/snap/fwupd/x1/etc/fwupd/redfish.conf' for reading: Permission denied
```
2021-12-17 11:05:05 -06:00
Sean Rhodes
19c7ee2423 plugins/flashrom: Change StarLabs devices from number to plain
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2021-12-17 16:44:16 +00:00
Eric Lin
55553a7a5b add new device Belkin docking station : VID050D/PID003F 2021-12-16 11:57:19 +00:00
JackZhang-Primax
73effcbc11 Update pixart-rf.quirk
Add device support for HP 320 BTKB
2021-12-16 00:33:28 -06:00
Dylan Van Assche
df3b139a0e modem-manager: require AC power
Updating modems is less risky when AC power is present.
2021-12-15 22:07:23 +00:00
Dylan Van Assche
833547823e plugins/fastboot: increase operation delay for Quectel EG25-G
When flashing bigger firmware packages we would still get an timeout
after 10 minutes. Increasing the delay between read/write operations
from 100ms to 250ms solves that.
2021-12-15 22:07:23 +00:00
Richard Hughes
4bf2469b88 nordic-hid: Fix a few small memory leaks 2021-12-15 17:49:56 +00:00
Mario Limonciello
e332a3683e trivial: win32: don't reference synaptics-mst plugin
This plugin won't work on win32, it's a pointless error message
2021-12-15 06:46:27 -06:00
Dylan Van Assche
90baeaabbc modem-manager: add Quectel EG25-G no response quirk 2021-12-14 22:46:04 +00:00
Dylan Van Assche
a489191c38 modem-manager: add support for AT fastboot detach commands without response
Normally each AT command is ended with either OK or ERROR,
but that's not the case for the Quectel EG25-G's AT command to enter fastboot.
As soon as AT+QFASTBOOT is sent, the modem switches to fastboot mode without replying OK.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
3eead7aa60 modem-manager: add quirk for Quectel EG25-G
Allow fwupd to detect the switch between modem-manager and fastboot plugins
 as it appears under a different vendor and device ID.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
12282ca6bc fastboot: add operation delay quirk for Quectel EG25-G 2021-12-14 22:46:04 +00:00
Dylan Van Assche
e6121ae3c7 fastboot: add quirk to delay operations
Some devices such as the Quectel EG25-G modem need some breathing room
between fastboot commands. This quirk allows to specify for such devices
a delay which is used after each read or write command.
Without this, the Quectel EG25-G modem's fastboot bootloader
cannot handle this and crashes.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
c0ec63091d fastboot: add quirk for Quectel EG25-G
The Quectel EG25-G modem must use a blocksize of 16384 bytes in fastboot mode.
Using a different blocksize makes the fastboot bootloader crash,
resulting in a failed update.
2021-12-14 22:46:04 +00:00
Richard Hughes
e21fb7630a modem-manager: Set the context when the device is constructed 2021-12-13 15:21:43 -06:00
Richard Hughes
179f250b9a trivial: Properly namespace _INTERNAL_FLAG_NO_AUTO_REMOVE 2021-12-10 17:25:54 +00:00
Richard Hughes
3822422b1e trivial: Workaround two false 'unused' warnings from clang 2021-12-10 16:00:07 +00:00
Richard Hughes
8fc8539146 trivial: Remove some unused variables 2021-12-10 16:00:07 +00:00
Richard Hughes
d7aeac4663 logitech-hidpp: Use endian-safe version functions 2021-12-10 15:59:57 +00:00
Richard Hughes
26bec76a8c synaptics-cape: Do not assume we can align uint8_t to uint32_t 2021-12-10 15:59:24 +00:00
Richard Hughes
1ba55f1045 parade-lspcon: Add a missing error check 2021-12-10 15:58:39 +00:00
Richard Hughes
44ec25d9d5 cfu: Add a missing version setter 2021-12-10 15:58:22 +00:00
Richard Hughes
853b20ded4 tpm: Fix a tiny memory leak in the TPM self tests 2021-12-10 15:57:58 +00:00
Richard Hughes
eb4fa6dbf6 tpm: Fix a clang warning of a variable clash
Also, fix a memory leak as this is actually a `gchar **`.
2021-12-10 15:57:58 +00:00
Richard Hughes
251f6348aa trivial: Add the missing plugin_cpu
I think using the plugin_uefi_pk option was probably a typo.
2021-12-10 12:00:33 +00:00
Richard Hughes
58d36dcbe5 Check the value range when parsing the quirk keys
At the moment there isn't an error if you enter something like

    CfiDeviceCmdReadId = 0×12
2021-12-09 13:09:43 +00:00
Mario Limonciello
95e3a97212 trivial: synaptics-prometheus: add some other product IDs
These are used in some upcoming systems.

Referenced from:
128d809227
2021-12-07 14:05:07 -06:00
Kranthi Kuntala
de1f971e14 thunderbolt: set ports offline on host controller
This change offline ports in the host controller
for retimers to enumerate in the NDA case.

-offline and rescan usb4 ports
-this enable enumeration of the retimers
-updates nvm to the enumerated retimers
-online usb4 port this will de-enumerate retimers

BUG=b:187506425
TEST=emerge-volteer fwupd

Signed-off-by: Kranthi Kuntala <kranthi.kuntala@intel.corp-partner.google.com>
2021-12-07 15:54:30 +00:00
Denis Pynkin
4fbe1c58c7 plugins/nordic-hid: added initial version
The plugin is using Nordic Semiconductor HID config channel to perform
devices update directly atteched via USB and BLE.
Current implementation supports FW images compatible with the nRF Secure
Immutable Bootloader.
This version has been tested with nRF52840-DK board.

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2021-12-07 08:19:29 +00:00
Richard Hughes
058cfc6775 vli: Set up some more progress values correctly 2021-12-06 17:57:23 +00:00
Richard Hughes
e9185ebd83 vli: Fix LV820Q7 detection
This was changed accidentally in 5d337e72a6
which broke installing USB hub firmware on the Lenovo WS dock G2.
2021-12-06 17:57:23 +00:00
Richard Hughes
61fe427d41 dell-dock: Fix a trivial clang-format issue
This was somehow missed when we reformatted the entire source tree.
2021-11-29 21:40:17 +00:00
Richard Hughes
8c94489b4a dfu: Fix unintentional regression when merging the FuProgress work
See https://github.com/fwupd/fwupd/pull/3678/files#r758752086
2021-11-29 21:38:19 +00:00
Richard Hughes
02eac5c75f Make more plugins optional 2021-11-29 09:30:57 +00:00
Richard Hughes
dc1d5de057 Make the HSI tests optional for embedded targets
70% of the plugins installed on OpenBMC are not being used...
2021-11-29 09:30:57 +00:00
Richard Hughes
3291bd40ce Make Upower and powerd support optional
In some cases you really know that the daemon is never going to exist.
2021-11-27 18:46:27 +00:00
Richard Hughes
3ad283fc50 system76-launch: Wait for the device to come back from DFU mode
Fixes https://github.com/fwupd/fwupd/issues/4028
2021-11-27 08:26:51 +00:00
Richard Hughes
dd6ae09e80 nvme: Hide some verbose debugging by default 2021-11-27 07:22:40 +00:00
Richard Hughes
a4a0872727 dfu: Fix a progress warning when attaching AVR32 2021-11-27 07:22:37 +00:00
Richard Hughes
3ffc3fa774 Add fu_common_sum8() common functionality
We now have 9 different plugins all using this functionality, and we're
about to add one more. Move this into common code so that all the
plugins are using the same endian and bufsz-safe versions.
2021-11-26 18:33:11 +03:00
Richard Hughes
7143e04852 Add FuArchiveFirmware
Add a FuFirmware superclass that allows us to parse an new archive in the archive. We already do this for fastboot and we're about to add another.
2021-11-26 13:47:04 +00:00
Richard Hughes
e121332c97 dfu: Do not wait for a USB runtime if will-disappear is set
Fixes https://github.com/fwupd/fwupd/issues/4000
2021-11-24 15:47:53 +00:00
Richard Hughes
d62d281871 dfu: Ignore a USB error for STM32 attach when the device goes away 2021-11-24 15:47:53 +00:00
Richard Hughes
71d93a65fb Make sqlite optional
This isn't required when fwupd is installed on targets like a BMC.
2021-11-23 15:09:05 +00:00
Richard Hughes
e1e212553b elanfp: Add some sanity checks to the firmware parser
Fixes https://oss-fuzz.com/testcase-detail/6107550261575680
2021-11-23 14:56:47 +00:00
Richard Hughes
b2ad10a818 trivial: Work around two false positives when compiling with gcc -Os 2021-11-22 15:19:38 +00:00
Richard Hughes
c92f352393 intel-spi: Use lowercase flag names
This was missed in the addition of 40c7f7ba21
2021-11-19 12:25:06 +00:00
Richard Hughes
3e2e0aa616 trivial: Fix build error with old meson versions
On 0.58.1:

    ERROR: Bad source of type 'SharedModule' in target 'tpm-self-test'.
2021-11-19 06:54:46 +00:00