Build and Flash Trusty on the TX2

Hi,

I would like to know whether it’s possible to rebuild and flash Trusty on the TX2. Our goal is to
build trusted applications and have them run within TrustZone’s secure world. The only reliable
source of information (about implementing trusted applications for Trusty) I have found is the
following webpage, according to which I must create the trusted app in Trusty’s source code
hierarchy and rebuild Trusty:

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-322/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Ftrusty.html%23wwpID0E0KD0HA

I have therefore downloaded and rebuilt trusty after following instructions here:

https://source.android.com/security/trusty/download-and-build

The webpage says ‘You can assemble lk.bin into a firmware image and flash it to the device’. How
should I do this for TX2? How can I flash a custom built Trusty?

I have followed the L4T quick start guide, and successfully flashed L4T on the TX2:

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-322/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fquick_start.html%23

Kindly let me know how I can flash only Trusty.

Thank you,
Abhishek.

hello abhishek.vijeev,

you might download L4T Sources and un-tar the trusty_src.tbz2 package.
please check atf_and_trusty_README.txt for the steps to build and verify ATF and Trusty.
thanks

Thank you very much.