Recently,I use layerscape compile ppa-optee for device ls1012a-frdm,while have touble that lsdk1806 only supoort ls1012ardb、ls1012afrwy、ls1043rdb、ls1046rdb,someone who has experience with add new device for optee-os,because i find ppa supportting wtih ls1012afrdm
thanks
Hello 穆 昆空,
FRDM-LS1012A DRAM start address is 0x8000_0000, size is 446M(0x1BE00000).
In the file core/arch/arm/plat-ls/platform_config.h, please add the following definition.
#if defined(PLATFORM_FLAVOR_ls1012afrdm)
#define DRAM0_SIZE 0x1BE00000
#define CFG_DDR_TEETZ_RESERVED_START 0x97E00000
#define CFG_DDR_TEETZ_RESERVED_SIZE 0x04000000
#define CFG_TEE_RAM_VA_SIZE (2 * 1024 * 1024)
#define CFG_PUB_RAM_SIZE (2 * 1024 * 1024)
#define CFG_TEE_CORE_NB_CORE 1
#endif
Please modify the file core/arch/arm/plat-ls/conf.mk to add the following.
ifeq ($(PLATFORM_FLAVOR), ls1012afrdm)
CFG_HW_UNQ_KEY_REQUEST ?=y
include core/arch/arm/cpu/cortex-armv8-0.mk
endif
Thanks,
Yiping