How highcodeh/tentacleos works
TentacleOS is modular dual-target firmware for ESP32-P4 and ESP32-C5. On P4, startup tracks boot loops, initializes the kernel, and confirms pending OTA only after successful initialization; the repository also contains UI, app-runtime and scripting services, storage, radio/mesh applications, and C5 Wi-Fi/Bluetooth/ESP-NOW features. The README describes the component layers, while sampled source confirms only selected startup, storage, scripting, and UI behavior. Other feature branches are represented from the tree without inferred call flows.
Main entry points: main.c P4 startup · storage_impl.c Storage API · main.cpp HLE simulator · script_engine.c Script engine
Components 20
Startup and UI
- P4 startup
firmware_p4/main/main.c - Kernel manager
firmware_c5/components/Core/kernel.c - Device UI
firmware_p4/components/Applications/ui
Platform services
- OTA service
firmware_c5/components/Service/ota/ota_service.c - App runtime ABI
firmware_p4/components/Service/app_runtime/include/tos_api.h - Script engine
firmware_p4/components/Service/script_engine/script_engine.c - Storage API
firmware_p4/components/Service/storage_api/storage_impl.c - Storage VFS
firmware_c5/components/Service/storage_vfs - Asset storage
firmware_c5/components/Service/storage_assets/storage_assets.c - C5 SPI bridge
firmware_c5/components/Service/spi_bridge
P4 applications
- Sub-GHz tools
firmware_p4/components/Applications/SubGhz - RFID storage
firmware_p4/components/Applications/rfid/rfid_storage.c - MeshCore
firmware_p4/components/Applications/LoRa/meshcore - Meshtastic
firmware_p4/components/Applications/LoRa/meshtastic
C5 applications
- Wi-Fi tools
firmware_c5/components/Applications/wifi - Bluetooth tools
firmware_c5/components/Applications/bluetooth - ESP-NOW chat
firmware_c5/components/Applications/espnow_chat/espnow_chat.c
Host simulator
- HLE simulator
tools/hle/src/main.cpp
Other components
- Device user
- Linux developer
Connections 8
- Device user → P4 startup: boots device
- P4 startup → Kernel manager: initializes
firmware_p4/main/main.c - P4 startup → OTA service: checks update
firmware_p4/main/main.c - Storage API → Storage VFS: calls VFS
firmware_p4/components/Service/storage_api/storage_impl.c - Script engine → App runtime ABI: dispatches ABI
firmware_p4/components/Service/script_engine/script_engine.c - Sub-GHz tools → Storage API: uses storage
firmware_p4/components/Applications/SubGhz/subghz_storage.c - Linux developer → HLE simulator: runs simulator
README.md - HLE simulator → P4 startup: emulates firmware flow
README.md