Writing a Kernel module in RICH OS in order to communicate with the Truszone (Optee os)

HI Everyone,

I am a noob with OPTEE OS and i need some help to understand how writing a kernel module in RICH OS which communicates with a Trusted Application in the TrustZone (if it is possible).

At fthe beginning a basic example is enough. For instance by starting from https://github.com/linaro-swg/optee_examples/tree/master/hello_world  how can i implement the host part of the hello_world example in a kernel module which is running on the RICH OS ? If i could understand that then i will do my own.

I am working on ARM 32 bit.

Thank you.