commit | 82d01249fd2e529404a6e21f29062d8029cf2d47 | [log] [tgz] |
---|---|---|
author | Benson Leung <bleung@chromium.org> | Mon Jun 22 14:38:07 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 14 18:15:47 2020 +0000 |
tree | 1540977027f2ff4f39bfa41864ed8d9fb2ba6d8f | |
parent | 9134212370985851d12f8d511771f1a5b899ede5 [diff] |
UPSTREAM: cros-ec: Set protocol for cros-ec-usb-device Specify "com.google.usb.crosec" to indicate support for Google's USB endpoint updater protocol. (cherry picked from commit 852c6685ff59d29ca292a426c96ad0e75955d18f) BUG=b:159626564 TEST=build and deploy to volteer. With whole series, check that the following deploys a firmware to servo-micro: fwupdtool --plugin-whitelist cros_ec install-blob servo_micro_v2.4.17-df61092c3.bin --verbose Change-Id: I7d1b9e6010da8495fb32149c400e8e341d94ba44 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/fwupd/+/2291830 Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Daniel Campello <campello@chromium.org> Commit-Queue: Benson Leung <bleung@google.com> Tested-by: Benson Leung <bleung@google.com> Auto-Submit: Benson Leung <bleung@chromium.org>
This project aims to make updating firmware on Linux automatic, safe and reliable.
Additional information is available at the website: https://fwupd.org/
The most up to date compilation instructions are available in the Wiki.
This project is configured by default to download firmware from the Linux Vendor Firmware Service (LVFS).
This service is available to all OEMs and firmware creators who would like to make their firmware available to Linux users.
You can find more information about the technical details of creating a firmware capsule in the hardware vendors section of the fwupd website.
If you have a device with firmware supported by fwupd, this is how you will check for updates and apply them using fwupd's command line tools.
# fwupdmgr get-devices
This will display all devices detected by fwupd.
# fwupdmgr refresh
This will download the latest metadata from LVFS.
# fwupdmgr get-updates
If updates are available for any devices on the system, they'll be displayed.
# fwupdmgr update
This will download and apply all updates for your system.
You can find more information about the update workflow in the end users section of the fwupd website.
fwupd will encourage users to report both successful and failed updates back to LVFS. This is an optional feature, but encouraged as it provides valuable feedback to LVFS administrators and OEM developers regarding firmware update process efficacy.
The privacy policy regarding this data can be viewed on the fwupd website.
To report the status of an update run:
# fwupdmgr report-history
To clear the local history of updates:
# fwupdmgr clear-history
Only updates that were distributed from the LVFS will be reported to the LVFS.
The flow of updates can be controlled in the enterprise using the "approved updates" feature. This allows the domain administrator to filter the possible updates from a central server (e.g. the LVFS, or a mirror) to only firmware that have been tested specifically in your organisation.
The list of approved updates can be enabled by adding ApprovalRequired=true
to the remote configuration file, e.g. lvfs.conf
. Once enabled, the list of approved updates can be set in daemon.conf
using a comma delimited list.
For example:
ApprovedFirmware=foo,bar
Where foo,bar
refers to the container checksums that would correspond to two updates in the metadata file.
Additionally, the list of approved firmware can be supplemented using fwupdmgr set-approved-firmware baz
or using the D-Bus interface.
GNOME Software is the graphical frontend available. When compiled with firmware support, it will check for updates periodically and automatically download firmware in the background. After the firmware has been downloaded a popup will be displayed in GNOME Software to perform the update.
KDE Discover is the software centre, generally bundled with KDE Plasma. With the release of KDE Plasma 5.14, a new fwupd backend has been implemented in KDE Discover for firmware updates. These firmware updates are shown with other system updates.
Wyse Management Suite A software suite available on Dell IoT gateways and Wyse thin clients with built-in fwupd support. The remote administration interface can be used to download and deploy firmware updates.
There are several automated fuzzing tests in fwupd. These take some time to run:
CC=afl-gcc meson --default-library=static ../ AFL_HARDEN=1 ninja ninja fuzz-synaptics-rmi ninja fuzz-firmware ninja fuzz-smbios