cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP1 boot stuck on SP_MIN: Preparing exit to normal world

jhi
Senior

After buildroot I'm trying to get the yocto build to work. I'm using openstlinux-5.10-dunfell-mp1-21-11-17. The boot process always stops on SP_MIN: Preparing exit to normal world. Yes, I have already read the https://st.force.com/community/s/article/FAQ-STM32MP1-bring-up-troubleshooting-guide. I do have the memory correct and I do not have any pins configured in &rcc. The same device tree file(s) works on buildroot. How can I debug this? The board I'm using is from MYiR (MYD-YA157C).

Edit: I'm using custom machine, which is defined in layers/meta-st/meta-st-stm32mp-addons/conf/machine

4 REPLIES 4
jhi
Senior

I’m not really getting any further. Anyone any suggestions how to proceed? @OlivierK​ Can you help here?

Hammy
Associate III

Try reading and adapting this patch file. It is needed when you remove CONFIG_ENV_IS_NOWHERE=y from the u-boot defconfig

https://github.com/mendersoftware/meta-mender-community/blob/thud/meta-mender-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp-2018.11/0002-stm32mp1-remove-env_get_location-override.patch

Hello, have you resolved the issue? 

Thanks, Dominik.

debugging
Lead

Try to enable debug messages in CONFIG/menuconfig to get more clues

 

Symbol: DEBUG_LL
Depends on: DEBUG_KERNEL
Location:
-> Kernel hacking
-> arm Debugging
[*] Kernel low-level debugging functions
Symbol: STM32MP1_DEBUG_UART
Location:
-> Kernel hacking
-> arm Debugging
[*] Kernel low-level debugging functions
[*] Kernel low-level debugging port
(X) Use STM32MP1 UART for low-level debug
Symbol: EARLY_PRINTK
Depends on: DEBUG_LL
Location:
-> Kernel hacking
-> arm Debugging
[*] Kernel low-level debugging functions
[*] Early printk

Change extlinux.conf (found on the bootfs) to include earlyprintk
root=/dev/mmcblk0p6 rootwait rw earlyprintk console=ttySTM0,115200`