fwupd/plugins/bcm57xx
Richard Hughes 40cd18fa97 Allow using a per-device global percentage completion
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.
2021-09-13 14:28:15 +01:00
..
bcm57xx.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00
fu-bcm57xx-common.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-common.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-bcm57xx-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-dict-image.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-dict-image.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-firmware.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-firmware.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-recovery-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-bcm57xx-recovery-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-stage1-image.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-stage1-image.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-stage2-image.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-bcm57xx-stage2-image.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-bcm57xx.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-self-test.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
meson.build trivial: Fix up the self test report for the bcm57xx binary 2021-03-13 16:16:27 +00:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00

BCM57xx

Introduction

This plugin updates BCM57xx wired network adaptors from Broadcom using a reverse-engineered flashing protocol. It is designed to be used with the clean-room reimplementation of the BCM5719 firmware found here: https://github.com/meklort/bcm5719-fw

Protocol

BCM57xx devices support a custom com.broadcom.bcm57xx protocol which is implemented as ioctls like ethtool does.

GUID Generation

These devices use the standard PCI instance IDs, for example:

  • PCI\VEN_14E4&DEV_1657
  • PCI\VEN_14E4&DEV_1657&SUBSYS_17AA222E

Update Behavior

The device usually presents in runtime mode, and the firmware is written to the device without disconnecting the working kernel driver. Once complete the APE is reset which may cause a brief link reconnection.

On flash failure the device is nonfunctional, but is recoverable using direct BAR writes, which is typically much slower than updating the device using the kernel driver and the ethtool API.

Vendor ID Security

The vendor ID is set from the PCI vendor, in this instance set to PCI:0x14E4

External Interface Access

This plugin requires the SIOCETHTOOL ioctl interface.