it look like the issue is not in optee. because maaxboard-mini in same source code works well after enabling optee.
before 6,7 years ago, I ported by myself not avnet in sumo version. it worked well, but now, from avnet's sumo version to the latest version NOT work well, uboot with bdinfo always show the size is 3G -32M!!
I asked windsurf it seems I need to generate ddr4_timing.c!!!!!!
the high probability is in UBoot code, in uboot code, I used command: in uboot
fdt addr ${fdt_addr}
fdt print /memory
the memory size is correct, that means the maaxboard.dts in uboot is correct! I think the maaxboard.dts in kernel is correct too!
I think the nxp source code never correct, so avnet is not correct too, please debug it for me!
thank you so much.
but I do not know why my ported by myself sumo source was correct. because there was not avnet yocto source code at that time. I ported from the board imx8mq_evk! directly!!!!
I think I was the first one to use optee and yocto source code at time (I directly add kernel source code and uboot code and mkimage ... in yocto), it worked! well. but I need new kernel to support new type screen.
at my old yocto code I ported by myself. it supported X11, but correct the avent does not support x11, only weston! I do not why my code supports X11 too. it's funny. I do know why I made it work long time ago, but I can not fix it now! my skills become worse after more work experience. it's interesting.
if use the following tool, how to do? it is hard to use?
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8M-m850D-DDR-Register-Programming-Ai...
mscale_ddr_tool_v3.31_setup.exe.zip
MSCALE_DDR_Tool_User_Guide.pdf