This daemon is for updating SPI flash chips commonly used for Host Bios.
This is an example EM Exposes record which can appear on dbus as
xyz.openbmc_project.Configuration.SPIFlash
{ "Name": "HostSPIFlash", "SPIControllerIndex": "1", "SPIDeviceIndex": "0", "MuxOutputs": [ { "Name": "BMC_SPI_SEL", "Polarity": "High" } ], "VendorIANA": "6653", "Layout": "Flat", "FirmwareInfo": { "VendorIANA": "6653", "CompatibleHardware": "com.tyan.Hardware.S8030.SPI.Host" }, "Type": "SPIFlash" }
Sometimes another tool is needed if one does not have a flat image. Use "Layout" property to give that hint. Possible values:
We can directly write to the mtd device or use flashrom to do the writing.