fwupd/plugins/cros-ec
Richard Hughes faa7871b08 Remove duplicate ->probe() calls to speed up startup by 150ms
Now incorporate is fixed to copy across the properties we need in the
superclass, we don't need to do the subclass ->probe().

Note, we still need to do the subclassed ->probe() when using
FU_UDEV_DEVICE_FLAG_VENDOR_FROM_PARENT or when looking at properties
on the parent device.

This also removes the spurious 'already set GType to FuVliUsbhubDevice,
ignoring FuVliUsbhubDevice' messages when running the daemon.
2022-06-14 21:01:57 +01:00
..
data cros-ec: Initial skeleton 2020-05-29 06:55:40 +01:00
tests Move the fuzzing files into the plugin directories 2021-10-22 15:24:05 +01:00
cros-ec.quirk add new device Belkin docking station : VID050D/PID003F 2021-12-16 11:57:19 +00:00
fu-cros-ec-common.c trivial: Ignore the return value of g_strlcpy() when safe 2022-04-23 10:30:50 +01:00
fu-cros-ec-common.h Be smarter and include less header files per source file 2022-06-14 14:36:52 -05:00
fu-cros-ec-firmware.c cros-ec: Add progress completion when writing blocks 2022-01-07 07:24:08 +00:00
fu-cros-ec-firmware.h cros-ec: Add progress completion when writing blocks 2022-01-07 07:24:08 +00:00
fu-cros-ec-usb-device.c Remove duplicate ->probe() calls to speed up startup by 150ms 2022-06-14 21:01:57 +01:00
fu-cros-ec-usb-device.h trivial: Remove the class structs for types that use G_DECLARE_FINAL_TYPE 2022-05-21 12:19:50 +01:00
fu-plugin-cros-ec.c Speed up the daemon startup by ~2% by doing dlsym much less 2021-11-09 12:02:07 +00:00
meson.build Convert build system to use meson tristate features 2022-02-28 08:34:48 -06:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00

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.