Richard Hughes
3979ba5039
nitrokey: Fix a buffer overrun spotted by Coverity
...
This only happens when debugging, so it was not spotted by valgrind.
2017-11-13 21:59:57 +00:00
Richard Hughes
9b0d228ed9
Add a nitrokey plugin
...
This gets the firmware version from the Nitrokey storage device but does not
enable the firmware upgrade mechanism.
2017-11-13 16:25:46 +00:00
Richard Hughes
31830aaea3
dfu: Ensure the mode is set correctly for fake runtimes
2017-11-13 16:01:57 +00:00
Richard Hughes
959e3d8a76
dfu: Add quirk for AT32UC3B1256 as used in the RubberDucky
2017-11-13 14:25:02 +00:00
Richard Hughes
ff3efe77b4
trivial: Fix the DFU self tests when the ColorHug+ is connected
2017-11-13 14:07:50 +00:00
Richard Hughes
9e59fa4d16
ebitdo: Rename FuDeviceEbitdo to FuEbitdoDevice
...
This is what most programmers expect and makes it clear what it derives.
2017-11-13 14:03:02 +00:00
Richard Hughes
a142bb15b6
altos: Rename FuDeviceAltos to FuAltosDevice
...
This is what most programmers expect and makes it clear what it derives.
2017-11-13 13:58:37 +00:00
Richard Hughes
ba6391e98d
colorhug: Do not save the firmware blob in the device state
...
It's only needed for fu_plugin_update() so there's no point at all.
2017-11-11 21:58:17 +00:00
Richard Hughes
28abc4f60d
colorhug: Do not use two prefixes for trivial log messages
...
G_LOG_DOMAIN is set to something ColorHug-specific already.
2017-11-11 21:58:17 +00:00
Richard Hughes
85dbcbf534
dfu: Add trivial helpers to get the current vid/pid/release
2017-11-11 21:06:18 +00:00
Richard Hughes
95ca91a515
trivial: Clarify two gtk-doc comments to explain the flags better
2017-11-11 21:06:14 +00:00
Richard Hughes
f1d6f6cfc3
trivial: Unconstify an allocated variable to avoid a GCC warning
2017-11-10 14:31:22 +00:00
Richard Hughes
97d1cbb304
trivial: Ensure the polkit rules always get installed into datadir
2017-11-10 14:31:22 +00:00
Mario Limonciello
ce051b8da5
debian: only do libsmbios on supported architectures
2017-11-09 18:53:46 -06:00
Mario Limonciello
3744e614a9
debian: debci: remove unnecessary dbus start command
...
Shouldn't be needed as depending on dbus-x11 depends on dbus
which should get the daemon up and running.
2017-11-09 16:36:28 -06:00
Richard Hughes
7bcba92f75
trivial: post release version bump
2017-11-09 15:23:12 +00:00
Richard Hughes
a72b3581fa
Release fwupd 1.0.1
2017-11-09 15:19:58 +00:00
Richard Hughes
37906f6aae
trivial: Fix NULL/FALSE confusion in the dfu plugin
2017-11-09 14:32:25 +00:00
Richard Hughes
78c8411253
Use the correct remote-specified username and passord when using fwupdmgr
...
Spotted by clang, many thanks.
2017-11-09 12:17:24 +00:00
Richard Hughes
2b9b9f359b
trivial: Fix a false-positive noticed by clang
2017-11-09 12:16:53 +00:00
Richard Hughes
69fcb73a74
dfu: Fix a trivial unused variable spotted by clang
2017-11-09 12:16:12 +00:00
Richard Hughes
a14d771476
dell: Fix a trivial warning spotted by clang
2017-11-09 12:15:55 +00:00
Richard Hughes
8175f6d136
libfwupd: Remove a pointless call to fwupd_remote_build_uri()
2017-11-09 12:15:30 +00:00
Richard Hughes
1cf88d6775
Detect if a plugin incorrectly unrefs the FuDevice
...
Watch the FuDevice in the FuDeviceItem with a weak reference and try to recover
without crashing the daemon if the plugin does the wrong thing.
2017-11-08 11:02:38 +00:00
Richard Hughes
ff372acb1d
ebitdo: Wait for the device to come back after performing update
...
This means we can verify the firmware version that was flashed, and makes the
code perform in the same way as the DFU and ColorHug plugins.
2017-11-08 11:02:38 +00:00
Richard Hughes
da8f476aa2
ebitdo: Fix a error prefix string
2017-11-08 11:02:38 +00:00
Richard Hughes
876e5e0c35
ebitdo: Fix a double-unref when updating the device
...
This can cause the daemon to emit a critical warning...
2017-11-08 11:02:38 +00:00
Richard Hughes
06a4fe4d9a
trivial: Add a hardware tests for two 8Bitdo devices
...
This only installs one version on to the hardware as a manual step is required.
2017-11-08 11:02:38 +00:00
Mario Limonciello
4c6667a46e
contrib/debian: dynamically generate control file
...
All the information necessary to generate a debian control file
is now in the XML file. Use it rather than hardcoding in multiple
places.
2017-11-07 16:39:28 -06:00
Mario Limonciello
d607817af4
contrib: Move dependencies into XML file
...
Monster CSV file is a little wild. This is more readable and
will make adding new distros and dependencies easier later.
2017-11-07 16:39:28 -06:00
Richard Hughes
82a025c865
trivial: Add a hardware test for the ColorHug device
2017-11-07 20:09:41 +00:00
Mario Limonciello
7f3bfc9d99
dell: catch invalid dock component requests
...
Test if g_strrstr returns NULL, as this means the string was
modified and other requests predicated on this will fail miserably.
2017-11-07 09:46:36 -06:00
Mario Limonciello
3164784d9e
dell: fix crashes when enumerating with dock connected but UEFI capsule off
...
Crashes will happen when UEFI capsule is turned off due to fwupdate
trying to do a SMI request that invalidates the buffer used by fwupd.
This is due to both fwupdate and fwupd using libsmbios in the same process.
Fixes: https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1726367
2017-11-07 09:46:36 -06:00
Richard Hughes
d25e2d543a
trivial: Add some self tests that use the Atmel Xplained boards in DFU mode
...
This does mean the tests have to be run as root to work, but they are just
skipped if run as a user.
2017-11-07 12:40:25 +00:00
Richard Hughes
21852821c5
dfu: Add ChipID quirks for various XMEGA parts
...
This also adds an *almost* throw-away python script to import the chip-ids from
the default conf file from the avrdude project. I've imported it here in case we
have to start caring about different page sizes or application offsets.
2017-11-07 12:40:25 +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
ac9fa21eda
dfu: Use a GError chain to properly report parsing failures
2017-11-07 12:40:25 +00:00
Richard Hughes
bdb6d7027a
dfu: Allow setting a specific DFU version for hardware
...
Ignoring the warning is not good enough when we're setting policy based on the
specific version. Use the new quirk functionality to do this easily, which
also allows us to remove one more thing in the quirk mega-bitfield.
2017-11-07 12:40:25 +00:00
Richard Hughes
387017c331
trivial: Don't show (null) in the UI when the DFU status is unknown
2017-11-07 12:40:25 +00:00
Richard Hughes
a1c09e1b16
dfu: Fix a potential divide by zero issue
...
If page_sz == 0, which is supported, then we try to take the modulus of it
which is undefined behaviour and can cause a division by zero crash.
Found using Coverity.
2017-11-07 09:41:07 +00:00
Richard Hughes
8a0ec158bd
dfu: Return failure when getting device status fails
2017-11-06 20:10:26 +00:00
Paul Menzel
8ab2784a1c
.github: Add note how to find version before fwupd 0.9.6
...
Fixes: https://github.com/hughsie/fwupd/issues/300
2017-11-06 14:17:11 +00:00
Richard Hughes
79d08a327b
trivial: Use a #define value for signature reads
2017-11-06 12:56:38 +00:00
Paul Menzel
5b1c5084e7
README: Use more secure HTTPS URL for fwupd Web site
...
```
$ curl -I http://www.fwupd.org
HTTP/1.1 301 Moved Permanently
Date: Mon, 06 Nov 2017 12:25:17 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5
Location: https://fwupd.org/
Content-Type: text/html; charset=iso-8859-1
```
Using the target of the redirect, this also saves one redirect.
2017-11-06 12:29:45 +00:00
Paul Menzel
d1adf460e2
.github: Correct typo in command in issue template
...
Use `fwupdmgr` over `fwupdgmr`.
2017-11-06 12:18:42 +00:00
Richard Hughes
2ec78d68db
Add support for HWID requirements
...
In the latest version of the LVFS you can restrict the firmware to a specific
machine type, for instance a specific baseboard vendor. This is the same as
done in Microsoft Update using the CHID mechanism.
This commit adds support for the <hardware> requires type, although it needs to
be built against appstream-glib 0.7.4 to be supported and/or tested.
2017-11-03 23:42:57 +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
adeefcd4e0
dfu: Use FuQuirk to encode the Jabra magic packet contents
...
This allows us to remove the Jabra-specific quirk entry in the device bitfield,
and more importantly allows us to support some more Jabra devices in the future
without code changes.
2017-11-02 19:08:51 +00:00
Richard Hughes
6a32b92ef8
dfu: Move some code to allow re-use
2017-11-02 19:08:51 +00:00