How oosexgang/hakios-sm7325 works
This repository is a HakiOS device port for the POCO X5 Pro (redwood), with a shared SoC-family layer. Its main workflows are supplying device/SoC configuration and boot assets, and pulling vendor firmware from an attached Android phone for use outside the repository. It also provides read-only modem discovery and an offline modem-firmware validation tool. The README documents broader kernel-driver and SoC-argument workflows, but their implementations are not present in this tree; those are not represented as code nodes.
Main entry points: modem_firmware.py Modem firmware validation · uefi Redwood UEFI port · DeviceBuild.py Platform build settings · pull-firmware.sh Firmware extraction
Components 17
Device configuration
- Device settings
device.conf - Device profiles
configs - SoC configuration
soc - SoC arguments
soc.args
Boot platform
- Redwood UEFI port
uefi - Platform build settings
uefi/files/Platforms/Xiaomi/redwoodPkg/DeviceBuild.py - Memory map
uefi/files/Platforms/Xiaomi/redwoodPkg/Library/MemoryMapLib/MemoryMapLib.c - Configuration map
uefi/files/Platforms/Xiaomi/redwoodPkg/Library/ConfigurationMapLib/ConfigurationMapLib.c - Prebuilt boot assets
prebuilt - Boot image creator
prebuilt/mkbootimg.py
Firmware
- Firmware extraction
pull-firmware.sh - Pulled vendor firmware
Modem discovery
- Device tree blob
prebuilt/device-tree.dtb - Cellular inventory
tools/cellular_probe.py - Modem firmware validation
tools/modem_firmware.py
Other components
- Device maintainer
- Android phone
Connections 19
- Device maintainer → Device settings: configures
README.md - Device maintainer → Device profiles: configures
README.md - Device maintainer → SoC configuration: configures
README.md - Device maintainer → SoC arguments: maintains example
README.md - Device maintainer → Firmware extraction: runs
README.md - Firmware extraction → Android phone: pulls from
README.md - Firmware extraction → Pulled vendor firmware: extracts
README.md - Device maintainer → Redwood UEFI port: ports
README.md - Redwood UEFI port → Platform build settings: includes platform
- Redwood UEFI port → Prebuilt boot assets: provides port and images
- Platform build settings → Memory map: uses map
- Platform build settings → Configuration map: uses map
- Device maintainer → Boot image creator: creates images
- Cellular inventory → Device tree blob: reads by default
tools/cellular_probe.py - Device maintainer → Cellular inventory: runs
tools/cellular_probe.py - Device maintainer → Modem firmware validation: runs
tools/modem_firmware.py - Modem firmware validation → Device tree blob: reads
tools/modem_firmware.py - Modem firmware validation → Pulled vendor firmware: checks
- Modem firmware validation → Cellular inventory: imports parser
tools/modem_firmware.py