Hi!
I am having trouble using the opteearmtz device in linux 4.4.0. When I try to access the device, I get the following error:
root@zynq7:~# cat /dev/opteearmtz00
Entry fast...
armv7sec armv7sec.0: shm ioremap failed
misc opteearmtz00: tee_get: opteearmtz00::start() failed, err=-12
cat: can't open '/dev/opteearmtz00': Cannot allocate memory
The address of the shared memory that it is trying to remap is properly read from OPTEE, and so is the size. I.e. they match the values specified in the OPTEE_OS build. So the interface to OPTEE and secure world is working. However, I suspect that the Linux ioremap command is failing because the shared memory is RAM and the ioremap method doesn't like that.
Is there a workaround for this issue?