Commit Graph

642 Commits

Author SHA1 Message Date
Richard Hughes
8072bb6fb7 trivial: Fix pointless header check
It can never be NULL. Found using Coverity.
2016-11-09 19:33:47 +00:00
Richard Hughes
710bf295b2 trivial: Fix two missing break statements
Found using Coverity.
2016-11-09 19:32:26 +00:00
Richard Hughes
e686719e38 dell: Fix a possibly-impossible-to-hit buffer overrun
Found using Coverity.
2016-11-09 19:30:37 +00:00
Richard Hughes
dd7713d27d trivial: Fix a tiny resource leak if the signature file cannot be opened
Found using Coverity.
2016-11-09 19:28:38 +00:00
Richard Hughes
4417c062fe dell: Don't return the address of a stack variable
Found using Coverity.
2016-11-09 19:27:08 +00:00
Richard Hughes
fec2480330 trivial: Fix a critical warning on shutdown 2016-11-04 09:30:14 +00:00
Richard Hughes
b28daac301 libdfu: Use a heuristic for the start address if the firmware has no DfuSe footer
This fixes flashing into the 96Boards BLE Carbon.
2016-11-03 15:11:25 +00:00
Richard Hughes
bfef02dc43 trivial: Sync the example spec file with downstream 2016-10-31 08:40:23 +00:00
Mario Limonciello
155f054dff trivial: re-enable dell tpm mode switching for system ID 07a4 2016-10-27 13:09:46 -05:00
Mario Limonciello
11dee100af Clarify the test in --help and man page related to offline (#69) 2016-10-19 15:56:48 -05:00
Richard Hughes
0d7c113ea3 Merge pull request #72 from dell/ac-warning
Show a different error when checking for updates while on battery power
2016-10-19 20:41:02 +01:00
Mario Limonciello
54a5a21757 Show a different error when checking for updates while on battery power (#68) 2016-10-19 14:29:53 -05:00
Richard Hughes
1e8a7bcbd5 trivial: post release version bump 2016-10-19 15:12:06 +01:00
Richard Hughes
219f675053 Release fwupd 0.7.5 2016-10-19 15:08:32 +01:00
Richard Hughes
ae7935448b libdfu: Correctly set the element address when uploading from DfuSe devices 2016-10-16 08:26:01 +01:00
Richard Hughes
6c17d2ed43 trivial: Fix an error path when the interface cannot be claimed 2016-10-16 08:26:01 +01:00
Mario Limonciello
a91214f545 Enable hardening flags on more binaries 2016-10-14 12:43:02 -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
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