cancel
Showing results for 
Search instead for 
Did you mean: 

Optee panic - custom board with 256 MB ram

micdini
Visitor

Hello,

I'm stalling with an issue with Optee on a custom board with 256 MB of ram and an STM32MP135D.

The environment was working with the DK (MP135F and 512M ram).

I followed the guide for the configuration with 256 MB of ram (https://wiki.st.com/stm32mpu/wiki/How_to_configure_a_256MB_DDR_mapping_from_STM32_MPU_Distribution_Package), however it panics as soon as optee starts.

Am I missing something or do you have some hints?

Thank you

 

NOTICE:  CPU: STM32MP135D Rev.Y
NOTICE:  Model: STMicroelectronics custom STM32CubeMX board - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
ERROR:   nvmem node board_id not found
INFO:    PMIC version = 0x21
WARNING: VDD unknown
WARNING: stm32_rng_init: No RNG found in device tree.
NOTICE:  Reset reason (0x35):
INFO:      Power-on Reset (rst_por)
INFO:    FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000
INFO:    FCONF: Reading firmware configuration information for: stm32mp_fuse
INFO:    FCONF: Reading firmware configuration information for: stm32mp_io
INFO:    Using SDMMC
INFO:      Instance 1
INFO:    Boot used partition fsbl1
NOTICE:  BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848)
NOTICE:  BL2: Built : 16:19:31, Jun 28 2024
INFO:    BL2: Doing platform setup
INFO:    RAM: DDR3-DDR3L 16bits 533000kHz
INFO:    Memory size = 0x10000000 (256 MB)
INFO:    BL2: Loading image id 1
INFO:    Loading image id=1 at address 0x30006000
INFO:    Image id=1 loaded: 0x30006000 - 0x300061ea
INFO:    FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000
INFO:    FCONF: Reading firmware configuration information for: mce_config
INFO:    FCONF: Reading firmware configuration information for: dyn_cfg
INFO:    FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO:    BL2: Loading image id 4
INFO:    Loading image id=4 at address 0xce000000
INFO:    Image id=4 loaded: 0xce000000 - 0xce00001c
INFO:    OPTEE ep=0xce000000
INFO:    OPTEE header info:
INFO:          magic=0x4554504f
INFO:          version=0x2
INFO:          arch=0x0
INFO:          flags=0x0
INFO:          nb_images=0x1
INFO:    BL2: Loading image id 8
INFO:    Loading image id=8 at address 0xce000000
INFO:    Image id=8 loaded: 0xce000000 - 0xce08bfe0
INFO:    BL2: Loading image id 2
INFO:    Loading image id=2 at address 0xc0400000
INFO:    Image id=2 loaded: 0xc0400000 - 0xc040c540
INFO:    BL2: Skip loading image id 16
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0xc0000000
INFO:    Image id=5 loaded: 0xc0000000 - 0xc0115bd8
NOTICE:  BL2: Booting BL32
INFO:    Entry point address = 0xce000000
INFO:    SPSR = 0x1d3
I/TC: Early console on UART#2
I/TC:
I/TC: Embedded DTB found
I/TC: OP-TEE version: devtool-patched-1-g082d77e95-dev (gcc version 13.3.0 (GCC)) #15 Thu Jan 29 10:21:24 UTC 2026 arm
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: WARNING: All debug accesses are allowed
E/TC:0 0
E/TC:0 0 Core data-abort at address 0x10 (translation fault)
E/TC:0 0  fsr 0x00000205  ttbr0 0xce0d4000  ttbr1 0x00000000  cidr 0x0
E/TC:0 0  cpu #0          cpsr 0x800001f3
E/TC:0 0  r0 0x00000000      r4 0x00000000    r8 0x00000ac0   r12 0xce09b1b0
E/TC:0 0  r1 0xce0d5f00      r5 0x00000000    r9 0x00000000    sp 0xce0d5ec8
E/TC:0 0  r2 0xce0a8c28      r6 0x7fffffff   r10 0xce08bd6c    lr 0xce04c6ed
E/TC:0 0  r3 0x00000000      r7 0x00000ac0   r11 0xce08bdb4    pc 0xce01b9bc
E/TC:0 0 TEE load address @ 0xce000000
E/TC:0 0 Call stack:
E/TC:0 0  0xce01b9bc
E/TC:0 0  0xce04c6ed
E/TC:0 0  0xce01b9cb
E/TC:0 0  0xce01bbb7
E/TC:0 0  0xce01bf05
E/TC:0 0  0xce01c27b
E/TC:0 0  0xce01f97d
E/TC:0 0  0xce01fa4d
E/TC:0 0  0xce020361
E/TC:0 0  0xce022d85
E/TC:0 0  0xce04a079
E/TC:0 0  0xce00417b
E/TC:0 0  0xce0001a0
E/TC:0 0 Panic 'unhandled pageable abort' at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/arch/arm/kernel/abort.c:593 <abort_handler>
E/TC:0 0 TEE load address @ 0xce000000
E/TC:0 0 Call stack:
E/TC:0 0  0xce0042d9
E/TC:0 0  0xce021e4f
E/TC:0 0  0xce003867
E/TC:0 0  0xce0016e4

 

0 REPLIES 0