Hi @hankwang,
here is a patch containing changes needed to run 8MP EVK with 4GB DDR, except the LPDDR4 timing file, for BSP-1.4.1. As you probably have more changes due to your customer design, you can apply them by hand, there are only 3 number changed in two file.
To be sure that your timing file is used during build, please remove all other timing files from folder.
The 2GB patch needs more changes at GPU Reserved memory and Trust zone memory needs to be moved below 2GB. But for 4GB it can stay where it is for EVK with 6GB, as it sits before the end of 3rd gigabyte. GPU can only address 4GB (32bit address) and because of that it cannot be allocated on higher addresses.
# +-------------------+===> (0xF2000000) PcdArmGPUReservedMemoryBase
# | GPU Reserved | ^
# | Memory | | (0x0C000000) PcdArmGPUReservedMemorySize
# | | v
# +-------------------+===> (0xFE000000) PcdTrustZonePrivateMemoryBase (OPTEE image base address)
# | TZ Private Memory | ^
# | (OPTEE) | | (0x01E00000) PcdTrustZonePrivateMemorySize 30MB
# | | v
# +-------------------+===> (0xFFE00000) PcdTrustZoneSharedMemoryBase (includes mobj bookkeeping page)
# | TZ Shared Memory | ^
# | | | (0x00200000) PcdTrustZoneSharedMemorySize 2MB
# | | v
# +-------------------|===>
Best Regards, Jakub