tasmota / autoconf

Tasmota autoconf device configurations storage
GNU General Public License v3.0
9 stars 22 forks source link

Some fixes needed for Shelly Mini Gen3 #37

Closed tbrasser closed 10 months ago

tbrasser commented 10 months ago

We're pretty close though!

Getting this in the console when trying to migrate:

17:11:32.444 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:12:19.564 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:12:24.640 UPL: Step 1 Done
17:12:24.645 UPL: Starting step 2
17:12:24.726 UPL: flashing `safeboot` from http://ota.tasmota.com/tasmota32/release/tasmota32c3-safeboot.bin 712kB
17:12:24.727 UPL: error (internal_error) `app0` offset is not 0x10000
17:14:59.556 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:15:32.380 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
17:15:34.262 RSL: RESULT = {"OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32c3.bin"}
Jason2866 commented 10 months ago

Oh, my. Shelly changed the default address for App partition 0. This is (was) until now 0x10000 for every project done with IDF, Arduino and whatever SDK was used. Since esp32x code is running at every aligned address this can be easily done. Until now no one did. @s-hadinger This is an unfortunate change. Looks like the script needs to check where app_0 slot is located. And do some more "transform dance"

s-hadinger commented 10 months ago

Oh boy. So you have a test Shelly firmware dump for me to try?

tbrasser commented 10 months ago

Anything I can do on the device to provide relevant info?

s-hadinger commented 10 months ago

A complete dump of the original Shelly firmware would be awesome

tbrasser commented 10 months ago

How would I do that? Do I need to find my soldering iron and serial cable? Or can we go from here? https://fwcdn.shelly.cloud/gen2/Mini1G3/9fbc0d092db72c609ef2e77eb4bf7c54cc44a928d3bf55c90e568c996552730d

EDIT: Found it, will hook one up once I get to it! https://tasmota.github.io/docs/Esptool/#optional-backup-firmware

Jason2866 commented 10 months ago

@tbrasser Please try latest Autoconfig. Before remove every file in Tasmota Filesystem.

tbrasser commented 10 months ago

Unfortunately I can't get it to work, still seeing the offset error I had before on that same device, after removing all files from flash. Also on a new one I end up with no Partition_Wizad showing up. (added a comment on my original issue on mgos32-to-tasmota32)

Jason2866 commented 10 months ago

@tbrasser culprit found. There is a 32k limit when reading files with Berry (safeguard for not go overboard with free heap...) Will be changed to read 4k chunks.

tbrasser commented 10 months ago

It worked! Thanks!

Jason2866 commented 10 months ago

Thx for the feedback.