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

How to get all Software Versions (IDFGH-7573) #9132

Closed
franz-ms-muc opened this issue Jun 9, 2022 · 3 comments
Closed

How to get all Software Versions (IDFGH-7573) #9132

franz-ms-muc opened this issue Jun 9, 2022 · 3 comments
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally

Comments

@franz-ms-muc
Copy link
Contributor

Hello,

how to get Version Name etc.. from

  • running Partition (that is easy, just look in startup.c)
  • the other OTA Partition
  • the Test Firmware
  • the Factory Partition
  • the Bootloader

also can one add some Fields in the code which are "reserved" spaces in the bin File, which can be set by a script, and later read by the code ?

Thanks,
Franz

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 9, 2022
@github-actions github-actions bot changed the title How to get all Software Versions How to get all Software Versions (IDFGH-7573) Jun 9, 2022
@KaeLL
Copy link
Contributor

KaeLL commented Jun 9, 2022

For the first 4, I think esp_ota_get_partition_description does the job. Not sure about the bootloader.
As for the question, I think so.

@AshUK
Copy link
Contributor

AshUK commented Jun 13, 2022

+1 would also like to the be able to report the boot loader version to the cloud.

@igrr
Copy link
Member

igrr commented Jun 13, 2022

@franz-ms-muc There is an open feature request for getting the IDF version used to compile the bootloader: #8800. Please follow that ticket for updates.

For the rest, @KaeLL is right, esp_ota_get_partition_description should give you the structure with the required information.

also can one add some Fields in the code which are "reserved" spaces in the bin File, which can be set by a script, and later read by the code ?

If you add these fields during the compilation process (via rodata_custom_desc section), then yes. Overwriting parts of the binary after it is created isn't supported, because the hash of the binary image will become incorrect.

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Dec 13, 2022
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: In Progress Work is in progress labels May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

6 participants