New Tasmota32 safeboot and larger firmwares #15500
Replies: 3 comments 19 replies
-
|
For the record, when flashing with the layout above, you can find the following useful: Print the current partition layout:import partition_core var p=partition_core.Partition() print(p)Example: <instance: Partition([
<instance: Partition_info(1 (data),2 (nvs),0x00009000,0x00005000,'nvs',0x0)>
<instance: Partition_info(1 (data),0 (otadata),0x0000E000,0x00002000,'otadata',0x0)>
<instance: Partition_info(0 (app),0 (factory),0x00010000,0x000D0000,'factory',0x0)>
<instance: Partition_info(0 (app),16 (ota0),0x000E0000,0x002D0000,'app0',0x0)>
<instance: Partition_info(1 (data),130 (spiffs),0x003B0000,0x00050000,'spiffs',0x0)>
],
<instance: Partition_otadata(ota_active:0, ota_seq=[1,], ota_max=0)>
)>Change
|
Beta Was this translation helpful? Give feedback.
-
|
One additional thing. To try the new feature you have to activate a newer PlatformiO setup. Adding a new Tasmota32 env should be done too for easy use. Add to You can compile and flash (as every other variant) now |
Beta Was this translation helpful? Give feedback.
-
|
There is now a simple HTTP API to force switch to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We (Tasmota dev team) are exploring a new flash setup that would allow for larger firmwares and larger file-systems. Currently the OTA firmware uploads needs 2 partitions of equal sizes. Each upgrade is writing to the non-used partitions and actunforive partition is swapped at next restart. This is expensive on 4MB flash devices and sets the limit of usable firmware at ~1800Kb. For most usages it is ok, but for lvgl/openhasp it can be a significant limit.
The new layout should look like:
factorypartition of 832kB containing a minimaltasmota32-safebootpartition. This partition would be enabled each time you need to flash a new Tasmota32 firmware, but in itself if wouldn't need to be reflashed. Thissafebootincludes minimal support for MQTT and HTTP, including TLS support.app0OTA partitionThis new scheme has the following benefits:
safebootpartition is still usableThe downside is that we need to change the firmware upgrade mechanism to be two-steps: 1/ switch back to
safebootfirmware, 2/ flash the OTA firmware, 3/ rebootThis is a follow-up of #15493. There is currently partial support for
boards/esp32_4M_2APP.jsonwith the following setup:Beta Was this translation helpful? Give feedback.
All reactions