Open fabioestevam opened 1 month ago
Ping other NXP platform maintainers @MrVan @pangupta @madhukar-Arm (Arm platform liaison)
Based on this patch from @JackyBai , this platform build is broken from a long time. https://review.trustedfirmware.org/c/ci/tf-a-ci-scripts/+/10229
@madhukar-Arm @JackyBai
Doesn't NXP have an interest in maintaining i.MX8MQ TF-A support any longer?
If so, please fix it.
Otherwise, remove i.MX8MQ support.
Hi Fabio,
i.MX8MQ still need to be supported, but due to the too small OCRAM limitation, it can not be build successfully with mainline TF-A for now. if we want to make it build with some features dropped, I can workout a patch to fix it.
For this SoC, suggested to use the NXP release as in NXP yocto release, we add some special hack to make it work with no feature dropped.
I gave a quick try and it seems the platform has deviated a bit more than just the RAM issue:
make CROSS_COMPILE=aarch64-none-elf- PLAT=imx8mq
plat/imx/common/imx_sip_svc.c: In function 'imx_sip_handler': plat/imx/common/imx_sip_svc.c:86:34: error: implicit declaration of function 'imx_hab_handler'; did you mean 'imx_sip_handler'? [-Werror=implicit-function-declaration] 86 | SMC_RET1(handle, imx_hab_handler(smc_fid, x1, x2, x3, x4)); | ^
~~~~~~ include/lib/el3_runtime/aarch64/context.h:237:56: note: in definition of macro 'write_ctx_reg' 237 | = (uint64_t) (val)) | ^~~ plat/imx/common/imx_sip_svc.c:86:17: note: in expansion of macro 'SMC_RET1' 86 | SMC_RET1(handle, imx_hab_handler(smc_fid, x1, x2, x3, x4)); | ^~~~ cc1: all warnings being treated as errors
Beyond the above, would it be possible to pass platform options such that the platform can at least build in the CI even if those options do not reflect a real world usage?
Hi Jacky,
Hi Fabio,
i.MX8MQ still need to be supported, but due to the too small OCRAM limitation, it can not be build successfully with mainline TF-A for now. if we want to make it build with some features dropped, I can workout a patch to fix it.
Please submit a patch so TF-A mainline can build and work on i.MX8MQ.
For this SoC, suggested to use the NXP release as in NXP yocto release, we add some special hack to make it work with no feature dropped.
The latest NXP TF-A also fails.
Please see this report: https://github.com/Freescale/meta-freescale/issues/1937
Since commit dd108c3c1fe3f958a38ae255e57b41e5453d077f
It is no longer possible to build TF-A for imx8mq because the internal RAM size overflowed:
@JackyBai please take a look.
v2.8 builds fine on imx8mq. v2.9 to v2.11 fails to build.