Name Date Size #Lines LOC

..--

README.mdH A D12-Jun-20251,003 4534

bios_software_manager.cppH A D04-Jun-20253.4 KiB11988

bios_software_manager.hppH A D26-Nov-2024607 2416

main.cppH A D26-Nov-2024772 4130

meson.buildH A D19-Apr-2025810 3428

spi_device.cppH A D05-May-202514.6 KiB608463

spi_device.hppH A D05-May-20254.1 KiB13067

xyz.openbmc_project.Software.BIOS.serviceH A D29-Apr-2025452 1714

README.md

1# SPI Device Update Daemon
2
3This daemon is for updating SPI flash chips commonly used for Host Bios.
4
5## Configuration Example 1 (Tyan S8030)
6
7This is an example EM Exposes record which can appear on dbus as
8
9```text
10xyz.openbmc_project.Configuration.SPIFlash
11```
12
13```json
14{
15  "Name": "HostSPIFlash",
16  "SPIControllerIndex": "1",
17  "SPIDeviceIndex": "0",
18  "MuxOutputs": [
19    {
20      "Name": "BMC_SPI_SEL",
21      "Polarity": "High"
22    }
23  ],
24  "VendorIANA": "6653",
25  "Layout": "Flat",
26  "FirmwareInfo": {
27    "VendorIANA": "6653",
28    "CompatibleHardware": "com.tyan.Hardware.S8030.SPI.Host"
29  },
30  "Type": "SPIFlash"
31}
32```
33
34## Layout information
35
36Sometimes another tool is needed if one does not have a flat image. Use "Layout"
37property to give that hint. Possible values:
38
39- "Flat" : No tool, flat image. This can be used for example when we want to
40  write a flash image which was previously dumped.
41
42## Tool information
43
44We can directly write to the mtd device or use flashrom to do the writing.
45