trust-zone

How to emulate TrustZone in QEMU?

 ̄綄美尐妖づ 提交于 2019-12-05 08:34:00
I'm trying to emulate TrustZone features in Qemu. I've found two links that seems explain this process. The First Reference doesn't attach the image kernel that supports TrustZone (where can I find it?) The Second Reference explains how can I compile a kernel but it doesn't start with the command line written in the first website which is as follows ./arm-softmmu/qemu-system-arm -kernel $PATH_TO_KERNEL/zImage -M vexpress-a15 -cpu cortex-a15 -dtb PATH_TO_DTB/vexpress-v2p-ca15-tc1.dtb -m 1024 -append 'console=ttyAMA0,38400n8' -serial stdio -initrd $PATH_TO_INITRD/initrd.img Is there an alternate

Running ARM TrustZone Secure/Normal world"example on the ZedBoard

流过昼夜 提交于 2019-12-05 03:26:00
问题 Does anyone know how to implement the example of TrustZone running "Secure world" and "Normal world" given on the ARM documentation website below on the ZedBoard? Any documentation on this subject (running TrustZone on the ZedBoard) would be also helpful. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15417.html The ZedBoard has a Xilinx : Zynq® -7000 All Programmable SoC Dual ARM® Cortex™-A9 MPCore™. More information on the ZedBoard can be found here: http://www.zedboard

Use ARM TrustZone to prevent access to memory region from Non-Secure world

浪子不回头ぞ 提交于 2019-12-04 11:26:22
Context I want to have a rich GNU/Linux OS running in the Normal world and a small OS with an integrated Monitor running in the Secure world . Requirement We have to absolutely avoid the Normal world to access the Secure world memory region. Question Which feature(s) of TrustZone do we need to use/activate to fulfill this requirement? I'd like to use only the necessary features to minimize the work needed. Details I've read quite a lot of ARM TrustZone documentation, I'm aware of TZPC , TZASC , MMU with security extensions, but I can't figure out how to avoid the following threat: What would

Running ARM TrustZone Secure/Normal world\"example on the ZedBoard

只谈情不闲聊 提交于 2019-12-03 17:20:38
Does anyone know how to implement the example of TrustZone running "Secure world" and "Normal world" given on the ARM documentation website below on the ZedBoard? Any documentation on this subject (running TrustZone on the ZedBoard) would be also helpful. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15417.html The ZedBoard has a Xilinx : Zynq® -7000 All Programmable SoC Dual ARM® Cortex™-A9 MPCore™. More information on the ZedBoard can be found here: http://www.zedboard.org/content/overview This is a broad topic. Hopefully some of the following information will help.

ARM TrustZone development

时光总嘲笑我的痴心妄想 提交于 2019-12-03 08:26:32
问题 I am wondering if anyone have any information on development boards where you can utilize ARM TrustZone? I have the BeagleBoard XM which uses TI's OMAP3530 with Cortex-A8 processor that supports trust zone, however TI confirmed that they have disabled the function on the board as it is a general purpose device. Further research got me to the panda board which uses OMAP4430 but there is no response from TI and very little information on the internet. How do you learn how to use trust zone?

ARM TrustZone development

雨燕双飞 提交于 2019-12-02 21:04:46
I am wondering if anyone have any information on development boards where you can utilize ARM TrustZone? I have the BeagleBoard XM which uses TI's OMAP3530 with Cortex-A8 processor that supports trust zone, however TI confirmed that they have disabled the function on the board as it is a general purpose device. Further research got me to the panda board which uses OMAP4430 but there is no response from TI and very little information on the internet. How do you learn how to use trust zone? Best Regards Mr Gigu As far as I know, all the OMAP processors you can get off-the-shelf are GP devices, i

Svc handler to SMC call

怎甘沉沦 提交于 2019-11-30 16:04:47
问题 how to write an svc handler in C to call SMC(monitor mode) instruction to switch to monitor mode for arm cortex a9? i.e from supervisor mode to monitor mode what all needs to be done in svc handler,how to write the same in C. Detailed answers appreciated... 回答1: Examples can be found in the Linux source tree for the OMAP2 platform. omap-smc.S omap-secure.h omap-secure.c See also: LWN's KS2012: ARM: Secure monitor API Kernel summit 2012 notes on ARM SMC modes. Basically, what ever interface

ARM TrustZone - Behaviour of the scheduler in Secure and Non-Secure OS

删除回忆录丶 提交于 2019-11-29 12:23:26
Can some one please explain to me that after the CPU is taken to secured mode, (Monitor program sets the NS = 0 ), how does the secure OS gets scheduled? Is it that now that the CPU is in secured mode, the timer tick interrupt would be handled by the Secured OS and not the Non-Secured world? artless noise The monitor mode setting NS=0 will set CP15 registers visible from monitor mode. See: monitor mode IFAR/IFSR... . When the monitor mode switches to another mode and NS=0 , then the mode is the secure world version; meaning the banked CP15 registers are the secure version. Also the NS bit is

Develop programs for Arm trust zone

不羁岁月 提交于 2019-11-28 20:55:14
How can I develop applications that use Arm's trust zone? Specifically, I want to develop a program that can save sensitive data in the secure world. Should this program run in the normal world or the secure world? I know there are trustlets in the secure world, do I need to develop trustlets? Are there SDK or API that I can use to directly interact with an existing secure world os or do I need to compile and install my own secure os? Any advice will be greatly appreciated. Thank you! artless noise There are two extremes. These are documented in the Software overview chapter of ARMs Security

What is partition checker in ARM Secure Mode

喜欢而已 提交于 2019-11-28 12:43:24
As per this link http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0333h/Chdfjdgi.html under System boot sequence ... Program the partition checker to allocate physical memory available to the Non-secure OS. What is the partition checker? Is it a subsystem which has registers, what is its programming model ? artless noise What is the partition checker? It is outside of the TrustZone specification for the CPU. However, in a nut shell it partitions or divided memory spaces into different permitted accesses. If the access is not permitted, it throws an external BUS error . Is it a