Discussion:
Query regarding Genode trustzone
Abhishek Kumar
2017-05-30 08:46:07 UTC
Permalink
Hello
I am trying to run genode's trustzone on imx53 board. AFAIU, it starts with
"init" which then sets up `vmm` and calls `vmm.start()`, which should load
my kernel in normal world. And kernel in normal world uses vmm as proxy to
talk to the secure world. Am I correct? If so, where can I find the piece
of code which tries to load the normal world linux, like some stub or
something.

For normal world linux I;m using uImage of skalk's linux
<https://github.com/skalk/linux>.

Thanks
Abhishek
Stefan Kalkowski
2017-05-31 10:50:01 UTC
Permalink
Hello,
Post by Abhishek Kumar
Hello
I am trying to run genode's trustzone on imx53 board. AFAIU, it starts
with "init" which then sets up `vmm` and calls `vmm.start()`, which
should load my kernel in normal world. And kernel in normal world uses
vmm as proxy to talk to the secure world. Am I correct? If so, where can
I find the piece of code which tries to load the normal world linux,
like some stub or something.
Yes, you are right: the component called 'tz_vmm' loads the linux kernel
running in the so called normal world. And exactly that component
comprises the code you are asking for. It is part of the Genode OS
framework within the 'os' repository. Please have a look here:


https://github.com/genodelabs/genode/tree/master/repos/os/src/server/tz_vmm

The actual kernel loading is just a memcpy to the right place in memory,
have a look here:


https://github.com/genodelabs/genode/blob/master/repos/os/src/server/tz_vmm/vm_base.cc#L25

Regards
Stefan
Post by Abhishek Kumar
For normal world linux I;m using uImage of skalk's linux
<https://github.com/skalk/linux>.
Thanks
Abhishek
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
https://lists.sourceforge.net/lists/listinfo/genode-main
--
Stefan Kalkowski
Genode Labs

https://github.com/skalk ยท http://genode.org/
Loading...