How to change an XSPI Flash partition

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to change an XSPI Flash partition

815 次查看
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 项奖励
回复
3 回复数

809 次查看
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 项奖励
回复

801 次查看
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 项奖励
回复

796 次查看
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 项奖励
回复