aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Kung <kong1191@gmail.com>2015-01-08 14:36:07 +0800
committerJames Kung <kong1191@gmail.com>2015-01-08 14:36:07 +0800
commitace7ec696e3f6709902ac05c5523ab60ba00ecd6 (patch)
tree9da0d3983d3b9f5ef90a2608a760e4b075ea3e54
parentb41d0f8851d235a5b581f415d5de8ab627f25f69 (diff)
Update README.md
Add FVP setup part
-rw-r--r--README.md41
1 files changed, 39 insertions, 2 deletions
diff --git a/README.md b/README.md
index fb0a321..49482a2 100644
--- a/README.md
+++ b/README.md
@@ -3,12 +3,12 @@ Simple client and simple TA for OP-TEE benchmark
This simple host/trusted application serves the purpose of measuring the performance of OP-TEE. They are based on the customized [optee_linuxdriver](https://github.com/kong1191/optee_linuxdriver) and [optee_os](https://github.com/kong1191/optee_os).
-Building and running the applications
+Building and running the applications on QEMU
---
#### Building
Easiest way to test this is to run the script [setup_qemu_optee.sh](https://github.com/kong1191/optee_benchmark/blob/master/script/setup_qemu_optee.sh). This script will setup the complete environment needed to run OP-TEE on QEMU.
-In this git (optee_benchmark.git), there is the script [build_app.sh](build_app.sh) which we recommend that you use when build, since that sets the needed flags and points to the correct folders. You can of course call make directly on the commandline, but you will have to point out all the other things mentioned in "build_app.sh" in any case. When this has been setup, you should be able to build the applications.
+After finish executing setup_qemu_optee.sh, there is the script [build_app.sh](build_app.sh) which we recommend that you use when build, since that sets the needed flags and points to the correct folders. You can of course call make directly on the commandline, but you will have to point out all the other things mentioned in "build_app.sh" in any case. When this has been setup, you should be able to build the applications.
Next step is to get the newly built applications into the filesystem that is used when booting QEMU. To do this you need to edit the file ```gen_rootfs/filelist-tee.txt``adding lines telling where to find and where to store the test binary and the Trusted Application, like this:
@@ -41,3 +41,40 @@ When that has been done and the files has been saved, you need to regenerate the
$ simple_client
```
+Building and running the applications on FVP
+---
+#### Building
+Easiest way to test this is to run the script [setup_fvp_optee.sh](https://github.com/kong1191/optee_benchmark/blob/master/script/setup_fvp_optee.sh). This script will setup the complete environment needed to run OP-TEE on FVP.
+
+After finishing executing setup_fvp_optee.sh, there is the script [build_app.sh](build_app.sh) which we recommend that you use when build, since that sets the needed flags and points to the correct folders. You can of course call make directly on the commandline, but you will have to point out all the other things mentioned in "build_app.sh" in any case. When this has been setup, you should be able to build the applications.
+
+Next step is to get the newly built applications into the filesystem that is used when booting FVP. To do this you need to edit the file ```gen_rootfs/filelist-tee.txt``adding lines telling where to find and where to store the test binary and the Trusted Application, like this:
+
+```
+# TA's
+....
+file /lib/teetz/99e937a0-8f3e-11e4-8b8f0002a5d5c51b.ta /home/johndoe/devel/fvp_optee_benchmark/optee_benchmark/ta/out-client-aarch64/99e937a0-8f3e-11e4-8b8f0002a5d5c51b.ta 444 0 0
+
+# OP-TEE Tests
+...
+file /bin/simple_client /home/johndoe/devel/fvp_optee_benchmark/optee_benchmark/host/simple_client 755 0 0
+```
+
+When that has been done and the files has been saved, you need to regenerate the filesystem. That could be done by running the script ```build_secure.sh``` and ```build_normal.sh```. For you who wonder about the strange name of the Trusted Application, we can mention that this is coming from the UUID for the particular Trusted Application.
+
+#### Running
+
+1. Open console and start booting up FVP by running ```run_foundation.sh``` and wait until you have a shell prompt.
+
+2. Load the kernel module for OP-TEE and launch tee-supplicant, by typing:
+
+ ```
+ $ modprobe optee
+ $ tee-supplicant &
+ ```
+3. Launch the test (and thereby the TA), by typing:
+
+ ```
+ $ simple_client
+ ```
+