Jetson won't boot after update TOS image

@JerryChang ,

Thanks for your reply.

I tested it. The output seems to be like the one above:
ERR [4243] TEES:main:905: failed to find an OP-TEE supplicant device.

Did you find any insight on the internal thread for tracking?

Best,

hello jdiegodelgado,

this still look like a permission issue since the optee kernel driver is up and “/dev/teepriv0” exists.
the error reported means tee-supplicant cannot open the file.
please examine the permission of the device file, $ ls -la /dev/teepriv0

@JerryChang ,

Permissions:

nvidia@tegra-ubuntu:~$ ls -la /dev/teepriv0
crw------- 1 root root 243, 16 Apr 11 20:31 /dev/teepriv0

Best,

hello jdiegodelgado,

can it works by chmod to 664 or 644?

Hi @JerryChang ,

Changed the permissions for the one that you suggested, but problem persists.

$ ls -la /dev/teepriv0
crw-rw-r-- 1 root root 243, 16 Sep  8  2022 /dev/teepriv0
$ sudo tee-supplicant
ERR [8652] TEES:main:905: failed to find an OP-TEE supplicant device

Best,

hello jdiegodelgado,

oh… had you update tee-supplicant , or you’re using the default app under rootfs for verification?
please refer to atf_and_optee_README.txt for step-3. within [Verifying the Image] section.
this means all the user-space files under /install should copy to your target.

  1. Copy all the files under ./optee/install/t<platform> to the target.

furthermore, please share all steps in details if you still cannot resolve this issue.
for example,
the command to build the OP-TEE source package, OP-TEE dtb, ATF source code…etc, and, you should generate the tos.img with python script.
what exactly binaries you’ve replace with. finally, the steps you’ve done to flash the target.

Hi @JerryChang ,

This time I did not use a custom approach. I’m using the default app that comes with JetPack 5.1

Best,

however, $ sudo xtest is able to run with the native JetPack release, I’ve tested locally.

I reflashed everything and now it seems to work. Is this output normal?

$sudo xtest

Run test suite with level=0

TEE test application started over default TEE instance
######################################################
#
# regression+pkcs11
#
######################################################
 
* regression_1001 Core self tests
 - 1001 -   skip test, pseudo TA not found
  regression_1001 OK
 
* regression_1002 PTA parameters
 - 1002 -   skip test, pseudo TA not found
  regression_1002 OK
 
* regression_1003 Core internal read/write mutex
 - 1003 -   skip test, pseudo TA not found
  regression_1003 OK
 
* regression_1004 Test User Crypt TA
o regression_1004.1 AES encrypt
  regression_1004.1 OK
o regression_1004.2 AES decrypt
  regression_1004.2 OK
o regression_1004.3 SHA-256 test, 3 bytes input
  regression_1004.3 OK
o regression_1004.4 AES-256 ECB encrypt (32B, fixed key)
  regression_1004.4 OK
o regression_1004.5 AES-256 ECB decrypt (32B, fixed key)
  regression_1004.5 OK
  regression_1004 OK
 
* regression_1005 Many sessions
  regression_1005 OK

Best

hello jdiegodelgado,

yes, that’s looks normal.
BTW, it should be lots of test sessions, you’ve omitted the $ sudo xtest output logs, right?

@JerryChang ,

Yes! I omitted the rest of the logs. At the end I saw this:

 +-----------------------------------------------------
30161 subtests of which 0 failed
125 test cases of which 0 failed
0 test cases were skipped
TEE test application done!

Thanks for your help. One last question (I don’t know if we need a new thread for this), but do you have a guide or steps in case I want to develop a Trusted Application, like a dummy “hello world” for a Jetson platform?
[optee_examples — OP-TEE documentation documentation]

Best,

hello jdiegodelgado,

here’s developer guide. OP-TEE: Open Portable Trusted Execution Environment — Jetson Linux Developer Guide documentation

you may see-also public sources for OP-TEE hwkey-agent TA/CA example.
there’s also a README file it provides an overview of the hwkey-app and how to compile and use it.
for instance,
TA: r35.3.1/Linux_for_Tegra/source/public/atf_and_optee/optee/samples/hwkey-agent/ta/
CA: r35.3.1/Linux_for_Tegra/source/public/atf_and_optee/optee/samples/hwkey-agent/

let’s close this, and have a new thread if you need further supports.
thanks

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.