Richard Hughes
00b87884c4
uefi: Do not pass required attrs to fwup_delete_variable()
...
This lets us refactor some code and remove some complexity.
2019-01-20 22:29:44 +00:00
Richard Hughes
aa6498866c
uefi: Delete the old Linux-Firmware-Updater boot entry
2019-01-20 22:29:44 +00:00
Richard Hughes
525433e4de
uefi: Use the GNU-EFI BOOL type
2019-01-20 22:29:44 +00:00
Aleksander Morgado
37b985c156
Check if plugin changed after the device attaches or detaches
...
If the device is rebooted into a different shape, the plugin managing
the device may also be different.
This would be the case for plugins that just subclass the update_detach()
method, and leave to other plugins the actual required update procedure.
2019-01-20 20:01:40 +00:00
Richard Hughes
818071d178
uefi: Refactor and simplify the EFI loader
2019-01-19 18:36:46 +00:00
Richard Hughes
f425d29a28
Show a console warning if loading an out-of-tree plugin
...
Fixes https://github.com/hughsie/fwupd/issues/950
2019-01-19 07:26:20 +00:00
Richard Hughes
4e30d25668
UEFI: Do the UX checksum calculation in fwupd
...
This makes the EFI binary much simpler.
2019-01-18 19:27:21 +00:00
Richard Hughes
09bf3b5246
trivial: Don't manually zero-fill efi_ux_capsule_header_t
2019-01-18 19:27:21 +00:00
Richard Hughes
4bdb513937
trivial: Make the capsule_image_size calculation more obvious
2019-01-18 19:27:21 +00:00
Richard Hughes
e554c1b501
trivial: Clarify our position on proprietary plugins
2019-01-18 12:21:46 -06:00
Richard Hughes
5dc757f6c1
wacom-usb: Add two more Intuos tablets
...
These do not need the runtime-version quirk like the others.
2019-01-18 16:11:53 +00:00
Richard Hughes
4a68fd60dc
nvme: Add the needs-shutdown quirk to Phison NVMe drives
...
Affected drives should have a prominent statement in the update description,
possibly even the first line so it shows up by default in the updates panel.
2019-01-17 16:35:34 +00:00
Richard Hughes
f803964e37
Add _NEEDS_SHUTDOWN flag for devices
...
Some devices require the system to be powered down and back up, rather than
just being "warm" rebooted.
2019-01-17 16:35:34 +00:00
Richard Hughes
b91efa6c38
trivial: Cast to FuDevice from FuUdevDevice
2019-01-17 16:35:34 +00:00
Richard Hughes
a958e1c32f
trivial: Fix a potential type-check warning when setting SUPPORTED
...
We can't use the superclassed FuDevice as this was created as a FwupdDevice.
2019-01-17 16:35:34 +00:00
Richard Hughes
72c18fd4e4
Use GCC __cleanup__ features in the EFI loader
...
This simplifies memory management.
2019-01-16 12:06:09 -06:00
Richard Hughes
fc90f3954e
nvme: Add flag to support manually aligning the firmware to the FWUG value
...
This is required for drives from Phison.
2019-01-16 13:14:50 +00:00
Richard Hughes
d5f0da15ab
nvme: Support FGUID to get the SKU GUID
2019-01-16 13:14:50 +00:00
Richard Hughes
a9d81cfb10
nvme: Support FWUG to get the write block size
2019-01-16 13:14:50 +00:00
Richard Hughes
1eaf71c91b
nvme: Add trivial comment to clarify address bitshifting
2019-01-16 13:14:50 +00:00
Richard Hughes
b6e9dacc9a
uefi: Do not check the BGRT status before uploading a UX capsule
...
Microsoft description about the Status is:
The Status field of the BGRT describes whether the image is currently
displayed on the screen. This is not applicable to the firmware update
display capsule.
Many thanks to Steven Chang for identifying this issue.
Fixes: https://github.com/hughsie/fwupd/issues/935
2019-01-16 13:08:48 +00:00
Richard Hughes
e58fa31887
dfu: Fix flashing various Jabra devices
...
Do not unset the quirks when closing the device, the _NO_DFU_RUNTIME quirk is
needed when re-opening the device during detach.
Fixes https://github.com/hughsie/fwupd/issues/927
2019-01-16 11:22:05 +00:00
Mario Limonciello
4c0df63db1
trivial: meson.build: Fix builds with -Ddaemon=false but no other changes
...
Without this fix build will fail like below:
```
$ meson build -Ddaemon=false
.
.
.
src/meson.build:21:4: ERROR: Unknown variable "colorhug_pkcs7_signature".
```
2019-01-15 16:24:38 -06:00
Mario Limonciello
ed021ab448
upower: Add support for checking battery percentage
...
On any devices that normally would require checking for AC also
check that at least one battery on the system has at least 30% to
perform an update.
Fixes : #925
2019-01-15 10:43:18 -06:00
Mario Limonciello
78efa4d2a6
trivial: thunderbolt: If unable to find inactive nvmem, don't mark updatable
...
This situation may happen in the future in systems where the TBT NVM is embedded
in a different location and only upgradable through system firmware.
2019-01-15 10:33:52 -06:00
Richard Hughes
fa8b7aab0a
nvme: Check the return code of the admin passthru ioctl
...
This meant we reported firmware update success when the image format or offset
was incorrect.
2019-01-15 16:26:30 +00:00
Mario Limonciello
18f3ab4e4d
trivial: dell-dock: Prohibit downgrades on board 4 or later below EC19
...
Some SKUs of board 4 and later have silicon that will not work with anything
but EC19 or later. So once flashed up to EC19 prohibit downgrades below that
to keep from bricking devices.
2019-01-15 08:52:12 +00:00
Mario Limonciello
46aaee8cec
fu-tool: Add support for an 'update' command to fwupdtool
...
This will perform updates with all currently present metadata.
It is "intended" for usage with local metadata repositories referring
to local files.
fwupdtool however does also support fetching a file from the web
and if the metadata refers to the file on the web it should also work
for that.
2019-01-11 12:59:00 +00:00
Mario Limonciello
baa5af4504
trivial: fu-engine: Clarify the message when no releases are available
2019-01-11 12:59:00 +00:00
Mario Limonciello
84e948a5b0
trivial: dell-dock: correct an assertion related to setting EC version
...
This is probably fall out from a previous code re-shuffling.
The EC version is already set elsewhere, and in many cases `self->ec_version`
is `NULL` at this time.
2019-01-10 13:44:48 -06:00
Mario Limonciello
8963d6b4b2
dell-dock: Set minimum board to board 4
...
This allows dropping all the quirks related to older boards.
2019-01-08 12:36:36 -06:00
Mario Limonciello
993fc1636c
dell-dock: Workaround a manufacturing bug for board level 4
...
Board 4 was manufactured with package version 89.16.01.00 and this
will prevent properly upgrading between releases. Reset this version
to 00.00.00.00 if detected on this board.
2019-01-08 12:36:36 -06:00
Mario Limonciello
b4e3698cfb
dell-dock: Wait longer for re-enumeration on TBT SKU
...
Emperically this seems to take 7-10 seconds longer on this SKU.
2019-01-08 12:36:36 -06:00
Richard Hughes
831eb7ef7e
superio: Support IT89xx devices
...
We can switch to LDN 0x11 and read the IO base address for the PM1 legacy port
rather than hardcoding data and command ports.
2019-01-08 12:53:57 +00:00
Richard Hughes
3548186462
trivial: Make fu_common_dump_raw() more useful for debugging
2019-01-08 12:53:57 +00:00
Mario Limonciello
46bb4e91a0
fu-main: remove incompatible locale error message
...
Downgrade this to debugging instead. (Fixes : #912 )
2019-01-08 11:03:50 +00:00
Mario Limonciello
c9f46290bc
Add a new plugin checklist ( Fixes : #899 )
2019-01-07 10:07:27 -06:00
Richard Hughes
847959d89c
trivial: post release version bump
2019-01-04 11:09:50 +00:00
Richard Hughes
36a5b8f7a2
Release fwupd 1.2.3
2019-01-04 11:08:49 +00:00
Richard Hughes
f692b71dc4
Correctly migrate the history database
...
I forgot to include the protocol column when migrating to v3, so create a v4
which ignores the sqlite error if the column already exists.
Fixes https://github.com/hughsie/fwupd/issues/909
2019-01-04 09:34:56 +00:00
Richard Hughes
305f1f2ab1
trivial: Add some debugging data to wacom-usb
2019-01-02 09:50:39 +00:00
Richard Hughes
fb0e10722a
trivial: post release version bump
2018-12-30 15:23:27 +00:00
Richard Hughes
c2b4b56bd3
Release fwupd 1.2.2
2018-12-30 15:19:01 +00:00
Richard Hughes
8be03791c7
Log an error if started with an incompatible locale
...
Test with `LC_ALL=de_DE.UTF-8 ./src/fwupd`
2018-12-26 06:28:30 -06:00
Richard Hughes
0e17e6d030
Fix building with -Wl,-z,defs
...
This allows us to find undefined references at compile time, not runtime.
2018-12-25 16:10:54 -06:00
Richard Hughes
363127e518
ebitdo: Fix the reported version number if the daemon locale is not C.UTF-8
...
Always use a dot as the delimiter of a semver rather than treating it as a
floating point number.
Related to https://github.com/hughsie/lvfs-website/issues/216
2018-12-25 16:09:45 -06:00
Miklós Márton
7f59a6f844
Add Dell TB18DC to the known devices list
2018-12-25 16:08:10 -06:00
Richard Hughes
319dbcba5c
trivial: Don't show 'Update Duration: 49710 days'
...
Use the correct 'value not found' constant for xb_node_get_attr_as_uint().
2018-12-18 17:59:09 +00:00
Richard Hughes
420ccd46fa
Allow replacing the last byte in the image when using 'dfu-tool replace-data'
...
Fixes https://github.com/hughsie/fwupd/issues/903
2018-12-18 08:35:24 +00:00
Richard Hughes
8d02612893
trivial: Fix an error code if a search string is unfound
2018-12-18 08:34:27 +00:00