AN15075 Patch can't be appliedThe relativly new user manual AN15075 metions the file 0001-add-AHAB-check-for-imx
remote-proc-process.patch
Which i found in the AN15075SW.zip.
This patch files applies the following 3 lines:
+#ifdef CONFIG_IMX_REMOTEPROC_AHAB
+#include
+#include
+#endif
to
drivers/remoteproc/imx_rproc.c from linux-imx
but tthe file linux/firmware/imx/se_fw_inc.h doesn't exist (anywhere on the internet)
And the file ele_base_msg is not placed at that location.
I am working on the linux-imx lf-6.18.y branch
https://github.com/nxp-imx/linux-imx/tree/lf-6.18.yI couldn't find it on the 6.6 or 6.12 either.
To what version of linux-imx should this patch be applied?
P.S. If you add the patch and disable
CONFIG_IMX_REMOTEPROC_AHAB
The linux-imx won't build either because some properties stopped existing because some of the code is guarded under a #ifdef but not all.
Re: AN15075 Patch can't be appliedThe patch we implemented at that time was merely a proof of concept, and the software team did not agree to merge it into the upstream repository.
So it's just a reference implementation.
The subsequent porting was not continued.
Re: AN15075 Patch can't be appliedIs there any change NXP will update the patch for Yocto Wrynose (with linux 6.18)?Re: AN15075 Patch can't be applied
- Apply AN15075SW’s kernel patch to lf-6.6.36-2.1.0 / BSP lf-6.6.36 .
$ git clone https://github.com/nxp-imx/linux-imx.git
$ git checkout -b lf-6.6.36-2.1.0 lf-6.6.36-2.1.0
- Do not expect it to apply cleanly to lf-6.18.y ; it must be forward-ported.
- If forward-porting, fix both the include paths and the Kconfig guards. Your PS is consistent with a partial guard bug: disabling CONFIG_IMX_REMOTEPROC_AHAB should leave the existing remoteproc path buildable, but the AN patch appears to leave some non-AHAB code dependent on definitions or fields introduced only inside #ifdef CONFIG_IMX_REMOTEPROC_AHAB .
Re: AN15075 Patch can't be appliedDid some more digging:
This patch seems to add these files: [PATCH v4 6/7] firmware: imx: add driver for NXP EdgeLock Enclave
But it was reapplied differently in this commit: LF-13910: firmware: imx: add driver for NXP EdgeLock Enclave · nxp-imx/linux-imx@0eff402
Re: AN15075 Patch can't be appliedIs modifying the remoteproc code to use the ELE firmware still the recommended approach to enable AHAB on the second core?
Re: AN15075 Patch can't be appliedYes.