processors: imx8mq evk
android: 9.0
kernel: Linux version 4.14.98-07254-g0ff3e0a
baseline: p9.0.0_2.0.0-ga
Hi,
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?
I think I config the 4GB DDR is correct, and after change to 4GB, it can boot normally, just have native crash problems.
Please refer to :
Hi Zhulin,
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
See configs/imx8mm_evk_4g_android_defconfig:
CONFIG_IMX8M_4G_LPDDR4=y
2. In include/configs/imx8mm_evk_android.h we have:
#ifdef CONFIG_IMX8M_4G_LPDDR4
#undef PHYS_SDRAM_SIZE
#define PHYS_SDRAM_SIZE 0xC0000000 /* 3GB */
#define PHYS_SDRAM_2 0x100000000
#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1GB */
#undef CONFIG_NR_DRAM_BANKS
#define CONFIG_NR_DRAM_BANKS 2
#endif
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
Best Regards
Rita
Hello Rita,
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."
in
https://community.nxp.com/message/1291371?commentID=1291371#comment-1291371