Benson Leung
24f0570e1b
cros-ec: Set FWUPD_DEVICE_FLAG_DUAL_IMAGE
2020-08-28 10:48:03 -07:00
Benson Leung
7f3095d9ff
cros-ec: Use iConfiguration to determine RO versus RW versions
...
This requires an API upgrade. libgusb 0.3.5 is required for iConfiguration.
2020-08-28 10:48:03 -07:00
Benson Leung
9832b4138c
cros-ec: Restart to RO on detach and to RW on attach
...
Add external command support and functions to reset to RO and RW.
This will now jump to the RO no matter what, and update the RW, then
jump to RW.
2020-08-28 10:48:03 -07:00
Benson Leung
879b8149c7
cros-ec: Set FWUPD_DEVICE_FLAG_UPDATABLE
2020-08-28 10:48:03 -07:00
Richard Hughes
024b37fcee
trivial: Fix segfault when xmlb cache cannot be written
2020-08-28 17:41:28 +01:00
Mario Limonciello
5de5dd3582
Install the installed tests
...
Move binaries out of fwupd tree to https://github.com/fwupd/fwupd-test-firmware
Fixes some of https://github.com/fwupd/fwupd/issues/1956
2020-08-28 10:10:43 -05:00
Mario Limonciello
e89ce1a935
trivial: dell-dock: check for valid dock type on open
...
Only add instance ID if it actually probes properly.
Otherwise this makes an invalid assumption that the device is a WD19
EC just because it had the correct hub in front.
Instead check the first time it's opened that the correct device
is identified (`EXPECTED_DOCK_TYPE`)
2020-08-28 09:53:54 -05:00
Richard Hughes
8307bd603e
cpu: Directly probe the CPUID data to improve startup speed
...
This is much more efficient than parsing hundreds of lines of /proc/cpuinfo
and also causes hundreds of thousands less allocations at startup. For systems
with dozens of virtual CPUs the deduplication of device objects was increasing
start up time considerably.
Use the msr plugin to read the microcode version as this is not obtained using
CPUID, as it is instead being provided in an MSR.
2020-08-24 16:37:27 +01:00
Richard Hughes
f779a0cfaa
msr: Use the new fu_common_cpuid() functionality
2020-08-24 16:37:27 +01:00
Richard Hughes
3a095cdadf
cpu: Use the extended IDs where required
2020-08-24 16:37:27 +01:00
Richard Hughes
8667c7e816
cpu: Use the proper vendor name rather than the signature
2020-08-24 16:37:27 +01:00
Richard Hughes
bd1dc2a1e2
pcb-bcr: Use the correct BCR register for Bay Trail CPUs
...
Fixes https://github.com/fwupd/fwupd/issues/2328
2020-08-20 22:07:05 +01:00
Mario Limonciello
82c3e3471d
Remove support for UEFI dbx security attribute
...
This is no longer relevant as fwupd is providing dbxtool now.
2020-08-19 07:38:51 +01:00
Richard Hughes
58ba785915
Install the new dbx utility as fwupdbxtool
2020-08-18 17:34:26 +01:00
Richard Hughes
fd0ee5153e
Add some of the HSI specification to the generated documentation
2020-08-17 20:23:49 +01:00
Richard Hughes
13b3343aaf
vli: Add support for the Realtek RTD21XX I²C protocol
2020-08-17 20:23:09 +01:00
Richard Hughes
1abb32c623
uefi-dbx: Validate the dbx update is safe to apply
...
To do this mount all ESP partitions and check all the binaries there to see if
they match any entries in the new dbx. If we applied the update when a hash
matched, we would unintentially 'brick' the users machine, as the grub and shim
binaries *have* to be updated first.
This functionality does reimplement the PE hashing functionality found in
sbsigntools and pesign. This was done for 4 main reasons:
* There were some memory safety issues found when fuzzing random binaries
* Executing the tools hundreds of times was a lot of overhead
* Operating from a blob of immutable mmap'd memory is much faster
* We only need a very small amount of functionality from both tools
2020-08-17 15:59:02 +01:00
Richard Hughes
0e7102c4f8
uefi-dbx: Fix some NULL/FALSE confusion
2020-08-17 14:47:58 +01:00
Richard Hughes
1411b8056b
acpi-facp: Fix some NULL/FALSE confusion
2020-08-17 14:47:42 +01:00
Richard Hughes
7bca1b27b4
acpi-dmar: Fix some NULL/FALSE confusion
2020-08-17 14:47:30 +01:00
Darkovian
4e2768057b
Update ata.quirk
...
Added OUI\030302 to ata.quirk
2020-08-14 15:05:00 -05:00
Richard Hughes
01d5779597
uefi-dbx: Allow updating the dbx using the LVFS
...
The GUID is built using the SHA256 of the certificates in the KEK.
2020-08-14 13:22:53 +01:00
Richard Hughes
edc3432338
dbxtool: List the checksums correctly for multiple EFI_SIGNATURE_LISTs
...
Fixes https://github.com/fwupd/fwupd/issues/2319
2020-08-13 21:19:10 +01:00
Richard Hughes
361114784b
Add a compatible re-implementation of the rhboot dbxtool
2020-08-13 19:09:40 +01:00
Richard Hughes
12f21b89ec
trivial: Fix CI -Werror=null-dereference false positive
2020-08-13 13:41:43 +01:00
Richard Hughes
d3f60abe6d
uefi: Port the plugin to use FuVolume
2020-08-12 18:35:15 +01:00
Richard Hughes
99dda53cc2
trivial: Define one more EFI GUID
2020-08-12 15:13:09 +01:00
Vincent Huang
334a4d9f30
synaptics-prometheus: generate new guid with configid and add pids to
...
quirk file
2020-08-12 09:47:46 +01:00
Mario Limonciello
0ebddc9fcf
trivial: fix some unused variables found by clang-10
2020-08-10 10:33:31 -05:00
Mario Limonciello
2c55382944
trivial: cpu: add noreturn attribute
2020-08-10 10:33:31 -05:00
Richard Hughes
4a0d14b097
trivial: Fix the quirk entry for the Star LabTop Mk IV
2020-07-30 15:13:00 +01:00
Sean Rhodes
c7edf611c3
Added quirk for LabTop Mk IV
2020-07-29 12:58:02 +01:00
Ryan Lee
0b5ed33b23
ccgx: Modify readme to remove customer info
2020-07-29 12:01:31 +01:00
Emily Miller
b700783bf6
vli: Add dual-image feature for VL103 backup firmware
2020-07-29 10:57:02 +01:00
mendel5
db2906d49c
fu-plugin-synaptics-mst.c: replace github.com/hughsie with github.com/fwupd
2020-07-28 14:28:15 -05:00
Richard Hughes
cad96542e2
Check if CET is actually being used on the runtime system
...
With thanks to H.J. Lu <hjl.tools@gmail.com> for the initial code.
2020-07-27 15:53:38 +01:00
Richard Hughes
cb1e6075c5
thelio-io: Define the protocol on the runtime device
...
This allows us to use 'protocol' in the device test JSON and also prevents a
daemon warning at startup.
2020-07-25 09:09:24 +01:00
Richard Hughes
587ca9793f
nitrokey: Define the protocol on the runtime device
...
This prevents a daemon warning.
2020-07-25 09:09:24 +01:00
Richard Hughes
4f617e2eb6
thelio-io: Set the runtime version to 0.0.0 for pre-1.0.0 firmware
2020-07-23 14:12:31 +01:00
Richard Hughes
8fe710135b
thelio-io: Add the DFU instance ID as a counterpart only
...
This means we do not add possibly unwanted bootloader-specific quirks to the
runtime device.
2020-07-23 14:12:31 +01:00
Richard Hughes
4e13a790df
vli: Rename FuVliUsbhubI2cDevice to FuVliUsbhubMsp430Device
...
The I²C proxy specification is not always shared with all other devices as
I originally hoped, instead there are other legacy devices that use different
sets of I²C commands.
Un-share various bits of code to allow for additional I²C devices to be added.
No logic changes.
2020-07-22 20:04:20 +01:00
Richard Hughes
30f7ffbdbd
pci-mei: Split up the bootguard HSI checks into multiple entries
...
Additionally, demote the error policy to HSI-3 and do not show the other
failures if BootGuard is disabled.
Fixes https://github.com/fwupd/fwupd/issues/2265
2020-07-20 22:50:31 +01:00
Richard Hughes
9a04ce8f29
msr: Add a new plugin to detect the Intel DCI state
2020-07-16 20:13:06 +01:00
Mario Limonciello
ec9eb9061f
trivial: add oui quirk for samsung ( Fixes : #2070 )
2020-07-10 13:42:31 -05:00
Benson Leung
852c6685ff
cros-ec: Set protocol for cros-ec-usb-device
...
Specify "com.google.usb.crosec" to indicate support for Google's
USB endpoint updater protocol.
2020-07-09 07:44:19 +01:00
Benson Leung
8ed9f5f0a1
cros-ec: Write firmware to usb target
...
Write the firmware to the usb device, first finding which section to
write to, then breaking into blocks (based on maximum pdu size),
and then into chunks, which are transferred to the device using bulk transfers.
2020-07-09 07:44:19 +01:00
Benson Leung
4ed2400cab
cros-ec: Store image_idx in section
...
Makes it a bit easier to retrieve the image later.
2020-07-09 07:44:19 +01:00
Benson Leung
9326e19118
cros-ec: Give cros-ec-firmware a get_sections
...
Add a getter for the sections.
2020-07-09 07:44:19 +01:00
Benson Leung
d0cd862acf
cros-ec: Add fu_cros_ec_firmware_pick_sections
...
Add this to allow the usb-device to mark which section of the firmware
image is writeable by setting the section's ustatus to FU_CROS_EC_FW_NEEDED.
2020-07-09 07:44:19 +01:00
Benson Leung
befd9a420e
cros-ec: Convert cros-ec-firmware's sections to GPtrArray
2020-07-09 07:44:19 +01:00