How to change an XSPI Flash partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change an XSPI Flash partition

622 Views
muaxi8
Contributor V

LX2080a custom board,  xspi flash is 512MB。

LSDK User Guide datasheet have a Unified 64MiB memory layout of XSPI media,but my flash space is larger than 64MB, How do I change the default partition, Or where is the default partition code.

muaxi8_0-1627609634222.png

 

0 Kudos
Reply
3 Replies

616 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please modify the following section in include/configs/lx2160a_common.h in u-boot source code.

/* FlexSPI */
#ifdef CONFIG_NXP_FSPI
#define NXP_FSPI_FLASH_SIZE SZ_64M
#define NXP_FSPI_FLASH_NUM 1
#endif

Please refer to memory layout definition in flexbuild_lsdk2012/configs/board/common/memorylayout.cfg

0 Kudos
Reply

608 Views
muaxi8
Contributor V

the memory layout is how to implemented ?  does it is implemented with hardware or software?

What should I do if I want to modify the partition

0 Kudos
Reply

603 Views
yipingwang
NXP TechSupport
NXP TechSupport

The whole firmware image is generated based on the memory layout. It's is implemented with software.

It's not recommended to modify firmware addresses in this memory layout, because they are defined in u-boot source code.

For example,

DPAA1 FMAN ucode

It is defined as CONFIG_SYS_FMAN_FW_ADDR in include/configs/ls1046a_common.h in u-boot source code.

 

0 Kudos
Reply