cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP135 TF-A SLC_NAND

Yxinc.1
Associate

My hardware:

STM32MP135FAE SLC NAND(MT29F4G08ABAF):256MB page:4K block:256K

excuse me,How to configure makefile.sdk when compiling TF-A?

​Here's what I tried:

# Init default config settings

TF_A_DEVICETREE_nand ?= stm32mp135f-dk

TF_A_EXTRA_OPTFLAGS_nand ?= STM32MP_RAW_NAND=1 PSA_FWU_SUPPORT=1 STM32MP_FORCE_MTD_START_OFFSET=0x00200000

TF_A_BINARY_nand ?= tf-a

TF_A_MAKE_TARGET_nand ?= all

-----------------------------------------------------------------​

FlashLayout_sdcard_stm32mp135f-dk-optee.tsv

#Opt Id Name Type IP Offset Binary

- 0x01 fsbl-boot Binary none 0x0 tf-a-stm32mp135f-dk-usb.stm32

- 0x03 fip-boot FIP none 0x0 fip-stm32mp135f-dk-optee.bin

P 0x04 fsbl Binary nand0 0x00000000 tf-a-stm32mp135f-dk-nand.stm32

P 0x05 fsbl Binary nand0 0x00080000 tf-a-stm32mp135f-dk-nand.stm32

PE 0x06 metadata1 Binary nand0 0x00100000 metadate.bin

PE 0x07 metadata2 Binary nand0 0x00180000 metadate.bin

PE 0x08 fip-a1 FIP nand0 0x00200000

PE 0x09 fip-a2 FIP nand0 0x00600000

PE 0x0A fip-b1 FIP nand0 0x00a00000

PE 0x0B fip-ab2 FIP nand0 0x00e00000

PE 0x10 UBI System nand0 0x01200000

-----------------------------------------------------------------------------------

When I download to nand and BOOT was configured (b0:1 b1:1 b2:0), the FA-T could not be started and there was no output from the serial port. What I refer to is mp157,I think what details are not paid attention to,The MP135 might be a little differen, leading to abnormal startup

1 REPLY 1
Yxinc.1
Associate

I have tried:

uboot.dts

nand-ecc-strength = <1>;

nand-ecc-step-size = <512>; 

or

nand-ecc-strength = <4>;

nand-ecc-step-size = <512>; 

and

nand-ecc-strength = <8>;

nand-ecc-step-size = <512>; 

None of this will solve the problem