"optee_example_hello_world” running causes kernel panic with i.MX8M mini

cancel
Showing results for 
Search instead for 
Did you mean: 

"optee_example_hello_world” running causes kernel panic with i.MX8M mini

154 Views
tanoue
Contributor II

Hi, alls.

When I run optee_example_hello_world, it causes kernel panic with i.MX8M mini EVK.

It was build and run optee_examples/hello world without editing codes.

Referenced the following URL, I tried running xtest.
It was succeeded.

https://community.nxp.com/t5/i-MX-Processors/OPTEE-OS-xtes-and-optee-example-hello-world-all-crashed... 

 

These log is attached.

 

Why kernel panic be caused?

What can I do anything to solve it?

 

Regards,

tanoue

Tags (2)
0 Kudos
7 Replies

109 Views
nxf65025
NXP Employee
NXP Employee

Can you attach your steps?

0 Kudos

74 Views
tanoue
Contributor II

Hi, nxf65025.

Did you see my steps?

Please reply and give me any actions to solve it.

 

Best Regards.

0 Kudos

65 Views
nxf65025
NXP Employee
NXP Employee

@tanoue @torus1000 

Sorry for late reply, in past days, i ported the optee_examples in yocto. I think your steps have issues.

1.There is no need to build optee_os, optee-client,optee_test after you add IMAGE_INSTALL += "optee-test optee-os optee-client" to local.conf

 

2.You can't use arm toolchain to compile optee_examples .

I ported the optee_examples  to our yocto env and there is no error after run optee_example_hello_world

I have attacched the optee-examples_3.11.0-r0_arm64.deb(compiled under L5.10.52),which you can install it to your board.I will attach yocto bb file later.

 

My test log:

root@imx8mpevk:~# xtest --install-ta /lib/optee_armtz/ 8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta
Searching directory "/lib/optee_armtz/" for TAs
Installing "fd02c9da-306c-48c7-a49c-bbd827ae86ee.ta"
Installing "e626662e-c0e2-485c-b8c8-09fbce6edf3d.ta"
Installing "484d4143-2d53-4841-3120-4a6f636b6542.ta"
Installing "731e279e-aafb-4575-a771-38caa6f0cca6.ta"
Installing "e13010e0-2ae1-11e5-896a-0002a5d5c51b.ta"
Installing "5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.ta"
Installing "b3091a65-9751-4784-abf7-0298a7cc35ba.ta"
Installing "c3f6e2c0-3548-11e1-b86c-0800200c9a66.ta"
Installing "a734eed9-d6a1-4244-aa50-7c99719e7b7b.ta"
Installing "a4c04d50-f180-11e8-8eb2-f2801f1b9fd1.ta"
Installing "873bcd08-c2c3-11e6-a937-d0bf9c45c61c.ta"
Installing "528938ce-fc59-11e8-8eb2-f2801f1b9fd1.ta"
Installing "f04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c.ta"
Installing "cb3e5ba0-adf1-11e0-998b-0002a5d5c51b.ta"
Installing "380231ac-fb99-47ad-a689-9e017eb6e78a.ta"
Installing "e6a33ed4-562b-463a-bb7e-ff5e15a493c8.ta"
Installing "b6c53aba-9669-4668-a7f2-205629d00f86.ta"
Installing "d17f73a0-36ef-11e1-984a-0002a5d5c51b.ta"
Installing "5dbac793-f574-4871-8ad3-04331ec17f24.ta"
Installing "023f8f1a-292a-432b-8fc4-de8471358067.ta"
Installing "8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta"
Installing "690d2100-dbe5-11e6-bf26-cec0c932ce01.ta"
Installing "f157cda0-550c-11e5-a6fa-0002a5d5c51b.ta"
Installing "f4e750bb-1437-4fbf-8785-8d3580c34994.ta"
Installing "5ce0c432-0ab0-40e5-a056-782ca0e6aba2.ta"
Installing "614789f2-39c0-4ebf-b235-92b32ac107ed.ta"
Installing "ffd2bded-ab7d-4988-95ee-e4962fff7154.ta"
Installing "b689f2a7-8adf-477a-9f99-32e90c0ad0a2.ta"
Skipping "8aaaf200-2450-11e4-abe2-0002a5d5c51b.ta": No such file or directoryInstalling TAs done
root@imx8mpevk:~# optee_example_hello_world
Invoking TA to increment 42
TA incremented value to 43

 

0 Kudos

62 Views
nxf65025
NXP Employee
NXP Employee

@tanoue @torus1000 

overwrite the sources/meta-freescale/recipes-security/optee-imx

0 Kudos

46 Views
tanoue
Contributor II

@nxf65025 

Thank you for pointing out mistakes in my step.

I was able to execute optee_example_hello_world after installing .deb file.

Then, I was also able to build optee_examples (including CA and TA) with bitbake command.

 

By the way, I wondering that "Hello World" and "Goodbye" are not shown.

Is it correct?

 

0 Kudos

103 Views
tanoue
Contributor II

Hi, nxf65025.

Thank you for replying.

I attached the text file written my steps here.

Please give me some advice

 

Best regards.

0 Kudos

129 Views
torus1000
Contributor V

I saw same symptom. I would appreciate any guidance/advice.I'm also waiting for someone's reply. Thanks.

0 Kudos