![]() In many plugins we've wanted to use ->prepare_firmware() to parse the firmware ahead of ->detach() and ->write_firmware() but this has the limitation that it can only return a single blob of data. For many devices, multiple binary blobs are required from one parsed image, for instance providing signatures, config and data blobs that have to be pushed to the device in different way. This also means we parse the firmware *before* we ask the user to detach. Break the internal FuDevice API to support these firmware types as they become more popular. This also allows us to move the Intel HEX and SREC parsing out of the dfu plugin as they are used by a few plugins now, and resolving symbols between plugins isn't exactly awesome. |
||
---|---|---|
.. | ||
data | ||
fu-plugin-unifying.c | ||
fu-unifying-bootloader-nordic.c | ||
fu-unifying-bootloader-nordic.h | ||
fu-unifying-bootloader-texas.c | ||
fu-unifying-bootloader-texas.h | ||
fu-unifying-bootloader.c | ||
fu-unifying-bootloader.h | ||
fu-unifying-common.c | ||
fu-unifying-common.h | ||
fu-unifying-hidpp-msg.c | ||
fu-unifying-hidpp-msg.h | ||
fu-unifying-hidpp.c | ||
fu-unifying-hidpp.h | ||
fu-unifying-peripheral.c | ||
fu-unifying-peripheral.h | ||
fu-unifying-runtime.c | ||
fu-unifying-runtime.h | ||
fu-unifying-self-test.c | ||
meson.build | ||
README.md | ||
unifying.quirk |
Unifying Support
Introduction
This plugin can flash the firmware on Logitech Unifying dongles, both the Nordic (U0007) device and the Texas Instruments (U0008) version.
This plugin will not work with the different "Nano" dongle (U0010) as it does not use the Unifying protocol.
Some bootloader protocol information was taken from the Mousejack[1] project, specifically logitech-usb-restore.py and unifying.py. Other documentation was supplied by Logitech.
Additional constants were taken from the Solaar[2] project.
Firmware Format
The daemon will decompress the cabinet archive and extract a firmware blob in a vendor-specific format that appears to be a subset of the Intel HEX format.
This plugin supports the following protocol IDs:
- com.logitech.unifying
- com.logitech.unifyingsigned
GUID Generation
These devices use the standard USB DeviceInstanceId values when in DFU mode:
USB\VID_046D&PID_AAAA&REV_0001
USB\VID_046D&PID_AAAA
USB\VID_046D
When in runtime mode, the HID raw DeviceInstanceId values are used:
HIDRAW\VEN_046D&DEV_C52B
HIDRAW\VEN_046D
Design Notes
When a dongle is detected in bootloader mode we detach the hidraw driver from the kernel and use raw control transfers. This ensures that we don't accidentally corrupt the uploading firmware. For application firmware we use hidraw which means the hardware keeps working while probing, and also allows us to detect paired devices.
[1] https://www.mousejack.com/ [2] https://pwr.github.io/Solaar/