Skip to content

opteearmtz00 device tries to ioremap RAM and Linux doesn't like it #51

@dsblue

Description

@dsblue

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions