toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
469 stars 36 forks source link

Patch Firmware failure (ESP32-S3) #255

Open dimitrij2k opened 14 hours ago

dimitrij2k commented 14 hours ago

Toniebox ESP32-S3


Over Teddycloud Docker image... Read Firmware: ok (8192kb)

Patch Firmware (Web): WebGui just spinning...

Container Log:

INFO |handler_api.c:1400:handleApiESP32PatchFirmware| Request for '/teddycloud/data/firmware/ESP32_fw.bin'
INFO |esp32.c:1737:esp32_inject_ca| Writing CA into '/teddycloud/data/firmware/cert_fw//ca.der'
INFO |esp32.c:1754:esp32_inject_ca| Convert CA certificate...
INFO |esp32.c:1792:esp32_inject_ca| Injecting CA into '/teddycloud/data/firmware/patched_fw.bin'
INFO |esp32.c:1380:esp32_get_partition| Search for partition 'assets'
ERROR|esp32.c:1414:esp32_get_partition| Partition 'assets' not found
ERROR|esp32.c:1637:esp32_fat_inject| Asset partition not found
ERROR|esp32.c:1795:esp32_inject_ca| Failed to patch image
ERROR|handler_api.c:1428:handleApiESP32PatchFirmware| Failed to generate and inject CA
WARN |server_helpers.c:0806:httpServerUriNotFoundCallback|  >> 404 /api/esp32/patchFirmware

New try with legacy mode on WIndows PC with 0.6.2 (and 0.6.1 - same error):

Read Firmware again with ESPTool on Windows PC: ok (8192kb)

Patch Firmware with teddycloud file:

INFO |settings.c:0848:settings_load_ovl()| Load settings from C:\Users\me\Downloads\teddycloud.amd64.release_v0.6.2\config\config.overlay.ini
INFO |settings.c:0848:settings_load_ovl()| Load settings from C:\Users\me\Downloads\teddycloud.amd64.release_v0.6.2\config\config.ini
INFO |settings.c:0848:settings_load_ovl()| Load settings from C:\Users\me\Downloads\teddycloud.amd64.release_v0.6.2\config\config.overlay.ini
INFO |esp32.c:1380:esp32_get_partition()| Search for partition 'assets'
ERROR|esp32.c:1414:esp32_get_partition()| Partition 'assets' not found
ERROR|esp32.c:1609:esp32_fat_extract()| Asset partition not found

Both ways end in "Partition 'assets' not found".

dimitrij2k commented 11 hours ago

I opened the dumped Firmware with HxD (Hextool) and it contains only F-letters. The Toniebox is bricked.

I dont write anything to the flash.

henryk86 commented 6 hours ago

As you do not have written anything to the box. Retry reading the flash I would say.