# haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11 architecture

> Architecture diagram of the GitHub repository haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11
- Repository: https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11

## Overview

This repository is a Debian 11 installation and troubleshooting guide for enabling GPU acceleration on the Orange Pi Zero 3W; it contains no implementation source. Its main workflow is to build the kernel module, load it only after system startup, install GPU userspace components, configure graphics discovery, and verify the result. The README also documents optional NPU support. Relationships below reflect documented installation and runtime steps, not inspected source code.

Main entry points: [`README.md`](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md) (pvrsrvkm module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_kernel["Kernel driver"]
  node_headers["Kernel headers<br/>[README.md]"]
  node_module["pvrsrvkm module<br/>[README.md]"]
  node_late_load["Late-load service<br/>[README.md]"]
end

subgraph group_userspace["GPU userspace"]
  node_firmware["GPU firmware<br/>[README.md]"]
  node_pvr_libs["PVR libraries<br/>[README.md]"]
  node_mesa["Mesa DRI<br/>[README.md]"]
  node_vulkan["Vulkan ICD<br/>[README.md]"]
  node_xorg["Xorg configuration<br/>[README.md]"]
end

subgraph group_validation["Validation"]
  node_gpu_checks["GPU checks<br/>[README.md]"]
  node_npu["Optional NPU<br/>[README.md]"]
end

node_admin(("Administrator"))
node_board["Orange Pi Debian"]

node_admin -->|"installs on"| node_board
node_admin -->|"installs"| node_headers
node_headers -->|"builds against"| node_module
node_admin -->|"builds"| node_module
node_module -->|"loaded by"| node_late_load
node_late_load -->|"loads after startup"| node_board
node_admin -->|"installs"| node_firmware
node_admin -->|"installs"| node_pvr_libs
node_admin -->|"installs"| node_mesa
node_admin -->|"installs"| node_vulkan
node_admin -->|"configures"| node_xorg
node_pvr_libs -->|"enables API checks"| node_gpu_checks
node_mesa -->|"checked with OpenGL"| node_gpu_checks
node_vulkan -->|"checked with Vulkan"| node_gpu_checks
node_admin -.->|"checks optionally"| node_npu

click node_headers "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_module "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_late_load "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_firmware "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_pvr_libs "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_mesa "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_vulkan "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_xorg "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_gpu_checks "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"
click node_npu "https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md"

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_headers,node_module,node_late_load toneBlue
class node_firmware,node_pvr_libs,node_mesa,node_vulkan,node_xorg toneAmber
class node_gpu_checks,node_npu toneMint
class node_admin,node_board toneIndigo
```

## Components

### Kernel driver

- [Kernel headers](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [pvrsrvkm module](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [Late-load service](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`

### GPU userspace

- [GPU firmware](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [PVR libraries](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [Mesa DRI](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [Vulkan ICD](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [Xorg configuration](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`

### Validation

- [GPU checks](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`
- [Optional NPU](https://github.com/haidegger22/orangepi-zero3w-gpu-npu-vpu-debian11/blob/main/README.md): `README.md`

### Other components

- **Administrator**
- **Orange Pi Debian**

## Connections

- Administrator → Orange Pi Debian: installs on (evidence: `README.md`)
- Administrator → Kernel headers: installs (evidence: `README.md`)
- Kernel headers → pvrsrvkm module: builds against (evidence: `README.md`)
- Administrator → pvrsrvkm module: builds (evidence: `README.md`)
- pvrsrvkm module → Late-load service: loaded by (evidence: `README.md`)
- Late-load service → Orange Pi Debian: loads after startup (evidence: `README.md`)
- Administrator → GPU firmware: installs (evidence: `README.md`)
- Administrator → PVR libraries: installs (evidence: `README.md`)
- Administrator → Mesa DRI: installs (evidence: `README.md`)
- Administrator → Vulkan ICD: installs (evidence: `README.md`)
- Administrator → Xorg configuration: configures (evidence: `README.md`)
- PVR libraries → GPU checks: enables API checks (evidence: `README.md`)
- Mesa DRI → GPU checks: checked with OpenGL (evidence: `README.md`)
- Vulkan ICD → GPU checks: checked with Vulkan (evidence: `README.md`)
- Administrator → Optional NPU: checks optionally (evidence: `README.md`)
