The Trusty repositories are available in the Android Open Source Project (AOSP).
Use these links to find the appropriate Trusty kernel branches in AOSP:
To download Trusty, first download and install Repo.
After Repo has been successfully installed you can clone the Android Trusty repository.
repo init -u https://android.googlesource.com/trusty/manifest -b master
repo sync -j32
Use the following to build the generic arm64 image for Trusty.
Build results will be under
Look for lk.bin which is a TEE image with all apps compiled in:
You can assemble lk.bin into a firmware image and flash it to the device. Generating firmware images varies depending on the board being used. Contact your board manufacturer for instructions.