2022-08-23 05:43 AM
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
Solved! Go to Solution.
2022-10-03 05:18 AM
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
2022-09-09 09:33 AM
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
2022-09-21 04:14 AM
2022-10-03 05:18 AM
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
2022-10-09 03:31 AM
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.
2022-12-17 02:09 AM
Hello @kghal.1 stm32mp157a-dk1 supports android os ? if yes did you tried to build an android soft
on environment ?
2023-01-03 01:38 AM
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