I did not try SPL + OPTEE before, so could not provide exact information. Did your OP-TEE work with non-SPL, I mean use normal uboot to boot OP-TEE? Also in OP-TEE, does the CONSOLE_UART_BASE is configured correctly?
Regards, Peng. > -----Original Message----- > From: Shyam Saini [mailto:[email protected]] > Sent: 2019年1月5日 17:44 > To: Peng Fan <[email protected]> > Cc: [email protected]; [email protected]; > [email protected]; [email protected] > Subject: Re: booting optee via SPL on imx6q > > Hi Peng, > > Thanks for replying. > > > Did you configure loglevel for OP-TEE? If you configured, there should be > some log out from OP-TEE. > > Yes, I did. Its set to log level 4. > > > Best Regards, > Shyam > > > > > -----Original Message----- > > > From: Shyam Saini [mailto:[email protected]] > > > Sent: 2019年1月4日 19:47 > > > To: [email protected] > > > Cc: [email protected]; [email protected]; Peng Fan > > > <[email protected]>; [email protected] > > > Subject: booting optee via SPL on imx6q > > > > > > Hi Kever, > > > > > > I've been trying to boot optee via SPL on my imx6 board. > > > > > > I see you added booting optee via SPL support in this commit. > > > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgi > > > t.d > > > > enx.de%2F%3Fp%3Du-boot.git%3Ba%3Dcommit%3Bh%3D70fe28763529391 > > > > 94ccd9091379453a5ddb64ddb&data=02%7C01%7Cpeng.fan%40nxp.co > > > > m%7C2f8daccc8c104042b9b308d6723a4ddd%7C686ea1d3bc2b4c6fa92cd99 > > > > c5c301635%7C0%7C1%7C636821992073649506&sdata=28oS2F741k6y > > > AMGRZYpdI8pCidsy32XSPKHh3F48WVw%3D&reserved=0 > > > > > > I used fit image to do this. Here is my fit *.its file content > > > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fp > > > ast > e.ubuntu.com%2Fp%2F5FYkGqswX9%2F&data=02%7C01%7Cpeng.fan% > > > > 40nxp.com%7C2f8daccc8c104042b9b308d6723a4ddd%7C686ea1d3bc2b4c6f > > > > a92cd99c5c301635%7C0%7C1%7C636821992073659511&sdata=NrY2R > > > RZp6tsve9vE8AO0ZW1KbbOuBHFUE8kJOGhz80c%3D&reserved=0 > > > > > > When I power on my imx6 board it hangs on spl_optee_entry function > > > with this message "Jumping to U-Boot via OP-TEE" > > > > > > Here are the complete logs: > > > > > > # logs without reserved TZ RAM > > > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fp > > > ast > e.ubuntu.com%2Fp%2FwGxXSvPSkS%2F&data=02%7C01%7Cpeng.fan% > > > > 40nxp.com%7C2f8daccc8c104042b9b308d6723a4ddd%7C686ea1d3bc2b4c6f > > > > a92cd99c5c301635%7C0%7C1%7C636821992073659511&sdata=2R7B > > > GEOl7xmbDNpsPcEn5xJpnkt1Qxg2JFBL82qnYrg%3D&reserved=0 > > > > > > # logs with reserved TZ RAM > > > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fp > > > ast > > > > e.ubuntu.com%2Fp%2F7KgYJx8V9p%2F&data=02%7C01%7Cpeng.fan%4 > > > > 0nxp.com%7C2f8daccc8c104042b9b308d6723a4ddd%7C686ea1d3bc2b4c6fa > > > > 92cd99c5c301635%7C0%7C1%7C636821992073659511&sdata=2fVNXo > > > EfuncIdXFFRNeQcSsk%2FnfzwVSKbaITpj1HLK0%3D&reserved=0 > > > > > > I'm not sure why is it hanging. But when i put some print statements > > > in optee os it doesn't print, so i guess something wrong from SPL side. > > > > > > One more question, what is the significance of "mov pc, r3", here > > > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgi > > > t.d > enx.de%2F%3Fp%3Du-boot.git%3Ba%3Dblob%3Bf%3Dcommon%2Fspl%2Fspl > > > > _optee.S%3Bh%3D86fc3985465b4e4f6cf300923b0f8d6564e8be64%3Bhb%3 > > > > D70fe2876352939194ccd9091379453a5ddb64ddb&data=02%7C01%7C > > > > peng.fan%40nxp.com%7C2f8daccc8c104042b9b308d6723a4ddd%7C686ea1d > > > > 3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C636821992073659511&sd > > > > ata=gu3VtK1m%2BMeGPwV8qJKxkOYLgEAMFcYSBpel5ZjV%2FG4%3D&r > > > eserved=0 > > > > > > I compiled optee os with CFG_NS_ENTRY_ADDR=0x17800000 i.e, > u-boot > > > load address in my case. > > > > > > Do you know what am i missing? > > > > > > I'd really appreciate any help from you. > > > > > > > > > Thanks a lot, > > > Shyam > > > > -- > Shyam Saini > Linux Kernel Engineer | Amarula Solutions Linux Netfilter Contributor | FOSS > Enthusiast Hyderabad, India. _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

