Richard Hughes
183c56e712
Support signed Intel HEX files
...
The record type 0xfd is nonstandard but used in at least one product to avoid
having an additional signing key file.
2017-04-20 15:36:56 +01:00
Richard Hughes
1deda31cae
Make libelf support optional
2016-11-22 15:39:57 +00: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
0e7877b831
trivial: Fix self tests after fixing sector addresses
2016-10-14 18:07:34 +01:00
Richard Hughes
c6a8deeb4c
dfu: Fix listing devices using the ST reference bootloader
2016-10-12 15:04:31 +01:00
Richard Hughes
bf59e265bc
Write the ELF files with the correct section type
...
This should fix a compile failure on s390x.
Resolves: https://github.com/hughsie/fwupd/issues/63
2016-08-31 10:30:48 +01:00
Richard Hughes
7920826098
trivial: Remove the version from the DFU firmware format enum
...
This isn't accurate, as it's used for all versions of DFU.
2016-08-26 18:44:00 +01:00
Richard Hughes
3667ee7b22
libdfu: Add initial ELF reading and writing support
2016-08-26 18:44:00 +01:00
Richard Hughes
e1e50dc2fd
Split out the DFU file formats to separate files
2016-08-17 17:46:15 +01:00
Richard Hughes
33a518a615
Add another compile warning and fix up any build failures
2016-07-27 16:57:36 +01:00
Richard Hughes
ce38d94d5e
trivial: Get rid of useless internal-only gtk-doc markup
2016-06-29 11:25:25 +01:00
Richard Hughes
f4e8fe0763
trivial: Fix several trivial warnings on ARM
2015-12-06 17:51:10 +00:00
Richard Hughes
032596e800
libdfu: Fix several reported crashes in the inhex32 import code
...
This also adds the ability to write simple Intel HEX files too.
2015-12-06 16:27:16 +00:00
Richard Hughes
7c37e55459
libdfu: Add support for the draft 'DFU Metadata Table Specification'
2015-12-04 16:01:40 +00:00
Richard Hughes
4545dd70af
libdfu: Add DfuCipher which is a property on a target and a firmware file
...
At the moment we're not doing anything smart other than looking at the
firmware filename, but in the future we might do something better.
2015-12-04 12:58:05 +00:00
Richard Hughes
9b1349b885
libdfu: Add an explicit 'attach' method
...
This can also deal with the m-stack quirk in a central place.
2015-11-27 10:54:26 +00:00
Richard Hughes
4bb94e4bcd
libdfu: Fix dfu_device_wait_for_replug() so it can work with a DfuContext
...
Using g_usleep() works for the command line tool, but this starves the event
loop which means we get a flurry of removed:added:removed:added signals once
complete.
The context 'helpfully' sets up the new GUsbDevice which means we're doing
things with DfuTargets without DfuDevices and DfuTargets without GUsbDevices.
Basically, madness ensues.
2015-11-25 13:57:04 +00:00
Richard Hughes
93a6edf2c6
trivial: Define the default replug timeout in a central place
...
Some users were using 2000ms and some the more sane 5000ms.
2015-11-25 13:41:55 +00:00
Richard Hughes
b4c888e309
libdfu: Accept multiple spaces after the DfuSe sector name
2015-11-25 10:27:36 +00:00
Richard Hughes
012bcc0239
libdfu: Fix self tests after recent API change
2015-11-24 18:33:40 +00:00
Richard Hughes
e7aaf39de2
libdfu: Fix multi-interface devices like the Neo Freerunner
...
The DFU specification specifies that only one of the DFU interfaces has to
export a functional descriptor; I assumed they all had to. Adding support
for this kind of device rapidly turned into a massive restructure and it was
all too complicated anyway.
Reorganise the code so that we can support these kinds of devices and clean up
the API so it's sane and easy to use. This also allows us to generate the
GObject introspection GIR and to also install libdfu as a shared library.
If you've got any comments about the API, please shout now as when 6.0 is
released it will become API and ABI stable.
2015-11-22 21:17:48 +00:00
Richard Hughes
e7ba943cf5
libdfu: Support download and upload to ST DfuSe devices
...
Also, simplify the general download and upload API now we can deal with
element data in chunks.
2015-11-20 14:14:05 +00:00
Richard Hughes
cfd399498d
libdfu: Use a custom error domain
2015-11-14 17:34:08 +00:00
Richard Hughes
460bc2012e
libdfu: Move the VID:PID checks from the tool to DfuDevice
2015-11-14 17:12:29 +00:00
Richard Hughes
eeea7f8b32
libdfu: Don't rely on specific hardware to be present
2015-11-14 16:51:53 +00:00
Richard Hughes
62633af0db
libdfu: Add support for DfuSe firmware
...
Also, move some shared stuff down from DfuTarget to DfuDevice.
2015-11-14 16:34:09 +00:00
Richard Hughes
a3acd7f711
Add support for updating USB devices with DFU
...
This adds a private libdfu library and also a small utility program called
dfu-tool.
2015-11-12 17:32:48 +00:00