# digi-embedded/meta-digi architecture

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

- Interactive diagram: https://gitdiagram.com/digi-embedded/meta-digi
- Repository: https://github.com/digi-embedded/meta-digi

## Overview

Digi Embedded Yocto (DEY) is a Yocto-based embedded Linux environment for Digi ConnectCore boards. Its principal workflow is selecting a supported target, combining the relevant platform and BSP configuration with the DEY layers, and producing a board-oriented software environment. The tree and README establish the layer and platform scope; sampled source also shows boot-count utilities, hardware examples, recovery utilities, and STM32MP camera APIs. Most recipe-to-image wiring is unsampled, so inferred relationships are dashed rather than presented as verified calls.

Main entry points: [`meta-digi-arm/conf/machine`](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/conf/machine) (Machine Configuration), [`meta-digi-dey/conf`](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-dey/conf) (Layer Configuration), [`meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c`](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c) (Boot Count Utility), [`meta-digi-arm/recipes-bsp`](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/recipes-bsp) (ARM BSP Recipes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform Configuration"]
  node_machine_config["Machine Configuration"]
  node_layer_config["Layer Configuration"]
end

subgraph group_bsp["Board Support"]
  node_arm_bsp["ARM BSP Recipes"]
  node_kernel["Kernel Recipes"]
  node_firmware["Firmware Recipes"]
end

subgraph group_runtime["Runtime Capabilities"]
  node_bootcount["Boot Count Utility<br/>[bootcount.c]"]
  node_bootcount_storage["Boot Count Storage<br/>[bootcount_nvmem.c]"]
  node_recovery["Recovery Utilities<br/>[recovery.c]"]
  node_camera_awb["Auto White Balance API<br/>[evision-api-awb.h]"]
  node_camera_ae["Auto Exposure API"]
end

subgraph group_apps["Examples and Containers"]
  node_adc_sample["ADC Comparator Sample<br/>[adc_cmp_sample.c]"]
  node_bluetooth_sample["Bluetooth Test Tool<br/>[btconfig.c]"]
  node_opengles_sample["OpenGL ES Samples<br/>[es20_example.c]"]
  node_containers["Container Examples"]
end

node_engineer(("Embedded Engineer"))
node_target["Supported Target"]

node_engineer -.->|"selects"| node_target
node_target -.->|"configures"| node_machine_config
node_machine_config -.->|"selects recipes"| node_arm_bsp
node_machine_config -.->|"selects kernel"| node_kernel
node_machine_config -.->|"selects firmware"| node_firmware
node_layer_config -.->|"includes layer"| node_arm_bsp
node_layer_config -.->|"includes layer"| node_kernel
node_engineer -.->|"uses environment"| node_layer_config
node_bootcount -->|"dispatches storage"| node_bootcount_storage
node_bootcount -->|"detects platform"| node_target
node_engineer -.->|"uses utilities"| node_recovery
node_engineer -.->|"uses API"| node_camera_awb
node_engineer -.->|"uses API"| node_camera_ae
node_engineer -.->|"runs sample"| node_adc_sample
node_engineer -.->|"runs tool"| node_bluetooth_sample
node_engineer -.->|"runs samples"| node_opengles_sample
node_engineer -.->|"uses examples"| node_containers

click node_machine_config "https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/conf/machine"
click node_layer_config "https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-dey/conf"
click node_arm_bsp "https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/recipes-bsp"
click node_firmware "https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/recipes-bsp"
click node_bootcount "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c"
click node_bootcount_storage "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount_nvmem.c"
click node_recovery "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-core/recovery/recovery-utils/recovery-utils/lib/recovery.c"
click node_camera_awb "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-awb.h"
click node_camera_ae "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-st-ae.h"
click node_adc_sample "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/files/adc_cmp_sample/adc_cmp_sample.c"
click node_bluetooth_sample "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/files/btconfig/btconfig.c"
click node_opengles_sample "https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/es20_example.c"
click node_containers "https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-containers/containers"

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_machine_config,node_layer_config toneBlue
class node_arm_bsp,node_kernel,node_firmware toneAmber
class node_bootcount,node_bootcount_storage,node_recovery,node_camera_awb,node_camera_ae toneMint
class node_adc_sample,node_bluetooth_sample,node_opengles_sample,node_containers toneRose
class node_engineer,node_target toneIndigo
```

## Components

### Platform Configuration

- [Machine Configuration](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/conf/machine): `meta-digi-arm/conf/machine`
- [Layer Configuration](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-dey/conf): `meta-digi-dey/conf`

### Board Support

- [ARM BSP Recipes](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/recipes-bsp): `meta-digi-arm/recipes-bsp`
- **Kernel Recipes**
- [Firmware Recipes](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-arm/recipes-bsp): `meta-digi-arm/recipes-bsp`

### Runtime Capabilities

- [Boot Count Utility](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c): `meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c`
- [Boot Count Storage](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount_nvmem.c): `meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount_nvmem.c`
- [Recovery Utilities](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-core/recovery/recovery-utils/recovery-utils/lib/recovery.c): `meta-digi-dey/recipes-core/recovery/recovery-utils/recovery-utils/lib/recovery.c`
- [Auto White Balance API](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-awb.h): `meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-awb.h`
- [Auto Exposure API](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-st-ae.h): `meta-digi-arm/dynamic-layers/stm-st-stm32mp/recipes-multimedia/evision/files/evision-libs/evision-api-st-ae.h`

### Examples and Containers

- [ADC Comparator Sample](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/files/adc_cmp_sample/adc_cmp_sample.c): `meta-digi-dey/recipes-digi/dey-examples/files/adc_cmp_sample/adc_cmp_sample.c`
- [Bluetooth Test Tool](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/files/btconfig/btconfig.c): `meta-digi-dey/recipes-digi/dey-examples/files/btconfig/btconfig.c`
- [OpenGL ES Samples](https://github.com/digi-embedded/meta-digi/blob/scarthgap/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/es20_example.c): `meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/es20_example.c`
- [Container Examples](https://github.com/digi-embedded/meta-digi/tree/scarthgap/meta-digi-containers/containers): `meta-digi-containers/containers`

### Other components

- **Embedded Engineer**
- **Supported Target**

## Connections

- Embedded Engineer → Supported Target: selects
- Supported Target → Machine Configuration: configures
- Machine Configuration → ARM BSP Recipes: selects recipes
- Machine Configuration → Kernel Recipes: selects kernel
- Machine Configuration → Firmware Recipes: selects firmware
- Layer Configuration → ARM BSP Recipes: includes layer
- Layer Configuration → Kernel Recipes: includes layer
- Embedded Engineer → Layer Configuration: uses environment
- Boot Count Utility → Boot Count Storage: dispatches storage (evidence: `meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c`)
- Boot Count Utility → Supported Target: detects platform (evidence: `meta-digi-dey/recipes-digi/bootcount/bootcount/bootcount-bin/bootcount.c`)
- Embedded Engineer → Recovery Utilities: uses utilities
- Embedded Engineer → Auto White Balance API: uses API
- Embedded Engineer → Auto Exposure API: uses API
- Embedded Engineer → ADC Comparator Sample: runs sample
- Embedded Engineer → Bluetooth Test Tool: runs tool
- Embedded Engineer → OpenGL ES Samples: runs samples
- Embedded Engineer → Container Examples: uses examples
