【已解决】启动时提示,“SHA-256 comparison failed:”是什么问题?

122722629@qq.com
Posts: 20
Joined: Wed Feb 16, 2022 7:01 am

【已解决】启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby 122722629@qq.com » Fri Apr 21, 2023 1:01 am

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3810,len:0x164c
load:0x403c9700,len:0xbe0
load:0x403cc700,len:0x2ef8
SHA-256 comparison failed:
Calculated: 2aee849aeed07a145028b73fcedaef433c9734864734b49baf68571b9635a195
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403c9900
I (43) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
I (43) boot: compile time 23:01:59
I (43) boot: chip revision: v0.1
I (45) boot.esp32s3: Boot SPI Speed : 80MHz
I (50) boot.esp32s3: SPI Mode : DIO
I (55) boot.esp32s3: SPI Flash Size : 8MB
I (60) boot: Enabling RNG early entropy source...
I (65) boot: Partition Table:
I (69) boot: ## Label Usage Type ST Offset Length
I (76) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (83) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (91) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (98) boot: 3 ota_0 OTA app 00 10 00010000 00200000
I (106) boot: 4 ota_1 OTA app 00 11 00210000 00200000
I (113) boot: 5 storage Unknown data 01 82 00410000 00200000
I (121) boot: End of partition table


程序可以正常运行,就是每次启动时提示这个错误,ESP-IDF 5.0.1

ESP_LiuH
Posts: 42
Joined: Fri Feb 10, 2023 7:20 am

Re: 启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby ESP_LiuH » Tue Apr 25, 2023 9:14 am

是基于哪个示例遇到的问题?

122722629@qq.com
Posts: 20
Joined: Wed Feb 16, 2022 7:01 am

Re: 启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby 122722629@qq.com » Fri Apr 28, 2023 11:56 am

rgb_panel

122722629@qq.com
Posts: 20
Joined: Wed Feb 16, 2022 7:01 am

Re: 启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby 122722629@qq.com » Tue May 09, 2023 11:36 am

再顶一下,其实跟哪个例程没有关系吧,这种一般是什么问题,会有什么实际的影响吗?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby ESP_Gargamel » Tue May 09, 2023 11:57 am

影响了启动速度。

把 Serial flasher config -> Detect flash size when flashing bootloader 取消掉,直接设置你板子的 Flash size。自动检测 flash size 的话,生成二级 bootloader.bin 的时候会把 SHA-256 digest 取消掉,导致 ROM 里的 bootloader 校验不过。

122722629@qq.com
Posts: 20
Joined: Wed Feb 16, 2022 7:01 am

Re: 启动时提示,“SHA-256 comparison failed:”是什么问题?

Postby 122722629@qq.com » Mon May 15, 2023 3:20 pm

果然是这个原因,谢谢 :D

Who is online

Users browsing this forum: No registered users and 105 guests