fwupd/plugins/ata
Richard Hughes 1981c63d58 Remove FuFirmwareImage and just use FuFirmware instead
This allows us to 'nest' firmware formats, and removes a ton of duplication.

The aim here is to deprecate FuFirmwareImage -- it's almost always acting
as a 'child' FuFirmware instance, and even copies most of the vfuncs to allow
custom types. If I'm struggling to work out what should be a FuFirmware and
what should be a FuFirmwareImage then a plugin author has no hope.

For simple payloads we were adding bytes into an image and then the image into
a firmware. This gets really messy when most plugins are treating the FuFirmware
*as* the binary firmware file.

The GBytes saved in the FuFirmware would be considered the payload with the
aim of not using FuFirmwareImage in the single-image case.
2021-03-09 21:14:12 +00:00
..
ata.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00
fu-ata-device.c Remove FuFirmwareImage and just use FuFirmware instead 2021-03-09 21:14:12 +00:00
fu-ata-device.h Allow specifying more than one VendorID for a device 2021-01-04 22:30:20 +00:00
fu-plugin-ata.c Use FWUPD_COMPILATION define to indicate an in tree build 2021-01-22 14:01:25 -06:00
fu-self-test.c Allow specifying more than one VendorID for a device 2021-01-04 22:30:20 +00:00
meson.build Move the plugin build logic to the plugins themselves 2021-02-18 14:46:20 +00:00
README.md Add a new internal flag to opt-in to GUID matching 2021-02-25 15:47:25 +00:00

ATA

Introduction

This plugin allows updating ATA/ATAPI storage hardware. Devices are enumerated from the block devices and if ID_ATA_DOWNLOAD_MICROCODE is supported they can be updated with appropriate firmware file.

Updating ATA devices is more dangerous than other hardware such as DFU or NVMe and should be tested carefully with the help of the drive vendor.

The device GUID is read from the trimmed model string.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an unspecified binary file format.

This plugin supports the following protocol ID:

  • org.t13.ata

GUID Generation

These device use the Microsoft DeviceInstanceId values, e.g.

  • IDE\VENDOR[40]REVISION[8]
  • IDE\0VENDOR[40]

See https://docs.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-for-ide-devices for more details.

Update Behavior

The firmware is deployed when the device is in normal runtime mode, but it is only activated when the system is in the final shutdown stages. This is done to minimize the chance of data loss if the switch to the new firmware is not done correctly.

Vendor ID Security

No vendor ID is set as there is no vendor field in the IDENTIFY response.

Quirk use

This plugin uses the following plugin-specific quirks:

Quirk Description Minimum fwupd version
AtaTransferBlocks Blocks to transfer, or 0xffff for max 1.2.4
AtaTransferMode The transfer mode, 0x3, 0x7 or 0xe 1.2.4

External interface access

This plugin requires the SG_IO ioctl interface.