![]() It's actually quite hard to build a front-end for fwupd at the moment as you're never sure when the progress bar is going to zip back to 0% and start all over again. Some plugins go 0..100% for write, others go 0..100% for erase, then again for write, then *again* for verify. By creating a helper object we can easily split up the progress of the specific task, e.g. write_firmware(). We can encode at the plugin level "the erase takes 50% of the time, the write takes 40% and the read takes 10%". This means we can have a progressbar which goes up just once at a consistent speed. |
||
---|---|---|
.. | ||
data | ||
cros-ec.quirk | ||
fu-cros-ec-common.c | ||
fu-cros-ec-common.h | ||
fu-cros-ec-firmware.c | ||
fu-cros-ec-firmware.h | ||
fu-cros-ec-usb-device.c | ||
fu-cros-ec-usb-device.h | ||
fu-plugin-cros-ec.c | ||
meson.build | ||
README.md |
Chrome OS EC
Introduction
This plugin provides support for the firmware updates for Chrome OS EC project based devices.
Initially, it supports the USB endpoint updater, but lays the groundwork for future updaters which use other update methods other than the USB endpoint.
This is based on the chromeos ec project's usb_updater2 application.
Information about the USB update protocol is available here.
Firmware Format
The daemon will decompress the cabinet archive and extract a firmware blob in the Google fmap file format.
This plugin supports the following protocol ID:
- com.google.usb.crosec
GUID Generation
These devices use the standard USB DeviceInstanceId values, e.g.
USB\VID_18D1&PID_501A
Update Behavior
The device usually presents in runtime mode, but on detach re-enumerates with the same USB PID in an unlocked mode. On attach the device again re-enumerates back to the runtime locked mode.
For this reason the REPLUG_MATCH_GUID
internal device flag is used so that
the bootloader and runtime modes are treated as the same device.
Vendor ID Security
The vendor ID is set from the USB vendor, which is set to various different values depending on the model and device mode. The list of USB VIDs used is:
USB:0x18D1
External Interface Access
This plugin requires read/write access to /dev/bus/usb
.