Richard Hughes
a29711c4a1
Move the FuQuirks reference down from DfuDevice to FuDevice
2017-12-11 10:47:18 +00:00
Richard Hughes
ae252cd83c
trivial: Add some common functionality from reading and writing to a buffer
2017-12-08 20:07:09 +00:00
Richard Hughes
1a16cc5e41
trivial: Remove the use of GCancellable in the dfu plugin
...
We're not using this, and we can simplify the code considerably now that the
library is not installed for external users.
2017-12-04 17:00:22 +00:00
Philip Withnall
a68a050f39
plugins: Remove various unused variables
...
Fix some compiler warnings to reduce the build noise.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2017-11-30 13:44:41 +00:00
Richard Hughes
4713f23f7f
dfu: Fix attaching AVR32 devices like the XMEGA
...
Also, add a self test that uses the XMEGA A3BU XPLAINED board, see
https://github.com/hughsie/fwupd-test-firmware/tree/master/AVR/XMEGA-A3BU-XPLAINED-1.23
for more details about how to build the bootloader and firmware.
2017-11-23 18:48:03 +00:00
Richard Hughes
352ba1b833
dfu: Add support for the original AVR DFU protocol
...
This allows us to flash hardware like the Retrode and other devices using chips
like the AT90USB1287.
The test files can be re-generated using the sample code found here:
https://github.com/hughsie/fwupd-test-firmware and are designed
to be used on the AT90USBKEY2 development board.
2017-11-16 15:30:30 +00:00
Richard Hughes
37906f6aae
trivial: Fix NULL/FALSE confusion in the dfu plugin
2017-11-09 14:32:25 +00:00
Richard Hughes
69fcb73a74
dfu: Fix a trivial unused variable spotted by clang
2017-11-09 12:16:12 +00:00
Richard Hughes
8517464eac
dfu: Use a 24-byte chip ID for XMEGA parts so we match signature values with dfu-programmer
2017-11-07 12:40:25 +00:00
Richard Hughes
d44a5ee56d
dfu: Add support for XMEGA chips
...
Notably, bootloaders for this class of device export an incorrect DFU interface.
Additionally, allow setting the buffer size for the UPLOAD to a larger size
than the defined device transfer size, which allows us to return the full
packet from the larger XMEGA devices.
2017-11-07 12:40:25 +00:00
Richard Hughes
79d08a327b
trivial: Use a #define value for signature reads
2017-11-06 12:56:38 +00:00
Richard Hughes
674ed347d2
dfu: Use FuQuirk to map the chip ID to the AVR32 UM0424 alt-name
2017-11-02 19:08:51 +00:00
Richard Hughes
c4e9b08f41
dfu: Remove the CanDownload and CanUpload attribute when required
...
When the AVR device is not recognised as a supported part we can't read or
write the firmware from the chip.
2017-10-31 18:30:05 +00:00
Richard Hughes
3e1e8227be
dfu: Add support for one type of AVR32 device
...
Currently the only supported model is the AT32UC3A3256S, more to come...
2017-10-31 18:30:05 +00:00