cancel
Showing results for 
Search instead for 
Did you mean: 

Using a U-Boot binary after building using the STM32MP1 Android distribution does not work.

SRaic.1
Associate II

Have tried building U-Boot with a few changes compared to the default ones using the STM32MP1 Android distribution.

When changing the ssbl-trusted-fbemmc.img which contains the U-Boot binaries, the U-Boot start fails showing the following boot logs:

/TC: OP-TEE version: 3.9.0-22-gc2249e24d (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Sun May 21 22:35:04 UTC 2023 arm

D/TC:0 0 check_ta_store:635 TA store: "early TA"

D/TC:0 0 check_ta_store:635 TA store: "Secure Storage TA"

D/TC:0 0 check_ta_store:635 TA store: "REE"

D/TC:0 0 early_ta_init:248 Early TA 023f8f1a-292a-432b-8fc4-de8471358067 size 38396

D/TC:0 0 mobj_mapped_shm_init:446 Shared memory address range: 2dc00000, 2fc00000

I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp157f-ev1.dts

...

...

...

D/TC:0 0 stm32_bsec_shadow_register:235 BSEC shadow warning: OTP locked

D/TC:0 0 check_rcc_secure_configuration:790 RCC/PWR secure hardening: TZEN enable, MCKPROT disable

I/TC: Initialized

D/TC:0 0 paged_init_primary:1188 Primary CPU switching to normal world boot

D/TC:0  tee_entry_exchange_capabilities:102 Dynamic shared memory is enabled

D/TC:0 0 stat_handle_fault:1422 nfaults 1331 npages 15 (min 16)

D/TC:0 0 core_mmu_entry_to_finer_grained:761 xlat tables used 4 / 7

D/TC:? 0 tee_ta_init_pseudo_ta_session:284 Lookup pseudo TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099

D/TC:0 0 stat_handle_fault:1422 nfaults 1347 npages 14 (min 15)

D/TC:0 0 stat_handle_fault:1422 nfaults 1351 npages 13 (min 14)

D/TC:? 0 load_ldelf:703 ldelf load address 0x40004000

D/LD: ldelf:134 Loading TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099

D/TC:? 0 tee_ta_init_pseudo_ta_session:284 Lookup pseudo TA 3a2f8978-5dc0-11e8-9c2d-fa7ae01bbebc

D/TC:? 0 tee_ta_init_pseudo_ta_session:297 Open system.pta

D/TC:? 0 tee_ta_init_pseudo_ta_session:311 system.pta : 3a2f8978-5dc0-11e8-9c2d-fa7ae01bbebc

D/TC:? 0 system_open_ta_binary:256 Lookup user TA ELF a8cfe406-d4f5-4a2e-9f8d-a25dc754c099 (early TA)

D/TC:? 0 system_open_ta_binary:260 res=0xffff0008

D/TC:? 0 system_open_ta_binary:256 Lookup user TA ELF a8cfe406-d4f5-4a2e-9f8d-a25dc754c099 (Secure Storage TA)

D/TC:? 0 system_open_ta_binary:260 res=0xf0100003

D/TC:? 0 system_open_ta_binary:256 Lookup user TA ELF a8cfe406-d4f5-4a2e-9f8d-a25dc754c099 (REE)

D/TC:? 0 system_open_ta_binary:260 res=0xffff0009

D/TC:? 0 tee_ta_invoke_command:773 Error: ffff0009 of 4

E/LD: init_elf:350 sys_open_ta_bin(a8cfe406-d4f5-4a2e-9f8d-a25dc754c099)

E/TC:? 0 init_with_ldelf:232 ldelf failed with res: 0xffff0009

D/TC:? 0 tee_ta_close_session:498 csess 0x2ffebea0 id 1

D/TC:? 0 tee_ta_close_session:518 Destroy session

D/TC:? 0 destroy_context:298 Destroy TA ctx (0x2ffebe60)

D/TC:? 0 tee_ta_close_session:498 csess 0x2ffeb8f0 id 1

D/TC:? 0 tee_ta_close_session:518 Destroy session

E/TC:? 0 tee_ta_open_session:728 Failed. Return error 0xffff0009

D/TC:? 0 tee_ta_close_session:498 csess 0client_loop: send disconnect: Broken pipe

Are we missing something in the U-Boot configuration?

The board keeps on restarting after this!

0 REPLIES 0