-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commit core: generic_entry: add enable_mmu() causes hangup on firefly-rk3399 #4977
Comments
My guess is that this platform does something special with the memory mappings that none of the tested upstream platforms do. |
Hi @jenswi-linaro, P.S. Btw. i dunno if that concerns the issue, but for running optee I'm using TPL/SPL uboot script which is packing BL31 together with TEE into the image. |
1 similar comment
Hi @jenswi-linaro, P.S. Btw. i dunno if that concerns the issue, but for running optee I'm using TPL/SPL uboot script which is packing BL31 together with TEE into the image. |
I'm not sure I can help much here. I assume that the code you're testing with isn't upstream. It's quite likely that there's something wrong with the translation tables so try to enable as much debug prints related to that as possible. |
It's upstream with mixed changes from higher versions for pkcs11 TA. I don't have jtag debbuger i use UART for debugging. Btw. i have read #4542 and i think it is related. I'll give a try with setting P.S. @jenswi-linaro the code is in my repo on branch rockchip-3.8-regression. |
OK:] i should be thankful to @ydirson, because thx to his post i was finally able to debug the optee with his The log output is slightly different:
cause i see 'D/TC:0 0 verify_special_mem_areas:515 No NSEC DDR memory area defined'. I think that when logging is now visable i'll give i try with the newest master. |
Hmmm this is odd. With current a few times an output was produced:
and now I'm not even able to re-produce it.... P.S. ha this is really odd because it turns out that the outputs sometimes are and sometimes are not and i really do not know what it depends on...
If i turn off ASLR the logs are gone and nothing happens i can't debug... This is really frustrating. I need a jtag debugger, because i can't work like that. |
Hahahaha I'm sorry for my language, but this is some bloody bullshit. I've got it finally working with mainline 3.15.0 :] the problem was in newest u-boot. I have switched back to 2020.1 and first of all the debug outputs started to print out faster. Then i have turned ASLR off and the board has booted up :] I think i have to create a bug in u-boot. |
As i have confirmed that newest mainline is working i think i can close this one. |
@Dvergatal I also encountered same issue, and I can boot with u-boot 2020.01 + optee-os 3.14 with ASLR disabled. Did you have filed a bug for u-boot ? Do they have response ? |
Hi @sprhawk,
I have filled a bug to u-boot (google this [BUG] firefly-rk3399 tpl/spl with optee from tag v2020.07 hangs on booting kernel) but i was told to find on which commit it all breaks, which i haven’t done yet because of lack of time…
…________________________________
Od: sprhawk ***@***.***>
Wysłane: Friday, January 7, 2022 11:25:20 AM
Do: OP-TEE/optee_os ***@***.***>
DW: Piotr Lobacz ***@***.***>; Mention ***@***.***>
Temat: Re: [OP-TEE/optee_os] commit core: generic_entry: add enable_mmu() causes hangup on firefly-rk3399 (Issue #4977)
@Dvergatal<https://github.com/Dvergatal> I also encountered same issue, and I can boot with u-boot 2020.01 + optee-os 3.14 with ASLR disabled. Did you have filed a bug for u-boot ? Do they have response ?
with ASLR disabled, it is not a secure state. We still need to have ASLR enabled during production
—
Reply to this email directly, view it on GitHub<#4977 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARIYQXQOYMEEMEENZPRT4ALUU25RBANCNFSM5IALI3XA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
[Softgent logo]<https://www.softgent.com>
Softgent Sp. z o.o., Budowlanych 31d, 80-298 Gdansk, POLAND
KRS: 0000674406, NIP: 9581679801, REGON: 367090912
www.softgent.com<https://www.softgent.com>
Sąd Rejonowy Gdańsk-Północ w Gdańsku, VII Wydział Gospodarczy Krajowego Rejestru Sądowego
KRS 0000674406, Kapitał zakładowy: 25 000,00 zł wpłacony w całości.
Jesteśmy uczestnikiem Programu
RZETELNA Firma
Sprawdź naszą rzetelność na
https://www.rzetelnafirma.pl/F5IA32UW
|
Finally i had more time to check commit by commit what's causing the hang up during BL32 initialization on rk3399 between 3.7.0 and 3.8.0 tags and found out that this commit between tags v3.7.0 and v3.8.0 causes a regression on firefly-rk3399 and optee is not being initialized, it simply hangs:
This is the issue for which i had problems in #4197. I honestly admit that I do not know asm and more over i don't know if it is possible to debug what line is causing this situation.
@jenswi-linaro maybe you have some clues?
The text was updated successfully, but these errors were encountered: