I am unable to see TEE logs in dmesg even after increasing the loglevel with
CFG_TEE_CORE_LOG_LEVEL=4
CFG_TEE_TA_LOG_LEVEL = 4
Could please let me know, where am i missing.
If you configure the following settings, you will get OPTEE related information in atf(u-boot) log.
CFG_TEE_CORE_LOG_LEVEL=4
CFG_TEE_TA_LOG_LEVEL = 4
If no, it seems that you didn't build atf image with optee enabled.
You need to build atf images with option "SPD=opteed BL32=<optee_binary>" enabled.
In addition, you need to perform TA operation, then you will get related log in dmesg.
I usually set the above two configurations, and when U-boot starts, I can see the Optee message.
First, confirm if the message can be seen in u-boot(atf) console log.
$ bitbake optee-os -c cleansstate
$ bitbake imx-atf -c cleansstate
$ bitbake imx-boot -c cleansstate
$ bitbake optee-os -c patch
Go to folder build-xwayland/tmp/work/imx8mpevk-poky-linux/optee-os/4.6.0.imx/git, please modify mk/config.mk according to your debug level setting.
$ bitbake optee-os
$ bitbake imx-atf
$ bitbake imx-boot
Then check optee message in your Kernel console log.
i have made the changes in mk/config.mk
I am not using yacto recipe for hartos compilation. Instead i use following commands to generate hartos image.
echo "<------------Building Hartos-------------------->"
echo "<============Exporting Toolchain Path and setting enviornment Variable=============>"
export CROSS_COMPILE=arm-elina-linux-gnueabi-
export ARCH=arm
export PLATFORM=imx
export COMPILE_NS_USER=32
LDFLAGS=
echo "<==========Compiling Hartos ==========>"
make clean
make all
after flashing the hartos image. i dont see any TA applicatoin logs in dmesg.
do you any suggestions on this?
Did you build ATF image with optee enabled?
Please check Linux Kernel dmesg information, can you get "optee" related information?
Did you build ATF image with optee enabled?
Yes
Please check Linux Kernel dmesg information, can you get "optee" related information?