Richard Hughes
4bf2469b88
nordic-hid: Fix a few small memory leaks
2021-12-15 17:49:56 +00:00
Gaël PORTAY
53ed50e1c9
Add block erase command to FuCfiDevice
2021-12-15 17:49:32 +00:00
Gaël PORTAY
428f3d5b99
Add block size properties to FuCfiDevice
2021-12-15 17:49:32 +00:00
Richard Hughes
bcf000d7cc
Add fu_common_get_contents_stream() for future usage
2021-12-15 14:24:30 +00:00
Richard Hughes
52fd89f9ab
Add fu_memmem_safe() with fallback code for win32
2021-12-15 12:57:49 +00:00
Mario Limonciello
b92fe4a760
trivial: allow wildcard so same build script works on older fedora
2021-12-15 06:46:27 -06:00
Mario Limonciello
9e02ee590f
trivial: win32: bump to fedora 35
2021-12-15 06:46:27 -06:00
Mario Limonciello
27ac4f1fc2
trivial: libfwupd: correct building URI path
...
when run on Windows the following is emitted:
```
changing metadata URI from https://cdn.fwupd.org/downloads/firmware.xml.gz to
https://cdn.fwupd.org/downloads\firmware-02681-stable.xml.gz
```
2021-12-15 06:46:27 -06: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
Mario Limonciello
0b56a58b65
trivial: win32: fix subprocess call
...
```
19:22:39:0430 FuCommon running 'curl.exe https://cdn.fwupd.org/downloads/firmware.xml.gz.jcat --output C:\Users\mlimonci\AppData\Local\Microsoft\Windows\INetCache\fwupd\firmware.xml.gz.jcat --cacert C:\Program Files (x86)\fwupd\bin\..\bin\ca-bundle.crt'
19:22:39:0515 GLib-GObject invalid cast from 'GWin32InputStream' to 'GPollableInputStream'
19:22:39:0515 GLib-GIO g_pollable_input_stream_create_source: assertion 'G_IS_POLLABLE_INPUT_STREAM (stream)' failed
19:22:39:0516 GLib g_source_attach: assertion 'source != NULL' failed
19:22:39:0516 GLib g_source_set_callback: assertion 'source != NULL' failed
```
2021-12-15 06:46:27 -06:00
Mario Limonciello
bba3cd79de
trivial: win32: include and enable curl support
...
This is needed for LVFS refreshes to work.
* Install curl binary
* Install ca-certs bundle
* Install gspawn helpers
* Reference ca-certs bundle on Win32
2021-12-15 06:46:27 -06:00
Mario Limonciello
12bdc7d3ad
trivial: win32: discover the running directory
...
This should allow launching fwupdtool.exe from anywhere outside
of PATH
2021-12-15 06:46:27 -06:00
Mario Limonciello
4960ae34ba
trivial: win32: discover user's profile directory
...
For anything that is normally in /var on Linux, write it
here so that users don't need admin rights.
2021-12-15 06:46:27 -06:00
Mario Limonciello
dabfac661e
trivial: win32: disable motd writing by default
2021-12-15 06:46:27 -06:00
Mario Limonciello
54b61c2027
trivial: win32: install the lvfs remote
2021-12-15 06:46:27 -06:00
Mario Limonciello
7188e5b335
Add support to show curl/wget output from fwupdmgr/fwupdtool
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
b2048820aa
Copy private flags from donor devices
2021-12-13 15:21:51 -06:00
Richard Hughes
e21fb7630a
modem-manager: Set the context when the device is constructed
2021-12-13 15:21:43 -06:00
Richard Hughes
ec5d35ca8c
trivial: post release version bump
2021-12-13 12:18:10 +00:00
Richard Hughes
054fb04860
Release fwupd 1.7.3
2021-12-13 12:15:42 +00:00
Richard Hughes
2d9d93ec76
trivial: Prevent critical warning when calling fu_chunk_array_new() on zero-sized data
2021-12-12 11:16:03 +00: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
afb09fa2fa
trivial: Add a missing error check when creating a stream
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
a561b1a8ba
Make the plugin startup order deterministic
...
At the moment only the order is considered, and the rest is unspecified
by the filesystem.
2021-12-10 15:58:11 +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
346baab909
trivial: Fix CFI header to match reality
2021-12-10 15:00:10 +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
fbc7ad1adb
trivial: Fix FreeBSD CI by pinning the macos version
2021-12-09 13:18:41 +00:00
Richard Hughes
f9a7bcae0a
Add page and sector size properties to FuCfiDevice
2021-12-09 13:09:43 +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
Richard Hughes
f5f3e244c9
trivial: Allow quirking all CFI commands
2021-12-09 13:09:43 +00:00
Richard Hughes
ca221927ff
trivial: Include the CfiDeviceCmdReadId value in the quirk data
...
If we're getting the flash ID out-of-band we might not have this set.
2021-12-09 13:09:43 +00:00
Richard Hughes
c877593803
Add the CFI JEDEC instance ID if using vendor-extended version
...
Setting a flash ID of `C84016` would then add `CFI\FLASHID_C84016` and
also `CFI\FLASHID_C840`. This makes it easier to write quirks.
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
Richard Hughes
46d06bf42a
Fixup the GLib error message when inotify/max_user_instances is too low
...
This can be reproduced using sysctl fs.inotify.max_user_instances=25
and then running the daemon.
2021-12-07 18:51:11 +00: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
Gaël PORTAY
acb4d6e2ce
trivial: cfi: Fix up a typo
2021-12-07 10:17:54 +00:00