# facebook/openbmc architecture

> Architecture diagram of the GitHub repository facebook/openbmc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/facebook/openbmc
- Repository: https://github.com/facebook/openbmc

## Overview

OpenBMC is a framework for building Linux-based BMC firmware across common, SoC-vendor, and board-specific layers. Its user-facing runtime includes management interfaces and platform tools that expose or operate hardware state. The README describes image assembly as the overall delivery workflow, but build machinery is omitted here; sampled source instead shows REST handlers translating requests into platform operations. Many listed subsystems were not sampled, so their connections are not inferred from directory names alone.

Main entry points: [`common/recipes-rest/rest-api/files`](https://github.com/facebook/openbmc/tree/helium/common/recipes-rest/rest-api/files) (REST API), [`meta-aspeed`](https://github.com/facebook/openbmc/tree/helium/meta-aspeed) (SoC drivers), [`meta-facebook`](https://github.com/facebook/openbmc/tree/helium/meta-facebook) (Board support), [`common/lfopenbmc/recipes-downstream/redfish-client/files/src`](https://github.com/facebook/openbmc/tree/helium/common/lfopenbmc/recipes-downstream/redfish-client/files/src) (Redfish client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Management Interfaces"]
  node_rest["REST API"]
  node_redfish["Redfish client"]
  node_mfg["Manufacturing CLI"]
end

subgraph group_services["BMC Services"]
  node_asd["ASD daemon"]
  node_fan["Fan utility<br/>[fan-util.cpp]"]
  node_fru["FRU service"]
  node_sensorclient["Sensor service client"]
  node_eventemulator["Event emulator<br/>[event-emulator.cpp]"]
end

subgraph group_platform["Platform Support"]
  node_soc["SoC drivers"]
  node_boards["Board support"]
  node_kernel["Linux kernel"]
  node_bootloader["U-Boot"]
end

subgraph group_firmware["Firmware Capabilities"]
  node_sensors["Sensor reporting"]
  node_power["Power control"]
  node_inventory["FRU inventory"]
  node_logs["System logs<br/>[main.cpp]"]
  node_image["BMC image"]
end

node_operator(("BMC operator"))

node_operator -->|"requests management"| node_rest
node_operator -->|"runs commands"| node_mfg
node_rest -.->|"uses client"| node_redfish
node_boards -->|"configures image"| node_image
node_soc -->|"supplies drivers"| node_image
node_kernel -->|"included in image"| node_image
node_bootloader -->|"included in image"| node_image
node_image -.->|"runs on BMC"| node_operator

click node_rest "https://github.com/facebook/openbmc/tree/helium/common/recipes-rest/rest-api/files"
click node_redfish "https://github.com/facebook/openbmc/tree/helium/common/lfopenbmc/recipes-downstream/redfish-client/files/src"
click node_mfg "https://github.com/facebook/openbmc/tree/helium/common/lfopenbmc/recipes-downstream/mfg-tool/files"
click node_asd "https://github.com/facebook/openbmc/tree/helium/common/recipes-core/asd/files/daemon"
click node_fan "https://github.com/facebook/openbmc/blob/helium/common/recipes-core/fan-util/files/fan-util.cpp"
click node_fru "https://github.com/facebook/openbmc/tree/helium/common/recipes-core/fru-svc/files"
click node_sensorclient "https://github.com/facebook/openbmc/blob/helium/common/recipes-lib/sensor-svc-client/files/sensor-svc-client.c"
click node_eventemulator "https://github.com/facebook/openbmc/blob/helium/common/lfopenbmc/recipes-downstream/event-emulator/files/event-emulator.cpp"
click node_soc "https://github.com/facebook/openbmc/tree/helium/meta-aspeed"
click node_boards "https://github.com/facebook/openbmc/tree/helium/meta-facebook"
click node_kernel "https://github.com/facebook/openbmc/tree/helium/meta-aspeed"
click node_bootloader "https://github.com/facebook/openbmc/tree/helium/meta-aspeed"
click node_sensors "https://github.com/facebook/openbmc/tree/helium/common/recipes-core"
click node_power "https://github.com/facebook/openbmc/tree/helium/common/recipes-core"
click node_inventory "https://github.com/facebook/openbmc/tree/helium/common/recipes-core/fru-svc/files"
click node_logs "https://github.com/facebook/openbmc/blob/helium/common/recipes-core/log-util-v2/files/log-util/main.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rest,node_redfish,node_mfg toneBlue
class node_asd,node_fan,node_fru,node_sensorclient,node_eventemulator toneAmber
class node_soc,node_boards,node_kernel,node_bootloader toneMint
class node_sensors,node_power,node_inventory,node_logs,node_image toneRose
class node_operator toneIndigo
```

## Components

### Management Interfaces

- [REST API](https://github.com/facebook/openbmc/tree/helium/common/recipes-rest/rest-api/files): `common/recipes-rest/rest-api/files`
- [Redfish client](https://github.com/facebook/openbmc/tree/helium/common/lfopenbmc/recipes-downstream/redfish-client/files/src): `common/lfopenbmc/recipes-downstream/redfish-client/files/src`
- [Manufacturing CLI](https://github.com/facebook/openbmc/tree/helium/common/lfopenbmc/recipes-downstream/mfg-tool/files): `common/lfopenbmc/recipes-downstream/mfg-tool/files`

### BMC Services

- [ASD daemon](https://github.com/facebook/openbmc/tree/helium/common/recipes-core/asd/files/daemon): `common/recipes-core/asd/files/daemon`
- [Fan utility](https://github.com/facebook/openbmc/blob/helium/common/recipes-core/fan-util/files/fan-util.cpp): `common/recipes-core/fan-util/files/fan-util.cpp`
- [FRU service](https://github.com/facebook/openbmc/tree/helium/common/recipes-core/fru-svc/files): `common/recipes-core/fru-svc/files`
- [Sensor service client](https://github.com/facebook/openbmc/blob/helium/common/recipes-lib/sensor-svc-client/files/sensor-svc-client.c): `common/recipes-lib/sensor-svc-client/files/sensor-svc-client.c`
- [Event emulator](https://github.com/facebook/openbmc/blob/helium/common/lfopenbmc/recipes-downstream/event-emulator/files/event-emulator.cpp): `common/lfopenbmc/recipes-downstream/event-emulator/files/event-emulator.cpp`

### Platform Support

- [SoC drivers](https://github.com/facebook/openbmc/tree/helium/meta-aspeed): `meta-aspeed`
- [Board support](https://github.com/facebook/openbmc/tree/helium/meta-facebook): `meta-facebook`
- [Linux kernel](https://github.com/facebook/openbmc/tree/helium/meta-aspeed): `meta-aspeed`
- [U-Boot](https://github.com/facebook/openbmc/tree/helium/meta-aspeed): `meta-aspeed`

### Firmware Capabilities

- [Sensor reporting](https://github.com/facebook/openbmc/tree/helium/common/recipes-core): `common/recipes-core`
- [Power control](https://github.com/facebook/openbmc/tree/helium/common/recipes-core): `common/recipes-core`
- [FRU inventory](https://github.com/facebook/openbmc/tree/helium/common/recipes-core/fru-svc/files): `common/recipes-core/fru-svc/files`
- [System logs](https://github.com/facebook/openbmc/blob/helium/common/recipes-core/log-util-v2/files/log-util/main.cpp): `common/recipes-core/log-util-v2/files/log-util/main.cpp`
- **BMC image**

### Other components

- **BMC operator**

## Connections

- BMC operator → REST API: requests management (evidence: `README.md`)
- BMC operator → Manufacturing CLI: runs commands (evidence: `README.md`)
- REST API → Redfish client: uses client
- Board support → BMC image: configures image (evidence: `README.md`)
- SoC drivers → BMC image: supplies drivers (evidence: `README.md`)
- Linux kernel → BMC image: included in image (evidence: `README.md`)
- U-Boot → BMC image: included in image (evidence: `README.md`)
- BMC image → BMC operator: runs on BMC
