cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp157a-dk1 : Error u-boot with basic boot mode "stm32mp1_clk_get_id: clk id 69 not found"

kghal.1
Associate

I built u-boot for stm32mp157a-dk1 board with basic boot mode:

Defconfig: stm32mp15_basic_defconfig

Device Tree: stm32mp157a-dk1

I got this error at starting u-boot and if I try to read/write from/to OTP register:

stm32mp1_clk_get_id: clk id 69 not found

U-Boot SPL 2020.10-stm32mp-r2 (Aug 14 2022 - 13:41:53 +0100)
Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
RAM: DDR3-DDR3L 16bits 533000kHz
stm32mp1_clk_get_id: clk id 69 not found
WDT:   Started with servicing (32s timeout)
Trying to boot from MMC1
 
 
U-Boot 2020.10-stm32mp-r2 (Aug 14 2022 - 13:41:53 +0100)
 
stm32mp1_clk_get_id: clk id 69 not found
stm32mp1_clk_get_id: clk id 69 not found
stm32mp1_clk_get_id: clk id 69 not found
stm32mp1_clk_get_id: clk id 69 not found
CPU: STM32MP157C?? Rev.?
Model: STMicroelectronics STM32MP157A-DK1 Discovery Board
Board: stm32mp1 in basic mode (st,stm32mp157a-dk1)
stm32mp1_clk_get_id: clk id 69 not found
DRAM:  512 MiB
Clocks:
- MPU : 650 MHz
- MCU : 208.878 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR : 533 MHz
stm32mp1_clk_get_id: clk id 69 not found
Can't find stm32mp_bsec driver
WDT:   Started with servicing (32s timeout)
NAND:  0 MiB
MMC:   STM32 SD/MMC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment
 
In:    serial
Out:   serial
Err:   serial
stm32mp1_clk_get_id: clk id 69 not found
stm32mp1_clk_get_id: clk id 69 not found
stm32mp1_clk_get_id: clk id 69 not found

STM32MP> fuse read 0 57                        
Reading bank 0:
 
Word 0x00000039:stm32mp1_clk_get_id: clk id 69 not found

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
PatrickD
ST Employee

Hi,

For information, in include/dt-bindings/clock/stm32mp1-clks.h

#define BSEC 69

this BSEC clock is added in kernel device tree, provided by SCMI for trusted boot, and need to be supported in U-Boot clock driver for basic boot (even if no more supported in OpenSTlinux)

drivers/clk/stm32/clk-stm32mp1.c

STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 16, BSEC, _UNKNOWN_SEL),

I think this patch is missing in your U-Boot (OpenSTLinux v3.1 ?):

clk: stm32mp1: add support of BSEC clock · STMicroelectronics/u-boot@28e5ace (github.com)

Regards

Patrick

View solution in original post

6 REPLIES 6
OlivierK
ST Employee

Hi kghal.1 (Community Member),

On the latest OSTL DV4.0, only Trusted boot with FIP OPTEE or SP_MIN is supported. Basic boot is no longer.. https://wiki.st.com/stm32mpu/wiki/STM32_MPU_OpenSTLinux_release_note_-_v4.0.0


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
OlivierK
ST Employee

Hi kghal.1 (Community Member)

Are you now sorted out taking the trusted package?

Rgds,

Olivier


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PatrickD
ST Employee

Hi,

For information, in include/dt-bindings/clock/stm32mp1-clks.h

#define BSEC 69

this BSEC clock is added in kernel device tree, provided by SCMI for trusted boot, and need to be supported in U-Boot clock driver for basic boot (even if no more supported in OpenSTlinux)

drivers/clk/stm32/clk-stm32mp1.c

STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 16, BSEC, _UNKNOWN_SEL),

I think this patch is missing in your U-Boot (OpenSTLinux v3.1 ?):

clk: stm32mp1: add support of BSEC clock · STMicroelectronics/u-boot@28e5ace (github.com)

Regards

Patrick

Hi @Community member​ 

Yes this patch clk: stm32mp1: add support of BSEC clock · STMicroelectronics/u-boot@28e5ace (github.com) is missing.

Problem resolved now !

Thank you.

AFard.1
Associate II

Hello @kghal.1​  stm32mp157a-dk1 supports android os ? if yes did you tried to build an android soft

on environment ?

PatrickD
ST Employee

Hi

please create a new topic for a new question.

For information, Android support is deprecated since OpenSTLinux V3.0: https://wiki.st.com/stm32mpu/wiki/STM32MP15_distribution_for_Android_release_note

https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/STM32MPU_distribution_for_Android

Patrick