Hello 166291,
I was struggling with the ATF long into the night when I stumbled upon this post. I had made the same changes as you but on the ST ATF repo and got the following.
NOTICE: CPU: STM32MP157CAC Rev.B
NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using USB
INFO: Instance 2
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.0-r2.0(debug):v2.0-stm32mp-r2-dirty
INFO: BL2: Doing platform setup
INFO: PMIC version = 0x20
PANIC at PC : 0x2ffe6d03
Exception mode=0x00000016 at: 0x2ffda000
I figued I would give your repo a run and see if that works, but I end up with this
NOTICE: CPU: STM32MP157CAC Rev.B
NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
ERROR: Boot interface not found
PANIC at PC : 0x2ffd91e1
I feel lost. Any ideas what I could be missing?
I am building with gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf and the string
make -C ${<your ATF repo cleaned with said branch checked out>} CROSS_COMPILE=${<as above>} PLAT=stm32mp1 LOG_LEVEL=40 DTB_FILE_NAME=stm32mp157c-dk2.dtb ARM_ARCH_MAJOR=7 ARCH=aarch32 AARCH32_SP=sp_min STM32MP_USB_PROGRAMMER=1 STM32MP_EMMC=1 STM32MP_SDMMC=1 all
I load the code with STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=usb1 -w flash.tsv
flash.tsv
#Opt | Id | Name | Type | IP | Offset | Binary |
---|---|---|---|---|---|---|
- | 0x01 | fsbl1-boot | Binary | none | 0x0 | tf-a-stm32mp157c-dk2.stm32 |
- | 0x03 | ssbl-boot | Binary | none | 0x0 | u-boot.stm32 |
Last. Great thanks for the info in your post!
Best Regards