# odks/410-immortalwrt-actios architecture

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

- Interactive diagram: https://gitdiagram.com/odks/410-immortalwrt-actios
- Repository: https://github.com/odks/410-immortalwrt-actios

## Overview

This repository provides a GitHub Actions workflow for building customizable ImmortalWrt firmware for Qualcomm 410-series pocket Wi-Fi devices, plus device configurations, firmware overlays, and flashing resources. The main workflow is: a user selects a device and package additions, the build uses upstream source and repository customizations, and the resulting firmware is downloaded and installed on a device. The README documents these relationships; source excerpts are limited to the config-generation helper, so internal workflow wiring is not independently verified.

Main entry points: [`.github/workflows/Build_高通410 imm.yml`](https://github.com/odks/410-immortalwrt-actios/blob/main/.github/workflows/Build_%E9%AB%98%E9%80%9A410%20imm.yml) (Build workflow), [`files`](https://github.com/odks/410-immortalwrt-actios/tree/main/files) (Firmware overlay), [`config`](https://github.com/odks/410-immortalwrt-actios/tree/main/config) (Device configs), [`工具与脚本/gen_config.py`](https://github.com/odks/410-immortalwrt-actios/blob/main/%E5%B7%A5%E5%85%B7%E4%B8%8E%E8%84%9A%E6%9C%AC/gen_config.py) (Config generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_build["Firmware build"]
  node_workflow["Build workflow"]
  node_upstream["ImmortalWrt source"]
  node_firmware["Built firmware"]
end

subgraph group_customize["Build customization"]
  node_device_configs["Device configs"]
  node_config_generator["Config generator<br/>[gen_config.py]"]
  node_stage_one["Pre-build customization<br/>[diy-part1.sh]"]
  node_stage_two["Post-config customization<br/>[diy-part2.sh]"]
end

subgraph group_runtime["Firmware runtime"]
  node_overlay["Firmware overlay"]
  node_web_ui["Web interface<br/>[index.html]"]
  node_web_content["Web content data<br/>[content.json]"]
  node_card_switch["Card switching<br/>[cardswitch.sh]"]
  node_hardware_info["Hardware information"]
end

subgraph group_install["Device installation"]
  node_flash_bundle["One-click flashing"]
  node_flash_resources["Flash utilities"]
end

node_user(("Firmware builder"))
node_device(("Wi-Fi device"))

node_user -->|"starts build"| node_workflow
node_workflow -->|"pulls source"| node_upstream
node_workflow -->|"selects device"| node_device_configs
node_user -->|"enters packages"| node_workflow
node_workflow -->|"runs first"| node_stage_one
node_workflow -->|"runs second"| node_stage_two
node_workflow -->|"includes files"| node_overlay
node_workflow -->|"builds image"| node_firmware
node_config_generator -->|"writes config"| node_device_configs
node_overlay -->|"includes page"| node_web_ui
node_overlay -->|"includes data"| node_web_content
node_overlay -->|"includes script"| node_card_switch
node_firmware -->|"installed on"| node_device
node_flash_bundle -->|"flashes firmware"| node_device
node_flash_resources -->|"supports flashing"| node_device

click node_workflow "https://github.com/odks/410-immortalwrt-actios/blob/main/.github/workflows/Build_%E9%AB%98%E9%80%9A410%20imm.yml"
click node_device_configs "https://github.com/odks/410-immortalwrt-actios/tree/main/config"
click node_config_generator "https://github.com/odks/410-immortalwrt-actios/blob/main/%E5%B7%A5%E5%85%B7%E4%B8%8E%E8%84%9A%E6%9C%AC/gen_config.py"
click node_stage_one "https://github.com/odks/410-immortalwrt-actios/blob/main/diy-part1.sh"
click node_stage_two "https://github.com/odks/410-immortalwrt-actios/blob/main/diy-part2.sh"
click node_overlay "https://github.com/odks/410-immortalwrt-actios/tree/main/files"
click node_web_ui "https://github.com/odks/410-immortalwrt-actios/blob/main/files/www/index.html"
click node_web_content "https://github.com/odks/410-immortalwrt-actios/blob/main/files/www/content.json"
click node_card_switch "https://github.com/odks/410-immortalwrt-actios/blob/main/files/etc/cardswitch/cardswitch.sh"
click node_hardware_info "https://github.com/odks/410-immortalwrt-actios/blob/main/scripts/show_hardware_info.sh"
click node_flash_bundle "https://github.com/odks/410-immortalwrt-actios/tree/main/%E5%88%B7%E6%9C%BA%E8%84%9A%E6%9C%AC"
click node_flash_resources "https://github.com/odks/410-immortalwrt-actios/tree/main/%E5%B7%A5%E5%85%B7%E4%B8%8E%E8%84%9A%E6%9C%AC"

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_workflow,node_upstream,node_firmware toneBlue
class node_device_configs,node_config_generator,node_stage_one,node_stage_two toneAmber
class node_overlay,node_web_ui,node_web_content,node_card_switch,node_hardware_info toneMint
class node_flash_bundle,node_flash_resources toneRose
class node_user,node_device toneIndigo
```

## Components

### Firmware build

- [Build workflow](https://github.com/odks/410-immortalwrt-actios/blob/main/.github/workflows/Build_%E9%AB%98%E9%80%9A410%20imm.yml): `.github/workflows/Build_高通410 imm.yml`
- **ImmortalWrt source**
- **Built firmware**

### Build customization

- [Device configs](https://github.com/odks/410-immortalwrt-actios/tree/main/config): `config`
- [Config generator](https://github.com/odks/410-immortalwrt-actios/blob/main/%E5%B7%A5%E5%85%B7%E4%B8%8E%E8%84%9A%E6%9C%AC/gen_config.py): `工具与脚本/gen_config.py`
- [Pre-build customization](https://github.com/odks/410-immortalwrt-actios/blob/main/diy-part1.sh): `diy-part1.sh`
- [Post-config customization](https://github.com/odks/410-immortalwrt-actios/blob/main/diy-part2.sh): `diy-part2.sh`

### Firmware runtime

- [Firmware overlay](https://github.com/odks/410-immortalwrt-actios/tree/main/files): `files`
- [Web interface](https://github.com/odks/410-immortalwrt-actios/blob/main/files/www/index.html): `files/www/index.html`
- [Web content data](https://github.com/odks/410-immortalwrt-actios/blob/main/files/www/content.json): `files/www/content.json`
- [Card switching](https://github.com/odks/410-immortalwrt-actios/blob/main/files/etc/cardswitch/cardswitch.sh): `files/etc/cardswitch/cardswitch.sh`
- [Hardware information](https://github.com/odks/410-immortalwrt-actios/blob/main/scripts/show_hardware_info.sh): `scripts/show_hardware_info.sh`

### Device installation

- [One-click flashing](https://github.com/odks/410-immortalwrt-actios/tree/main/%E5%88%B7%E6%9C%BA%E8%84%9A%E6%9C%AC): `刷机脚本`
- [Flash utilities](https://github.com/odks/410-immortalwrt-actios/tree/main/%E5%B7%A5%E5%85%B7%E4%B8%8E%E8%84%9A%E6%9C%AC): `工具与脚本`

### Other components

- **Firmware builder**
- **Wi-Fi device**

## Connections

- Firmware builder → Build workflow: starts build (evidence: `README.md`)
- Build workflow → ImmortalWrt source: pulls source (evidence: `README.md`)
- Build workflow → Device configs: selects device (evidence: `README.md`)
- Firmware builder → Build workflow: enters packages (evidence: `README.md`)
- Build workflow → Pre-build customization: runs first (evidence: `README.md`)
- Build workflow → Post-config customization: runs second (evidence: `README.md`)
- Build workflow → Firmware overlay: includes files (evidence: `README.md`)
- Build workflow → Built firmware: builds image (evidence: `README.md`)
- Config generator → Device configs: writes config (evidence: `工具与脚本/gen_config.py`)
- Firmware overlay → Web interface: includes page (evidence: `README.md`)
- Firmware overlay → Web content data: includes data (evidence: `README.md`)
- Firmware overlay → Card switching: includes script (evidence: `README.md`)
- Built firmware → Wi-Fi device: installed on (evidence: `README.md`)
- One-click flashing → Wi-Fi device: flashes firmware (evidence: `README.md`)
- Flash utilities → Wi-Fi device: supports flashing (evidence: `README.md`)
