processors: imx8mq evk
kernel: Linux version 4.14.98-07254-g0ff3e0a
Does the imx8m evk in android_p9.0.0_2.0.0-ga suport the optee on default ?
If the optee is on , how to disable it ?
because I config the DDR to 4GB, and the system server always crash when running.
The OPtee secutrity features is supported in i.MX8M and is implemented in Android, but not in common release. We do not have any public information on pricing we can share.
When you config the DDR to 4GB what error information meet?
The is the steps on the 4.19.35 configuration for 4GB LPDDR4 work on the i.MX8MQ, You can try to follow it to modify on your BSP version , if it not work you can use the newest BSP version.
On the imx_v2019.04_4.19.35_1.1.0 U-Boot there is a CONFIG_IMX8M_4G_LPDDR4 option that should be selected to suport 4GB operation.
The target that uses it is a imx8mm evk target, but the same idea can be applied to imx8mq.
1. In the defconfig file customer needs to select CONFIG_IMX8M_4G_LPDDR4
2. In include/configs/imx8mm_evk_android.h we have:
#define PHYS_SDRAM_SIZE 0xC0000000 /* 3GB */
#define PHYS_SDRAM_2 0x100000000
#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1GB */
#define CONFIG_NR_DRAM_BANKS 2
3. In the board file board/freescale/imx8mm_evk/imx8mm_evk.c:
Please check dram_init() and dram_init_banksize() as an example on how to use the full 4GB.
By following these 3 steps the customer will be able to use the full 4GB of RAM on their i.MX8MQ board.
Hope this can do help for you.
Have a nice day
Thanks for your reply, after I config the DDR to 4G, and the system_server was native crash when run monkey test script. But after I change back to 3GB ,the crash was disapeard. So, I think is the DDR's issue.
I also see other expert said in other case:
"TEE can't be set in the top of the memory if 4GB are used, because above 4GB space,
only A53 can use it, So for i.MX8MQ one can split 4GB memory as 3GB + 1GB and keep
TZ address not changed. Also recommended to use release L4.14.98_2.1.0 and later, which
has 4 GB support implemented by default."