Page 1 of 1

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

Posted: Fri Apr 21, 2023 1:01 am
by 122722629@qq.com
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

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

Posted: Tue Apr 25, 2023 9:14 am
by ESP_LiuH
是基于哪个示例遇到的问题?

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

Posted: Fri Apr 28, 2023 11:56 am
by 122722629@qq.com
rgb_panel

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

Posted: Tue May 09, 2023 11:36 am
by 122722629@qq.com
再顶一下,其实跟哪个例程没有关系吧,这种一般是什么问题,会有什么实际的影响吗?

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

Posted: Tue May 09, 2023 11:57 am
by ESP_Gargamel
影响了启动速度。

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

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

Posted: Mon May 15, 2023 3:20 pm
by 122722629@qq.com
果然是这个原因,谢谢 :D