-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working on iMX8QM, with caveats #10
Comments
We don't have an i.MX8 to test with, however we do have the reference manual for the i.MX7 which also uses You can try checking bits 9-8 which are the "Mode of Operation", mapped accordingly: 00b - Non-Secure |
@abarisani I should clarify that my problem is that I can't figure out how to successfully ioremap the CAAM_CSTA register in order to access it. I'm admittedly not well-versed in kernel driver development, but adapting the existing code which reads the SNVS register didn't work for me. Its highly likely that I have the register addressing wrong. Its also possible the 64-bit capability of the A53 core means I can't adapt the existing code. Unfortunately I only had so much time to devote to this, and without reading the SSM state the module works well enough for our application. |
Understood. I will keep this issue open as long as we cannot find a way to fix this, which dev board are you using, can you share your modifications to help us in supporting you on this? Thanks. |
@cquartier for the i.MX8 I used successfully the following code from NXP : https://source.codeaurora.org/external/imxsupport/imx_sec_apps/tree/demo-caam-blobs |
@embexus Can that be integrated in the current project? It would be wonderfully if it also could support the different iMX8 boards. |
I've seen in the past that others have asked for imx8 support, and I was able to get this module working on the imx8qm mek dev kit, but I was unable to figure out how to properly get the SSM status. As that feature only alerts the user I found it fine to just remove that section altogether:
The
CAAM_CSTA
register holds the SSM state, at least in parts with a SECO, and I know that the caam driver in the kernel reads this register, but I was unable to figure out how to properly read it from this module. Unfortunately the CAAM register map lives in the Security Reference Manual for the imx8, which I believe you need a signed NDA with NXP to access.Also of note were changes to the Makefile and the caam_tool.go file. I built this as part of a yocto project so I don't feel my Makefile changes are portable enough for this repo.
Also because the imx8qm is a 64-bit part, the ioctl constants changed for the caam_tool to:
I didn't feel comfortable presenting my changes as a pull request because I didn't feel I made them portable enough, nor did I know if they broke support for the imx6/7 parts this was known to work for. I'm making this issue in hopes that it helps others that may be looking to use this on imx8 parts.
The text was updated successfully, but these errors were encountered: