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.
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
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.