AnsweredAssumed Answered

Question about optee.

Question asked by cnspring 2002 on May 23, 2020
Latest reply on May 24, 2020 by igorpadykov

Hi, Experts,


I have some questions related to optee on, please help, thanks!


Question 1. For imx6, I saw this: How to use OP-TEE with Freescale i.MX6Q SDB? | りかぶ 


When it trans tee.bin to uTee, it used next:


$ mkimage -A arm -O linux -C none -a 0x4dffffe4 -e 0x4e000000 -d tee.bin uTee


I wonder how we could get "0x4e000000" here? And why "0x4dffffe4" is just 28 bytes less than "0x4e000000"? Any guide I could reference? If I switch to other imx6/7 platform, what's the value could be?


Question 2. Usually, I could use next to download optee in uboot:

tftp 0x12000000 zImage         : – zImage will be loaded to 0x12000000

tftp 0x20000000 uTee   :- uTee will be loaded to 0x20000000


The uTee could finally find zImage at 0x12000000 just because next? Where we specifiy 0x12000000 when build tee.bin?

$ CROSS_COMPILE=arm-linux-gnueabihf- make PLATFORM=imx-mx6qsabresd


        CFG_NS_ENTRY_ADDR=0x12000000 CFG_DT_ADDR=0x18000000 


But strangely, when I use "tftp 0x13000000 zImage", it also could boot, why?


Question 3. For imx8, I didn't see something like next, where optee now in imx8? It include in image or anything else?

tftp 0x20000000 uTee   :- uTee will be loaded to 0x20000000


I'm new to optee & platform, please give me some guide, thanks.