Commit Graph

9641 Commits

Author SHA1 Message Date
Mario Limonciello
a91214f545 Enable hardening flags on more binaries 2016-10-14 12:43:02 -05:00
Mario Limonciello
6ed7e126a9 Enable build hardening flags 2016-10-14 12:39:58 -05:00
Richard Hughes
bd81a89044 libdfu: Correctly erase DfuSe devices 2016-10-14 18:07:34 +01:00
Richard Hughes
21806b4696 libdfu: Wait for DNBUSY to be cleared when checking the DfuSe status 2016-10-14 18:07:34 +01:00
Richard Hughes
9e172a0b1f trivial: Raise the default timeout for DFU operations
Not all devices are fast, and the ST bootloader takes a long time to return
from erase.
2016-10-14 18:07:34 +01:00
Richard Hughes
503f057d3e libdfu: Add dfu_sector_get_zone() to get the continuous memory zone number 2016-10-14 18:07:34 +01:00
Richard Hughes
8e480bff54 trivial: Show the caps as letters when listing sectors as a string 2016-10-14 18:07:34 +01:00
Richard Hughes
79d2b93771 Add a 'replace-data' command to dfu-tool
This allows us to search-and-replace data in a firmware file that may be
protected with a checksum or CRC.
2016-10-14 18:07:34 +01:00
Richard Hughes
0e7877b831 trivial: Fix self tests after fixing sector addresses 2016-10-14 18:07:34 +01:00
Richard Hughes
35bea355b2 libdfu: Match the device booloader or runtime VID and PID when checking firmware 2016-10-14 18:07:34 +01:00
Richard Hughes
73b3bc59ac trivial: fake DFU runtime devices need a manual step 2016-10-14 18:07:34 +01:00
Richard Hughes
91685ce43b libdfu: Add quirks for HydraBus as it does not have a DFU runtime 2016-10-14 18:07:34 +01:00
Richard Hughes
8e2e46e60b libdfu: Re-get the quirks when the DfuDevice gets a new GUsbDevice 2016-10-14 18:07:34 +01:00
Richard Hughes
1ff658dbb2 libdfu: Ensure the mode is set correctly when faking a runtime 2016-10-14 18:07:34 +01:00
Richard Hughes
bacf255428 libdfu: Ensure the device is open before claiming the interface 2016-10-14 18:07:34 +01:00
Richard Hughes
a5c48ce07f libdfu: Fix verification of written DfuSe firmware
DfuSe doesn't stop returning data when the image is empty. Take as least as
much data as we require and then truncate the result to what we want.
2016-10-14 18:07:34 +01:00
Richard Hughes
73b63c87e8 libdfu: Do not do a zero-byte download when in DfuSe mode
For ST devices this means 'boot into APP mode' which we can also now populate.
2016-10-14 18:07:34 +01:00
Richard Hughes
8a3c18b4a3 libdfu: Use an animated progress bar when performing DFU operations 2016-10-14 18:07:34 +01:00
Richard Hughes
99f61c827a libdfu: Add DfuAction enumerated value to represent a device action
This is a high level operation which is supposed to correlate with the
percentage change notification. Using the device DfuState or DfuStatus doesn't
work when doing dfuse operations.
2016-10-13 19:43:20 +01:00
Richard Hughes
9117686b4c libdfu: Use the device offset when writing DfuSe firmware 2016-10-12 21:33:30 +01:00
Richard Hughes
cbdeca25e2 libdfu: Fix uploading from DfuSe devices 2016-10-12 20:36:27 +01:00
Richard Hughes
fa522907e9 libdfu: Do not do GetStatus on dfuse upload 2016-10-12 20:30:36 +01:00
Richard Hughes
5e40ae8778 libdfu: Correctly offset addresses when one zone has multiple sectors 2016-10-12 20:29:08 +01:00
Richard Hughes
41541213b1 trivial: Prefix some DfuSe errors with useful data 2016-10-12 16:39:23 +01:00
Richard Hughes
e9dbf70cd3 libdfu: Fix two possible critical warnings for corrupt USB descriptors 2016-10-12 16:15:58 +01:00
Richard Hughes
ac614987e6 Show the nicely formatted target name for DfuSe devices 2016-10-12 15:05:41 +01:00
Richard Hughes
053ade98e8 trivial: Only show the cipher kind if set 2016-10-12 15:05:23 +01:00
Richard Hughes
2fd030e663 trivial: Print the transfer size in the 'dfu-tool list' output 2016-10-12 15:05:03 +01:00
Richard Hughes
c6a8deeb4c dfu: Fix listing devices using the ST reference bootloader 2016-10-12 15:04:31 +01:00
Richard Hughes
877df1dda3 libfdfu: Show a warning when getting the alt-name failed 2016-10-12 13:15:03 +01:00
Matthias Klumpp
a99d5529a7 Finalize changelog for 0.7.4-2 2016-10-11 23:49:27 +02:00
Mario Limonciello
1a5786dfbc Drop valgrind build dependency for mipsel, mips64el, armhf, and armel where it is segfaulting. 2016-10-11 10:38:12 -05:00
Mario Limonciello
0659de4e4f Drop armel from libfwup-dev build dependency architecture list. 2016-10-11 10:37:52 -05:00
Mario Limonciello
ca8a70e1be Backport a patch to make sure that appstream metadata validates properly (Closes: #837765) 2016-10-11 10:37:25 -05:00
Steve McIntyre
62c7595d1b Release 0.7.4-1 2016-10-06 01:21:39 +01:00
Mario Limonciello
4cd4970ec7 update changelog date 2016-10-03 14:56:50 -05:00
Mario Limonciello
a3cd1c361d Backport patch to make sure test suite runs without sysfs bind mounted. 2016-10-03 14:36:08 -05:00
Mario Limonciello
cdf5b86e04 dell: If running in test suite, don't try to get product ID from sysfs
It's possible that the test suite was running in an environment without
bind mounted sysfs.
2016-10-03 14:32:47 -05:00
Richard Hughes
5c628e2955 trivial: Make the AppStream file validate 2016-10-03 15:21:38 +01:00
Richard Hughes
eff5da7156 Enable the stack protection in local builds
This means we crash just the same way as the distro packages.
2016-09-29 19:43:57 +01:00
Richard Hughes
208c8a819e Fix a -fstack-protector-strong crash when uploading firmware
Casting the pointer type causes the stack protector to get upset.
2016-09-29 19:41:02 +01:00
Mario Limonciello
cd272ac1cf dell: Match on TB16 as well 2016-09-28 15:58:47 -05:00
Mario Limonciello
eaa692403a Update email address in changelog 2016-09-28 15:55:03 -05:00
Mario Limonciello
fc268419fd Add build dep on gir1.2-appstreamglib-1.0 2016-09-27 15:10:46 -05:00
Richard Hughes
f401775c8a Don't create the UEFI dummy device if the unlock will happen on next boot 2016-09-27 15:35:01 +01:00
Richard Hughes
b0af181b01 Fix an assert when unlocking the dummy ESRT device 2016-09-27 15:27:23 +01:00
Mario Limonciello
b535a640f7 Update symbols file. 2016-09-23 11:34:24 -05:00
Mario Limonciello
7bb0236721 depend upon efivar >28 not > 28-1 2016-09-23 11:13:13 -05:00
Mario Limonciello
1e49563539 stage changelog to prepare for 0.7.4-1 release 2016-09-23 11:05:22 -05:00
Mario Limonciello
cf0ec0b3d4 Add an explicit build dependency on new version of efivar 2016-09-23 11:04:52 -05:00