aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-06-29 17:13:53 +0800
committerJoakim Bech <joakim.bech@linaro.org>2016-07-04 15:17:39 +0200
commitf27b758c4172fbd782a220a16564e93150019183 (patch)
tree1fbf631863d59013adf46f402048ab68c51d843b /README.md
parent84cf14c97ba77d8fd5dc93822af302f297e03f24 (diff)
Update README for i.MX6UL EVK
Signed-off-by: Peng Fan <van.freenix@gmail.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'README.md')
-rw-r--r--README.md52
1 files changed, 51 insertions, 1 deletions
diff --git a/README.md b/README.md
index 54e76f0f..c651d88a 100644
--- a/README.md
+++ b/README.md
@@ -294,12 +294,60 @@ $ /system/bin/tee-helloworld
---
### 4.6 Freescale MX6UL EVK
-Build:
+
+Get U-Boot source:
+https://github.com/MrVan/uboot/commit/4f016adae573aaadd7bf6a37f8c58a882b391ae6
+
+Build U-Boot:
+```
+ make ARCH=arm mx6ul_14x14_evk_optee_defconfig
+ make ARCH=arm
+ Burn u-boot.imx to offset 0x400 of SD card
+```
+
+Get Kernel source: https://github.com/linaro-swg/linux/tree/optee
+
+Patch kernel:
+```c
+ diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+ index 6aaa5ec..2ac9c80 100644
+ --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+ +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+ @@ -23,6 +23,13 @@
+ reg = <0x80000000 0x20000000>;
+ };
+
+ + firmware {
+ + optee {
+ + compatible = "linaro,optee-tz";
+ + method = "smc";
+ + };
+ + };
+ +
+ regulators {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+```
+
+Compile the Kernel:
+
+```
+make ARCH=arm imx_v6_v7_defconfig
+make menuconfig
+select the two entries
+ CONFIG_TEE=y
+ CONFIG_OPTEE
+make ARCH=arm
+```
+Copy zImage and imx6ul_14x14_evk.dtb to SD card.
+
+OPTEE OS Build:
```
PLATFORM_FLAVOR=mx6ulevk make PLATFORM=imx
${CROSS_COMPILE}-objcopy -O binary out/arm-plat-imx/core/tee.elf optee.bin
copy optee.bin to the first partition of SD card which is used for boot.
```
+
Run using U-Boot:
```
run loadfdt;
@@ -312,6 +360,8 @@ Run using U-Boot:
Note:
CAAM is not implemented now, this will be added later.
+More steps: http://mrvan.github.io/optee-imx6ul
+
---
## 5. repo manifests