siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
129 stars 76 forks source link

Fix for RPMB key writing #472

Closed BaochengSu closed 11 months ago

BaochengSu commented 11 months ago

Currently the RPMB key writing does not work:

1st issue was u-boot SPL complaining:

| alloc space exhausted | Could not get FIT buffer of 1057180 bytes | check CONFIG_SYS_SPL_MALLOC_SIZE

This is fixed by expanding the heap size for malloc_simple.

Then comes to this issue:

| IOT2050> setenv -e -nv -bs -rt pairing 1 | I/TC: Reserved shared memory is enabled | I/TC: Dynamic shared memory is enabled | I/TC: Normal World virtualization support is disabled | I/TC: Asynchronous notifications are disabled | E/LD: init_elf:486 sys_open_ta_bin(ed32d533-99e6-4209-9cc0-2d72cdd998a7) | E/TC:? 0 ldelf_init_with_ldelf:131 ldelf failed with res: 0xffff0009 | Unable to open OP-TEE session (err=-5) | mm_communicate failed! | Error: Cannot initialize UEFI sub-system, r = 3

This is due to the StMM is not integrated for the rpmb-setup override.