SHA-256 for running partition all zero?

StefanRvO
Posts: 16
Joined: Sun Mar 06, 2016 9:25 pm

Re: SHA-256 for running partition all zero?

Postby StefanRvO » Mon Dec 30, 2019 1:49 am

Any update on this issue? I have currently made a hack in my ESP-idf which just handles computing the sha for app partitions like it was any other partition:

Code: Select all

--- a/components/bootloader_support/src/bootloader_common.c
+++ b/components/bootloader_support/src/bootloader_common.c
@@ -168,7 +168,7 @@ esp_err_t bootloader_common_get_sha256_of_partition (uint32_t address, uint32_t
         return ESP_ERR_INVALID_ARG;
     }
 
-    if (type == PART_TYPE_APP) {
+    if (type == PART_TYPE_APP && 0) {
         const esp_partition_pos_t partition_pos = {
             .offset = address,
             .size = size,
But it would be nice to have a upstream solution at some point :)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: SHA-256 for running partition all zero?

Postby ESP_Angus » Tue Dec 31, 2019 6:25 am

Hi Stefan,

Sorry, this got held up longer than anticipated.

The fix has merged to our internal repo and should appear on GitHub master branch in the next week or so. I plan to update this thread again once this happens.

Angus

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: SHA-256 for running partition all zero?

Postby ESP_Angus » Mon Jan 06, 2020 10:19 pm

The fix has been merged to master branch on GitHub as of commit 03f6179211f00ce1beaf0cc968380639cab9be9a.

Sorry for the long delay.

Who is online

Users browsing this forum: MicroController and 182 guests