2022-07-19 02:48 AM
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.
2022-07-24 10:41 PM
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
2022-07-26 12:49 AM
2022-07-26 12:50 AM
2022-07-29 05:49 AM
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