{"action":"created","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/865","repository_url":"https://api.github.com/repos/OP-TEE/optee_os","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/865/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/865/events","html_url":"https://github.com/OP-TEE/optee_os/issues/865","id":161337324,"number":865,"title":"Problems trying to run xtest with OP-TEE + Android","user":{"login":"jsherman3","id":14864114,"avatar_url":"https://avatars.githubusercontent.com/u/14864114?v=3","gravatar_id":"","url":"https://api.github.com/users/jsherman3","html_url":"https://github.com/jsherman3","followers_url":"https://api.github.com/users/jsherman3/followers","following_url":"https://api.github.com/users/jsherman3/following{/other_user}","gists_url":"https://api.github.com/users/jsherman3/gists{/gist_id}","starred_url":"https://api.github.com/users/jsherman3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsherman3/subscriptions","organizations_url":"https://api.github.com/users/jsherman3/orgs","repos_url":"https://api.github.com/users/jsherman3/repos","events_url":"https://api.github.com/users/jsherman3/events{/privacy}","received_events_url":"https://api.github.com/users/jsherman3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-21T02:34:20Z","updated_at":"2016-06-21T04:38:23Z","closed_at":null,"body":"Hello,\r\n\r\nI have successfully put AOSP + OP-TEE on the HiKey board and I'm currently trying to make an Android app that communicates with a TA.  I just connected UART3 to my computer and opened it up to see the serial output.  When Android loaded I tried running xtest to see if everything was working and I got this output: \r\nUsed link: \r\nhttps://github.com/linaro-swg/optee_android_manifest\r\n```\r\nRun test suite with level=0\r\n\r\nTEE test application started with device [(null)]\r\n######################################################\r\n#\r\n# XTEST_TEE_TEST\r\n#\r\n######################################################\r\n \r\n* XTEST_TEE_1001 Core self tests\r\nERR [2635] TEEC:TEEC_OpenSession:484: TEE_IOC_OPEN_SESSION failed\r\n  XTEST_TEE_1001 OK\r\n \r\n* XTEST_TEE_1004 Test User Crypt TA\r\nERR [2635] TEEC:TEEC_OpenSession:484: TEE_IOC_OPEN_SESSION failed\r\nexternal/optee_test/host/xtest/xtest_1000.c:392: xtest_teec_open_session( &session, &crypt_user_ta_uuid, ((void*)0), &ret_orig) has an unexpected value: 0xffff0007 = TEEC_ERROR_BAD_STATE, expected 0x0 = TEEC_SUCCESS\r\n  XTEST_TEE_1004 FAILED\r\n \r\n* XTEST_TEE_1005 Many sessions\r\nERR [2635] TEEC:TEEC_OpenSession:484: TEE_IOC_OPEN_SESSION failed\r\nexternal/optee_test/host/xtest/xtest_1000.c:445: xtest_teec_open_session(&sessions[i], &os_test_ta_uuid, ((void*)0), &ret_orig) has an unexpected value: 0xffff0007 = TEEC_ERROR_BAD_STATE, expected 0x0 = TEEC_SUCCESS\r\n  XTEST_TEE_1005 FAILED\r\n \r\n* XTEST_TEE_1006 Test Basic OS features\r\nERR [2635] TEEC:TEEC_OpenS[  541.900670] xtest[2635]: unhandled level 1 translation fault (11) at 0x00000000, esr 0x92000005\r\nession:484: TEE_[  541.910937] pgd = ffffffc04a659000\r\nIOC_OPEN_SESSION[  541.915593] [00000000] *pgd=0000000000000000 failed\r\nexterna, *pud=0000000000000000l/optee_test/hos\r\nt/xtest/xtest_10[  541.926070] \r\n00.c:462: xtest_[  541.928892] CPU: 1 PID: 2635 Comm: xtest Tainted: G        W       4.1.15-02393-g365a5d0 #1\r\nteec_open_sessio[  541.938625] Hardware name: HiKey Development Board (DT)\r\nn(&session, &os_[  541.945216] task: ffffffc074afb040 ti: ffffffc035124000 task.ti: ffffffc035124000\r\ntest_ta_uuid, (([  541.954074] PC is at 0x7fb7dec774\r\nvoid*)0), &ret_o[  541.958755] LR is at 0x7fb7dec748\r\nrig) has an unex[  541.963437] pc : [<0000007fb7dec774>] lr : [<0000007fb7dec748>] pstate: 20000000\r\npected value: 0x[  541.972224] sp : 0000007ffffff750\r\nffff0007 = TEEC_[  541.976930] x29: 0000007ffffff8e0 ERROR_BAD_STATE,x28: 0000007fb782e048  expected 0x0 = \r\nTEEC_SUCCESS\r\n  [  541.986387] x27: 0000000000000004 XTEST_TEE_1006 Fx26: 0000007fb7831380 AILED\r\n \r\n* XTES\r\nT_TEE_1007 Test [  541.995853] x25: 00000055555c6490 Panic\r\nERR [2635x24: ed16657e732091f2 ] TEEC:TEEC_Open\r\nSession:484: TEE[  542.005314] x23: 0000007ffffff818 _IOC_OPEN_SESSIOx22: 0000007ffffff8f8 N failed\r\nextern\r\nal/optee_test/ho[  542.014786] x21: 0000000000000000 st/xtest/xtest_1x20: 0000000000000000 000.c:484: xtest\r\n_teec_open_sessi[  542.024257] x19: 0000007ffffff8f4 on(&session, &osx18: 00000000ffffffff _test_ta_uuid, (\r\n(void*)0), &ret_[  542.033729] x17: 0000007fb7d36e50 orig) has an unex16: 0000007fb7deefa0 xpected value: 0\r\nxffff0007 = TEEC[  542.043200] x15: 0000007fb7dc2f6c _ERROR_BAD_STATEx14: 54203d2030783020 , expected 0x0 =\r\n TEEC_SUCCESS\r\n[  542.052672] x13: 6465746365707865 x12: 202c45544154535f \r\n[  542.059325] x11: 0000000000000000 x10: 0000000000004001 \r\n[  542.064642] x9 : 0000000000000004 x8 : 0000000000000000 \r\n[  542.069999] x7 : 0000000000000000 x6 : 000000000000003f \r\n[  542.075316] x5 : 0000000000000040 x4 : 0000000000000000 \r\n[  542.080672] x3 : 0000000000000030 x2 : 0000007ffffff750 \r\n[  542.086032] x1 : 000000008010a403 x0 : 0000000000000000 \r\n[  542.091348] \r\nSegmentation fault\r\n```\r\nI checked /dev/tee* and had the following output:\r\n`/dev/tee0 /dev/teepriv0\r\n`\r\nSo the OP-TEE linux driver installed.  However when I run ps | grep supplicant, I get nothing.  So I think the tee-supplicant is not running.  Any insight on my problem?"},"comment":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/comments/227338639","html_url":"https://github.com/OP-TEE/optee_os/issues/865#issuecomment-227338639","issue_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/865","id":227338639,"user":{"login":"jsherman3","id":14864114,"avatar_url":"https://avatars.githubusercontent.com/u/14864114?v=3","gravatar_id":"","url":"https://api.github.com/users/jsherman3","html_url":"https://github.com/jsherman3","followers_url":"https://api.github.com/users/jsherman3/followers","following_url":"https://api.github.com/users/jsherman3/following{/other_user}","gists_url":"https://api.github.com/users/jsherman3/gists{/gist_id}","starred_url":"https://api.github.com/users/jsherman3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsherman3/subscriptions","organizations_url":"https://api.github.com/users/jsherman3/orgs","repos_url":"https://api.github.com/users/jsherman3/repos","events_url":"https://api.github.com/users/jsherman3/events{/privacy}","received_events_url":"https://api.github.com/users/jsherman3/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T04:38:23Z","updated_at":"2016-06-21T04:38:23Z","body":"Oh should I be using xtest on the Android terminal? I was typing these commands on the serial terminal through the HiKey board"}}
{"actor":{"display_login":"jsherman3"}}