Add Gitea OTA firmware update, dual-slot partition layout, and Gitea Actions release workflow

This commit is contained in:
2026-09-12 10:49:39 +02:00
parent 8ac465229c
commit 1d954287a2
82 changed files with 7611 additions and 395 deletions

View File

@@ -1,10 +1,14 @@
# Name, Type, SubType, Offset, Size
# 4MB ESP32 flash layout:
# nvs 24KB 0x9000 - NVS settings (required by esp_wifi / http / storage)
# phy_init 4KB 0xF000 - PHY init data (optional reserved)
# factory 2MB app - firmware
# storage ~1.9MB littlefs - card database (/spiffs)
nvs, data, nvs, 0x9000, 0x6000
phy_init, data, phy, 0xf000, 0x1000
factory, app, factory, 0x10000, 0x200000
storage, data, littlefs, 0x210000, 0x1F0000
# 4MB ESP32 dual-OTA layout:
# nvs 16KB 0x9000 - NVS settings
# otadata 8KB 0xD000 - OTA selection & rollback data
# phy_init 4KB 0xF000 - PHY calibration data
# ota_0 1.56MB 0x10000 - App slot 0
# ota_1 1.56MB 0x1A0000 - App slot 1
# storage 832KB 0x330000 - LittleFS database (/spiffs)
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
ota_0, app, ota_0, 0x10000, 0x190000
ota_1, app, ota_1, 0x1a0000, 0x190000
storage, data, littlefs, 0x330000, 0xd0000
1 # Name, Type, SubType, Offset, Size
2 # 4MB ESP32 flash layout: # 4MB ESP32 dual-OTA layout:
3 # nvs 24KB 0x9000 - NVS settings (required by esp_wifi / http / storage) # nvs 16KB 0x9000 - NVS settings
4 # phy_init 4KB 0xF000 - PHY init data (optional reserved) # otadata 8KB 0xD000 - OTA selection & rollback data
5 # factory 2MB app - firmware # phy_init 4KB 0xF000 - PHY calibration data
6 # storage ~1.9MB littlefs - card database (/spiffs) # ota_0 1.56MB 0x10000 - App slot 0
7 nvs, data, nvs, 0x9000, 0x6000 # ota_1 1.56MB 0x1A0000 - App slot 1
8 phy_init, data, phy, 0xf000, 0x1000 # storage 832KB 0x330000 - LittleFS database (/spiffs)
9 factory, app, factory, 0x10000, 0x200000 nvs, data, nvs, 0x9000, 0x4000
10 storage, data, littlefs, 0x210000, 0x1F0000 otadata, data, ota, 0xd000, 0x2000
11 phy_init, data, phy, 0xf000, 0x1000
12 ota_0, app, ota_0, 0x10000, 0x190000
13 ota_1, app, ota_1, 0x1a0000, 0x190000
14 storage, data, littlefs, 0x330000, 0xd0000