Inquiry on GPU Driver Integration for Rock Pi 4B with OP-TEE
Opened this issue · 6 comments
Hi, I am a student researching TrustZone, with a keen interest in the integration of GPU functionality within TrustZone environments.
Previously, I followed the OP-TEE documentation to compile and flash the OP-TEE branch 4.3.0 project into the Rock Pi 4B, and I successfully got it running.
However, I noticed that the Linux kernel provided by OP-TEE does not include the GPU driver (Mali T860 Midgard) for the Rock Pi 4B, which prevents me from utilizing the GPU driver. Additionally, even if we manually port the Midgard driver into the Linux kernel, we encounter issues due to the kernel's newer version, which causes compilation errors for the Midgard driver.
We are considering the following approaches moving forward:
- Switch to the Linaro 4.14 version of the Linux kernel and manually add the Midgard driver.
- Use a pre-existing Linux kernel developed by others (rockchip-linux).
Here are some of our attempts for approach 1:
setting:
building result:
Thanks.
Perhaps it's easier to only use the kernel provided for the Rock Pi 4, it might just work.
Thank you for your replay.
Thank you for your reply. I was trying to replace the Linux kernel with the Rock Pi 4B-specific kernel from https://github.com/radxa/kernel/tree/stable-4.4-rockpi4, and I successfully built it.
Now, after booting up, I can see the message: "Welcome to Buildroot, type 'root' or 'test' to login."
However, it's unfortunate that I am seeing many "failed" messages in the kernel startup log.
I suspect this is because the DTS files in rockpi4's linux kernel do not set the information about TEE.
Could you please guide me on how to resolve this issue?
Thanks!
Please try to apply this patch linaro-swg/linux@d3269f7
Thanks you for your reply.
After adding the code, now I can run the optee_example_hello_world!!
By the way, why are there so many "failed" messages in the kernel startup log? I am worried that these logs might have a negative impact.
I guess you'll have them both with and without OP-TEE. Perhaps @radaxa can answer that.