Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update preparing firmware instructions #299

Closed
balloob opened this issue Dec 12, 2022 · 4 comments
Closed

Update preparing firmware instructions #299

balloob opened this issue Dec 12, 2022 · 4 comments

Comments

@balloob
Copy link
Member

balloob commented Dec 12, 2022

@balloob @TD-er Changes ahead, latest Arduino ESP32 stage does not use anymore *.bin file for bootloader. The *.elf file builded with Arduino Lib Builder is used and converted to an *.bin file during compile of the main sketch. So no more wrong SHA message during boot of the ESP32x. Currently Platformio does not support yet.
See issue. This will be the standard way, with release of core 2.0.6.
So in a not so far future, for building a merged firmware, the creator has to do the *.bin build out of the *.elf bootloader file too.

Originally posted by @Jason2866 in #298 (comment)

@Jason2866
Copy link
Contributor

Jason2866 commented Dec 12, 2022

Needed Platformio build part has been updated and merged today in Arduino esp32 repo. Platformio crew has done it very user friendly, the builded bootloader.bin is in the same folder where the builded bin firmware sketch is.

    Offset | File
 -  0x1000 | /Users/hans/Git/Tasmota/.pio/build/tasmota32/bootloader.bin
 -  0x8000 | /Users/hans/Git/Tasmota/.pio/build/tasmota32/partitions.bin
 -  0xe000 | /Users/hans/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
 -  0x10000 | /Users/hans/Git/Tasmota/.pio/build//tasmota32/firmware.bin

So for the user just the place where to look for the bootloader.bin has changed.

The generated bootloader.bin is only useable for the definitions choosen in used boards.json for flash freq. flash type and mode. Nothing has changed here!
For different parameters a "fitting" bootloader.bin is needed.

@balloob balloob changed the title Update preparing firmware instructions when platformIO 2.0.6 released Update preparing firmware instructions Dec 14, 2022
@balloob
Copy link
Member Author

balloob commented Dec 14, 2022

Since we didn't document where the user could find bootloader.bin, I guess this doesn't require any changes for our README?

@Jason2866
Copy link
Contributor

Yep. Sometimes it is better not to document everything ;-)

@TD-er
Copy link

TD-er commented Dec 14, 2022

Yep. Sometimes it is better not to document everything ;-)

That's my specialty :)

@balloob balloob closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants