I have a Jetson Xavier NX board, and I followed the quick-start guide given in the documentation to install whatever I was supposed to. Now I have a Linux terminal, which I believe is Ubuntu 18.04. My output of “uname -a” is
Linux xavier 4.9.253-tegra #1 SMP PREEMPT Mon Jul 26 12:19:28 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux
Now, I want to build a Trusted Application on this using Trusty. (I am running all this on the Xavier board)
I downloaded L4T Driver Package (BSP) Sources from here - https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/sources/t186/public_sources.tbz2 - and unzipped it.
Inside that, I found trusty_src.tbz2 and unzipped it to find a bunch of folders. I went to nvidia-sample/hwkey-agent to find a bunch of files. I then went to CA_Sample in the same folder and ran “make” to get a binary in /out. Then as the README mentioned, I tried to generate a random number and I was successfully able to.
Now, my question is this - how do I make a modification to this hwkey-agent app? As I understand, the CA_Sample folder contains the files for the client application and rest of the files belong to the TA (i.e in the case of hwkey-agent, rng_srv.c, ipc.c and so on.)
I made a modification to the rng_srv.c where I added a line printing “Hello World!”. How do I compile and run this so that this “Hello World” also gets printed?
I found a text file by the name “atf_and_trusty_README.txt”, but that, I think, is to build on a different machine such a laptop running Linux, so I am not sure how that is helpful when we are building apps on the Xavier board itself.
I also saw this link - generic-no-api_r2 - and here on Step 6, it says that I need to. “Rebuild Trusty” but how do I do this? I couldn’t understand that part.
Any help would be really appreciated.