Richard Hughes
a647ae05d1
synaptics-mst: Do not allow updating a device with no customer ID
...
This is typically when the OEM is using the reference hardware design.
Prevent updates, as there might be a new bug introduced in the reference
firmware that only manifests on one OEM's product. It's up to the OEM to do the
testing and validation.
We need something to tie it back to a physical device model if it's using a
reference firmware and we want to update it.
2021-02-22 15:53:58 +00:00
Richard Hughes
a76de3279b
Add a test BLE plugin for a demo
2021-02-22 16:53:41 +01:00
Ricardo Cañuelo
536fb85e21
Add initial support for Bluez bluetooth devices
...
Bare skeleton for what will be the Bluez backend and the base bluetooth
device class.
2021-02-22 16:53:41 +01:00
Mario Limonciello
2264a2efca
trivial: ci: add a workaround for arch container generation issue
...
This should be dropped at some point hopefully when the new
docker release has landed.
See: https://github.com/actions/virtual-environments/issues/2658
Fixes : #2894
2021-02-22 08:49:00 -06:00
Richard Hughes
5f9e4730f1
synaptics-mst: Read the customer ID (board ID) in a more safe way
...
Also split out the firmware parsing to an object so we can check the firmware
using firmware-parse and also fuzz it.
See also: https://github.com/fwupd/fwupd/issues/1665
2021-02-22 13:57:34 +00:00
Richard Hughes
ad3cfc0fea
Convert MBR types to GPT GUIDs to help find the ESP
...
Fixes https://github.com/fwupd/fwupd/issues/2916
2021-02-22 13:00:33 +00:00
Chang Po-Hung
86d3c58e3b
Add cheetos quirk in pixart-rf
2021-02-20 07:28:51 +00:00
Mario Limonciello
c52079f3eb
trivial: don't hardcode expected plugins list for CI
...
Let these get turned on no matter what we change in daemon.conf
2021-02-19 14:27:28 -06:00
Mario Limonciello
707b0f367f
trivial: install any missing dependencies in containers
...
some of these might not be present if the containers got out of
sync. it will be a no-op at worst.
2021-02-19 10:24:14 -06:00
Richard Hughes
f3c3adb7f0
trivial: Add some more verbose debugging to help with plugin development
2021-02-19 09:33:07 +00:00
JimmyYu
6934656959
pixart: Fix more supported PID
2021-02-19 09:06:58 +00:00
Mario Limonciello
b4b6f8910d
trivial: allow 1_4_X to trigger CI builds from Github workflows
2021-02-18 14:46:15 -06:00
Richard Hughes
9df6764d93
uefi-capsule: Set the component generation to 1
...
See https://github.com/rhboot/shim/blob/main/SBAT.md
2021-02-18 13:23:18 -06:00
Richard Hughes
ec52942bc5
uefi-capsule: Include all the sections when using objcopy
...
Fixes the regression introduced in fde4b1676a
2021-02-18 13:23:18 -06:00
Richard Hughes
b4496cae81
tpm-eventlog: Fix a possible crash if not using _new()
2021-02-18 16:56:40 +00:00
Richard Hughes
2e1245728f
Call the superclass directly from subclassed devices
...
This allows a device subclass to call the parent method after doing an initial
action, or even deliberately not call the *generic* parent method at all.
It also simplifies the plugins; you no longer have to remember what the plugin
is deriving from and accidentally clobber the wrong superclass method.
2021-02-18 16:18:34 +00:00
Richard Hughes
a22c13c637
Move the plugin build logic to the plugins themselves
2021-02-18 14:46:20 +00:00
Richard Hughes
90254a5152
csr: Rename plugin to dfu-csr as it depends on the prefixed plugin
2021-02-18 14:46:20 +00:00
Mario Limonciello
d2130f73a3
trivial: Rename meson option tpm->plugin_tpm
2021-02-18 14:46:20 +00:00
JimmyYu
d6cf611861
pixart: Modify the README content
2021-02-18 09:11:35 +00:00
JimmyYu
8e10abf308
pixart: Add more supported pixart devices
2021-02-18 09:11:35 +00:00
JimmyYu
618fae792f
pixart: Re-define var and Guid
2021-02-18 09:11:35 +00:00
Richard Hughes
a52dc06841
ccgx: Add FuFirmware->write() for DMC firmware so the parser can be fuzzed
...
This also fixes all the of the big endian bugs when parsing firmware.
2021-02-17 08:53:37 +00:00
Richard Hughes
49527b76ca
ccgx: Allow turning off the checksum verification
2021-02-17 08:53:37 +00:00
Richard Hughes
645a62002e
pixart: Add some error prefixes to aid debugging
2021-02-17 08:48:45 +00:00
Richard Hughes
63a9665107
pixart: Fuzz the firmware parser
2021-02-17 08:48:45 +00:00
Richard Hughes
7fb4397f25
pixart: Set firmware version raw
2021-02-17 08:48:45 +00:00
JimmyYu
b7551c0211
pixart: Add support for more devices
2021-02-17 08:48:45 +00:00
Richard Hughes
f9cb8f3404
rts54hub: Add defines for the vendor commands
2021-02-17 08:41:06 +00:00
Richard Hughes
74db289c36
f
2021-02-17 15:25:41 +08:00
RickyWu
65f2fab869
rts54hub: Add child device of a RTD21xx HDMI converter
2021-02-17 15:25:41 +08:00
Richard Hughes
404f052409
Do not fail to start the daemon for a single backend setup failure
2021-02-16 21:26:50 +00:00
Lars Wendler
4a62482708
system76-launch plugin requires gusb
...
Otherwise the following build error happens:
../fwupd-1.5.6/plugins/system76-launch/fu-system76-launch-device.c:117:9: error: ‘G_USB_DEVICE_CLAIM_INTERFACE_BIND_KERNEL_DRIVER’ undeclared (first use in this function)
117 | G_USB_DEVICE_CLAIM_INTERFACE_BIND_KERNEL_DRIVER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../fwupd-1.5.6/plugins/system76-launch/fu-system76-launch-device.c:133:11: error: ‘G_USB_DEVICE_CLAIM_INTERFACE_BIND_KERNEL_DRIVER’ undeclared (first use in this function)
133 | G_USB_DEVICE_CLAIM_INTERFACE_BIND_KERNEL_DRIVER,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-02-16 10:40:36 -06:00
Morten Linderud
8525aaf2d3
contrib/PKGBUILD: Ensure pkgver gets expanded as an bash variable
...
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-02-16 10:40:07 -06:00
Richard Hughes
86c6c2d4a3
Add fu_firmware_set_version_raw()
...
A few plugins need this now, so move it into the base class.
2021-02-16 15:24:29 +00:00
Mario Limonciello
a862473928
trivial: debian: update signing template to match downstream
2021-02-16 08:05:49 -06:00
Richard Hughes
5018d14dcd
trivial: Remove executable permission on a C source file...
2021-02-16 12:26:28 +00:00
Richard Hughes
e5d33b0d01
trivial: post release version bump
2021-02-16 12:16:22 +00:00
Richard Hughes
260a24449d
Release fwupd 1.5.6
2021-02-16 12:14:12 +00:00
Richard Hughes
41ad677d8c
trivial: Disable clang scan-build
...
It is causing CI to fail, and signal-to-noise ratio is now basically zero.
2021-02-16 11:04:47 +00:00
Richard Hughes
6d656a940d
Allow building without SBAT metadata
...
Two reasons:
* It seems a bit antisocial to hard-require all this data without fair warning
* The aarch64 pesign crashes when trying to sign the binary with SBAT metadata
2021-02-16 11:04:47 +00:00
Richard Hughes
5eca890f93
trivial: Do not assume the running system has LVFS enabled for the tests
...
This is not true for RHEL, and so 'ninja dist' fails on any RHEL workstation.
2021-02-16 09:19:46 +00:00
Richard Hughes
f572a012f6
synaprom: Set a sane limit on the number of images that can be added
...
This fixes a timeout found by oss-fuzz.
2021-02-16 08:57:15 +00:00
Sean Rhodes
9840c54021
Adjusted superio L4 quirk
2021-02-15 22:24:40 +00:00
Richard Hughes
4822b3317b
ccgx: Check for FPE when parsing the metadata section
2021-02-15 16:47:27 +00:00
Ricardo Cañuelo
a92026476b
Fix ioctl error checking
...
fu_udev_device_ioctl() interprets the return value of ioctl() as the
error cause and generates a misleading error message (permission
denied).
Fix it to use errno for error checking and reporting.
2021-02-15 16:39:00 +01:00
bubbleguuum
27df5cf06e
fix broken progressbar display on urxvt due to improper calculation of to_erase
...
added space before bracket
2021-02-15 15:22:47 +00:00
Richard Hughes
665c5feaca
ihex: Never add more than 1 Intel hex signature
...
If you can create a 1Mb file with hundreds of thousands of zero-byte signatures
it takes a *long* time to parse the image.
2021-02-14 22:03:57 +00:00
Richard Hughes
ffbb1175d0
trivial: Do not consider all whitespace a valid strsafe string
2021-02-14 22:03:57 +00:00
Richard Hughes
a4e0de462c
trivial: Fix AddressSanitizer heap-buffer-overflow
2021-02-14 22:03:57 +00:00