still unable to boot from qspi-nand
In addition to this question:
https://community.st.com/s/question/0D53W00000pUh4gSAC/tfa-and-uboot-custom-compile-fails
I'm still unable to boot from qspi. I addition to question about I've discovered, that it's necessary to add STM32MP_SPI_NAND=1 option to t-fa build command line
There are two issues:
1.If I add it to commend line as described in wiki I've got following compilation error while compiling TF-A for USB :
arm-ostl-linux-gnueabi-ld.bfd: BL2's RO content has exceeded its limit.
arm-ostl-linux-gnueabi-ld.bfd: section .data VMA [000000002fffa000,000000002fffa543] overlaps section ro VMA [000000002ffea000,000000002fffafff]
arm-ostl-linux-gnueabi-ld.bfd: region `ROM' overflowed by 5444 bytes
....
../Makefile.sdk:190: recipe for target 'tf-usb' failed
2.If I add it only for nand target all ok:
Makefile.sdk line 46:
# Init default config settings
TF_A_DEVICETREE_nand ?= stm32mp157c-ed1 stm32mp157f-ed1 stm32mp157a-ev1 stm32mp157c-ev1 stm32mp157d-ev1 stm32mp157f-ev1
TF_A_EXTRA_OPTFLAGS_nand ?= STM32MP_SPI_NAND=1 STM32MP_FORCE_MTD_START_OFFSET=0x00200000
# TF_A_EXTRA_OPTFLAGS_nand ?= STM32MP_RAW_NAND=1 STM32MP_FORCE_MTD_START_OFFSET=0x00200000
TF_A_BINARY_nand ?= tf-a
TF_A_MAKE_TARGET_nand ?= all
And I've regenerated UBI image to get it fitted to 128Mb flash
Not I've got following console output while trying to boot qspi:
Download done
STM32MP> NOTICE: CPU: STM32MP157DAB Rev.Z
NOTICE: Model: STMicroelectronics STM32MP157A-DK1 STM32CubeMX board
INFO: Reset reason (0x14):
INFO: Pad Reset from NRST
INFO: PMIC version = 0x21
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe3000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using SPI NAND
INFO: Instance 1
INFO: Boot used partition fsbl1
NOTICE: BL2: v2.4-r1.0(debug):
NOTICE: BL2: Built : 16:27:52, Jun 7 2021
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000Khz
WARNING: Couldn't find property st,phy-cal in dtb
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2: Loading image id 31
ERROR: mtd_add_extra_offset: Seek error -5
WARNING: Failed to access image id=0 (-5)
WARNING: Failed to obtain reference to image id=31 (-2)
ERROR: BL2: Failed to load image id 31 (-2)
If I specify both STM32MP_SPI_NAND=1 and STM32MP_RAW_NAND=1 I've got following error:
region `ROM'
arm-ostl-linux-gnueabi-ld.bfd: BL2's RO content has exceeded its limit.
arm-ostl-linux-gnueabi-ld.bfd: region `ROM' overflowed by 1248 bytes
....
../Makefile.sdk:190: recipe for target 'tf-nand' failed
Could you please give me steps to debug this issue?
@PatrickF @Community member
