Skip to main content
YInou.1
Associate
July 19, 2022
Question

U-Boot does not start due to Hash error during USB Boot

  • July 19, 2022
  • 4 replies
  • 1966 views

We designed original board using STM32MP153D.

We cannot boot by U-boot.

When booting via USB, the Hash check (hash_sha256_check) of the page in the init_runtime of opte_os fails when booting U-Boot (see console log below).

The page that fails is different each time.

SD Card Boot does not fail in Hash check.

What is the cause and what can I do about it?

I/TC: Pager is enabled. Hashes: 2848 bytes

D/TC:0 0 init_runtime:467 Checking hashes of pageable area

D/TC:0 0 init_runtime:473 hash pg_idx 0 hash 0x2ffef4d8 page 0x29800000

D/TC:0 0 init_runtime:473 hash pg_idx 1 hash 0x2ffef4f8 page 0x29801000

D/TC:0 0 init_runtime:473 hash pg_idx 2 hash 0x2ffef518 page 0x29802000

D/TC:0 0 init_runtime:473 hash pg_idx 3 hash 0x2ffef538 page 0x29803000

D/TC:0 0 init_runtime:473 hash pg_idx 4 hash 0x2ffef558 page 0x29804000

E/TC:0 0 init_runtime:476 Hash failed for page 4 at 0x29804000: res 0xffff000f

E/TC:0 0 Panic at core/arch/arm/kernel/boot.c:478 <init_runtime>

E/TC:0 0 assertion 'p->pa' failed at core/arch/arm/mm/core_mmu.c:2433 <io_pa_or_va_secure>

​Thank you.​

This topic has been closed for replies.

4 replies

Olivier GALLIEN
Technical Moderator
July 25, 2022

Hi @YInou.1​ ,

could you please provide complete boot log when fail ( USB) and succeed ( SDCard)

Diffrerence between USB boot and SDcard boot may come from a different tf-a flavor ( serialboot for USB) which contains an error.

Thanks,

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
YInou.1
YInou.1Author
Associate
July 26, 2022

Dear Olivier Gallien,

Thank you for your reply.

First, see attached file for SD card Boot logs.

Thank you,

Yuichi Inoue

YInou.1
YInou.1Author
Associate
July 26, 2022

Second, see attached file for USB Boot logs.

OlivierK
Technical Moderator
July 29, 2022

Hi YInou.1 (Community Member) 

It looks like your board is configured with a DDR 256MB, are you sure about all your settings in optee too to adjust the DDR size, also in TF-A fw config?

Both logs show that there is a physical memory overlap that ends up in a panic, the hash issue might be related.

Also it seems on the SDcard boot, the OPTEE DTB is not found.. When you build optee do you see any errors/warnings?

Regards,

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.