Skip to main content
Visitor II
September 5, 2024
Solved

OPTEE panic error: E/TC:0 0 print_probe_list:411 |- Driver stm32-cpu-opp on node cpu0-opp-table failed

  • September 5, 2024
  • 1 reply
  • 5376 views

Hi, 

I have customized a board using STM32MP157DAC referencing the mp157d-disco board hardware design. I have discrete power supply. I deleted the PMIC related nodes is DT and add fixed regulator in the root. The TF-A boot is ok, but the optee panic with the error message below:

NOTICE: CPU: STM32MP157DAC Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157D-DK1 STM32CubeMX board - openstlinux-6.1-yocto-mickledore-mpu-v24.06.26
WARNING: VDD unknown
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.8-stm32mp1-r2.0(debug):lts-v2.8.15-dirty(567af710)
NOTICE: BL2: Built : 00:51:33, Jan 26 2024
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: DFU USB START...
INFO: phase ID :3, Manifestation 3 at c7156ffa
INFO: Send detach request
INFO: Receive DFU Detach
INFO: DFU USB STOP...
INFO: BL2: Loading image id 1
INFO: Loading image id=1 at address 0x2ffff000
INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1ea
INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000
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 0xde000000
INFO: Image id=4 loaded: 0xde000000 - 0xde00001c
INFO: OPTEE ep=0xde000000
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 0xde000000
INFO: Image id=8 loaded: 0xde000000 - 0xde02ee08
INFO: BL2: Skip loading image id 9
INFO: BL2: Loading image id 2
INFO: Loading image id=2 at address 0xc0500000
INFO: Image id=2 loaded: 0xc0500000 - 0xc0513230
INFO: BL2: Skip loading image id 16
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: Image id=5 loaded: 0xc0100000 - 0xc0214c94
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0xde000000
INFO: SPSR = 0x1d3
I/TC: Early console on UART#4
I/TC:
I/TC: Embedded DTB found
I/TC: OP-TEE version: 3.19.0-dev (gcc version 12.3.0 (GCC)) #1 Fri Oct 14 19:00:05 UTC 2022 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: Override the OTP 18: 0x7b0c0000 to 0x7b0c01e0
I/TC: WARNING: Embeds insecure stm32mp_provisioning driver
E/TC:0 0 probe_driver_node:458 Failed to probe stm32-cpu-opp on node cpu0-opp-table: 0xffff0000
E/TC:0 0 print_probe_list:411 |- Driver stm32-cpu-opp on node cpu0-opp-table failed
I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp157d-custom-157d-mx.dts
I/TC: OP-TEE ST profile: system_services
I/TC: DTB enables console (non-secure)
E/TC:0 0 probe_dt_drivers:795 Probe sequence result: 0
E/TC:0 0 print_probe_list:411 |- Driver stm32-cpu-opp on node cpu0-opp-table failed
E/TC:0 0 Panic

I enclosed my dts file.

Many thanks for help.

 

    This topic has been closed for replies.
    Best answer by rgruberski

    @xchen, please try it. Change the values inside the following regulator to both on 1350000. This one simple change solved my issue. If not, please share your clock configuration or an ioc file.

     

    vddcore: vddcore {
    		compatible = "regulator-fixed";
    		regulator-name = "vddcore";
    		regulator-min-microvolt = <1200000>;
    		regulator-max-microvolt = <1350000>;
    		regulator-always-on;
    	};

     

    What MPU frequency do you have in the clock configuration? The configuration below works in my case. I set the MPU frequency to 800 Mhz.

     

    vddcore: regulator-vddcore {
    	compatible = "regulator-fixed";
    	regulator-name = "vddcore";
    	regulator-min-microvolt = <1350000>;
    	regulator-max-microvolt = <1350000>;
    	regulator-always-on;
    };
    
    &cpu0 {
    	cpu-frequency = <800000000>;
    	cpu-supply = <&vddcore>;
    };

     

     

    1 reply

    Explorer
    September 13, 2024

    Hi @xchen Have you solved this issue? I have precisely the same results.

    xchenAuthor
    Visitor II
    September 13, 2024

    no, I have tried solutions with similar error but still not working.

    Explorer
    September 13, 2024

    Good luck! Let me know if you solve it. I will let you know also.