memily
c255034574
vli: Add VL822 device+share-spi-pd
...
Co-authored-by: Emily Miller <m_emily@berkeley.com>
2021-03-30 13:06:49 +01:00
Érico Nogueira
391647f55e
Fix build on musl.
...
malloc_trim isn't a linux function, it's a GNU extension to malloc. We
can check for it in meson.build, which avoids hardcoding platform
knowledge.
2021-03-29 18:58:56 +01:00
Richard Hughes
baf10157dd
pixart-rf: Retry the SetReport after a successfull firmware update
2021-03-29 10:23:16 +01:00
Richard Hughes
836d9e9568
Offer the user to refresh after enabling
...
Some users are enabling updates-testing and then wondering why there are no more
firmware updates available. It appears after a 'fwupdmgr refresh' but that's
not obvious to end users who don't know about how this stuff is built.
2021-03-29 09:28:07 +01:00
Richard Hughes
dd61689073
Add fu_device_add_security_attrs()
2021-03-28 17:54:19 +01:00
Steve McIntyre
50348e1104
Tweak the SBAT output for a vendor string
...
The format is meant to be "<project>.<vendor>" with a period as a
separator.
Signed-off-by: Steve McIntyre <93sam@debian.org>
2021-03-26 15:21:15 +00:00
Ricardo Cañuelo
7f00967392
fu-tool: fix array access in fw_util_verify_update
2021-03-26 08:52:16 +01:00
Benson Leung
ef7262f19f
trivial: cros-ec: Fix error string to use inlen
...
Looks like this error message was copy/pasted from above.
Since we're testing whether actual != inlen, the error message should
output inlen.
2021-03-25 15:12:54 -07:00
Benson Leung
3dba442c1f
cros-ec: Fix call to fu_memdup_safe in fu_cros_ec_usb_device_do_xfer
...
outbuf == NULL is a valid condition in fu_cros_ec_usb_device_do_xfer. That's
how we use this function to specify a read with no outbound buffer, like the
reply at the end of sending a block.
Since 9b11af985f
("Add fu_memdup_safe()"), however, the call to fu_memdup_safe
always fails if outbuf, the dst, is NULL.
Fix this by moving this into the if (outbuf != NULL && outlen > 0) block below.
Fixes: 9b11af985f
("Add fu_memdup_safe()")
fixes #3064
2021-03-25 21:27:48 +00:00
Richard Hughes
f08491f727
synaptics-cxaudio: Retry GetReport to fix an enumeration failure
2021-03-25 14:30:07 +00:00
Richard Hughes
2d3b8c8427
Add some more new category types for firmware to use
2021-03-24 10:29:09 +00:00
JimmyYu
af1e70ad92
pixart: Modify ota retransmit flow
2021-03-22 17:48:08 +01:00
Richard Hughes
4a1baae30a
Do not timeout when bluez fails to start
...
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1933838
2021-03-22 10:04:28 +00:00
David Chiu
98328679ab
synaptics-rmi: Force the hardware into IEP mode as required
2021-03-22 07:51:06 +00:00
David Chiu
02404b0797
synaptics-rmi: Fix regression when setting edpAuxStatusRequest
2021-03-22 07:51:06 +00:00
David Chiu
09ad3a7f93
synaptics-rmi: Allow failure when writing and erasing
2021-03-22 07:51:06 +00:00
David Chiu
f9a0b04389
synaptics-rmi: Validate the firmware signature correctly
2021-03-22 07:51:06 +00:00
David Chiu
b15f393494
synaptics-rmi: Reduce the idle wait time
2021-03-22 07:51:06 +00:00
Richard Hughes
2002bd5046
trivial: Fix a compile failure with new GLib versions
...
GLib now 'helpfully' includes type_traits in gmacros.h -- which now explodes
when compiling with a C++ compiler.
2021-03-21 20:18:34 +00:00
Richard Hughes
790cb8fea2
ihex: Dectect address overflow causing the fuzz process to take along time
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32302
2021-03-21 20:18:34 +00:00
Richard Hughes
c8423fd685
ihex: Do not allow zero-sized data sections
2021-03-21 20:18:34 +00:00
Richard Hughes
69016bda04
ihex: Do not allow data sections after EOF
2021-03-21 20:18:34 +00:00
Richard Hughes
d4ad7cef71
trivial: Print the ASCII data in FuFirmware->to_string()
2021-03-21 20:18:34 +00:00
Richard Hughes
ece778c83d
intel-spi: Fix a typo spotted by Coverity
2021-03-20 17:33:18 +00:00
Richard Hughes
9c318a5a08
trivial: Fix 32 bit overflow in fu_common_get_memory_size()
...
Spotted by Coverity, thanks!
2021-03-20 17:32:56 +00:00
Richard Hughes
276baf12f9
trivial: Rename spi to intel-spi as it's all Intel specific
...
If we need to export the EFI symbols into libfwupdplugin for other plugins we
can do that when we need them.
2021-03-20 12:24:27 +00:00
Richard Hughes
be83a8eeea
spi: Fix a oss-fuzz detected critical warning
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32249
2021-03-19 18:00:59 +00:00
Norbert Kamiński
76e19930a8
fwupd port for BSD distros
...
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-03-19 17:05:09 +00:00
Richard Hughes
a5966f7085
trivial: Codespell fixes
2021-03-19 16:42:33 +00:00
Benson Leung
aad1b98e2c
cros-ec: Add D501 Baklava device support
...
Baklava is based on Quiche and will work with cros-ec plugin.
fixes #3044
2021-03-18 14:29:42 -07:00
Richard Hughes
119d260bd2
trivial: Limit alignment to 2GB to fix a fuzzing crash
...
This meant defining alignment values in FuFirmware.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32131
2021-03-17 11:14:46 +00:00
Richard Hughes
f0e77fb2ab
trivial: Use fu_byte_array_append_bytes() in a few more places
2021-03-17 11:14:46 +00:00
Richard Hughes
220aa3ac42
spi: Only show the flash_master output when debugging
2021-03-17 11:12:52 +00:00
Richard Hughes
c9088e77bc
trivial: Use g_memdup2() for newer GLib versions
2021-03-15 19:49:44 +00:00
Sean Rhodes
e5c67b0cde
Removed PciBcr Quirk
2021-03-15 18:56:54 +00:00
Richard Hughes
aa95f30390
Allow reading the PciBcrAddr quirk from flashrom devices
2021-03-15 18:30:05 +00:00
JimmyYu
bc39faf4cf
pixart: Add check result in fw upgrade response
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2021-03-15 13:07:13 +00:00
Richard Hughes
3b5523ebfc
trivial: Build the spi plugin in arch CI
2021-03-15 12:07:30 +00:00
Richard Hughes
f4d3a365f1
fmap: Use standard FuFirmware properties
2021-03-15 12:07:30 +00:00
Richard Hughes
52441f28a4
Allow objects to deserialize to XML
...
This makes a lot more sense; we can parse a firmware and export the same XML
we would use in a .builder.xml file. This allows us to two two things:
* Check we can round trip from XML -> binary -> XML
* Using a .builder.xml file we can check ->write() is endian safe
2021-03-15 12:07:30 +00:00
Richard Hughes
278c3998a5
Parse the IFD BIOS section into EFI FV and FFS2 sections
2021-03-15 10:46:39 +00:00
Richard Hughes
408b056984
trivial: Use fu_byte_array_append_bytes() in more places
2021-03-15 09:46:02 +00:00
Richard Hughes
1ad1458caf
dfu: Allow setting the DFU version
...
The 'version' shadows the variable of the same name in the FuFirmware subclass.
2021-03-15 09:46:02 +00:00
Richard Hughes
241f6cf3bb
trivial: Make the fuzzer generators a little easier to understand
2021-03-15 09:45:17 +00:00
Richard Hughes
664226a350
spi: Move all the IFD parsing to the new 'spi' plugin
...
We do not want to export this unfinished API, and it's probably best just to
not compile it by default until it is actually useful.
2021-03-15 09:45:17 +00:00
Richard Hughes
4c0224bba1
Generate the fuzzing targets using a script
...
We cannot yet build them as part of the build process, as we need an installed
tree so that the FuFirmware GTypes are registered. This halfway house at least
verifies we can generate all the binary files we include in the git repo.
2021-03-15 09:44:11 +00:00
Richard Hughes
1c0ed3ab1d
srec: Detect overflow to avoid adding ~4GB of 0xFF padding
...
Fixes https://oss-fuzz.com/testcase-detail/5468114109202432
2021-03-14 09:50:39 +00:00
Richard Hughes
752c8de149
trivial: Fix up gtk-doc comment for fu_firmware_set_size()
2021-03-13 16:23:26 +00:00
Richard Hughes
be527a8a60
trivial: Fix up the self test report for the bcm57xx binary
2021-03-13 16:16:27 +00:00
Richard Hughes
d2cdfcdb95
trivial: Fix up gtk-doc for fu_firmware_parse()
2021-03-13 16:09:35 +00:00