-
Notifications
You must be signed in to change notification settings - Fork 1.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
DMSG/IMSG from TA/STA is not seen #1483
Comments
Hi @toddkuhreng , Your settings look good... Regarding the pseudo TA (static TA), I suppose your
|
I see following on the UART3: And I checked md5sum of |
Build count is printed after I have no idea what's wrong. |
I am not sure what is the issue. But if I give |
That's interesting, thanks for the information. I will try to reproduce the issue and debug it. |
For the record: the issue when I came to this conclusion after I observed that things work as expected if I do this: diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 6753e63..42f389f 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -105,7 +105,7 @@
};
uart3: uart@f7113000 {
- status = "ok";
+ status = "disabled";
};
/* ...then build with For now, I will propose a patch to add a comment to the Makefile, documenting the fact that the DT has to be consistent with the build settings. A better long-term solution would be to get rid of the compile-time configuration and rely only on the DT to configure the UARTs and the secure/non-secure consoles. |
Currently, etc/inittab-hikey tries to spawn a login shell on both ttyAMA0 and ttyAMA3 which doesn't work well when secure world and normal world are configured to use different UARTs (in this case, secure world won't log any more output as soon as Linux has booted). This patch generates an inittab file with a single terminal entry, based on the value of $CFG_NW_CONSOLE_UART. If not set, ttyAMA3 is used which is UART1 on the low-speed extension connector. Fixes: OP-TEE/optee_os#1483 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Currently, etc/inittab-hikey tries to spawn a login shell on both ttyAMA0 and ttyAMA3 which doesn't work well when secure world and normal world are configured to use different UARTs (in this case, secure world won't log any more output as soon as Linux has booted). This patch generates an inittab file with a single login shell entry, based on the value of $CFG_NW_CONSOLE_UART. If not set, ttyAMA3 is used which is UART1 on the low-speed expension connector. Fixes: OP-TEE/optee_os#1483 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Currently, etc/inittab-hikey tries to spawn a login shell on both ttyAMA0 and ttyAMA3 which doesn't work well when secure world and normal world are configured to use different UARTs (in this case, secure world won't log any more output as soon as Linux has booted). This patch generates an inittab file with a single login shell entry, based on the value of $CFG_NW_CONSOLE_UART. If not set, ttyAMA3 is used which is UART1 on the low-speed expension connector. Fixes: OP-TEE/optee_os#1483 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
Currently, etc/inittab-hikey tries to spawn a login shell on both ttyAMA0 and ttyAMA3 which doesn't work well when secure world and normal world are configured to use different UARTs (in this case, secure world won't log any more output as soon as Linux has booted). This patch generates an inittab file with a single login shell entry, based on the value of $CFG_NW_CONSOLE_UART. If not set, ttyAMA3 is used which is UART1 on the low-speed expension connector. Fixes: OP-TEE/optee_os#1483 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
Hi all,
Problem I am facing is that I can't find any
Debug messages from TA and STA
on UART3. I am kind of lost here. Could someone please help with this? (I am trying this on Hikey board)All I see in UART3 is following:
Following is that I have in my config, and make Makefiles.
Inside my build/hikey.mk file I have following:
inside hello_world/ta/Makefile I have following:
Inside ./optee_os/mk/config.mk I have following:
Inside STA I have following:
Inside TA I have following:
And following is how I am building the whole image:
make CFG_TEE_TA_LOG_LEVEL=3 CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=1
I am invoking STA and TA from NW. I don't see DMSG from TA and IMSG/DMSG from STA on UART3.
What am I missing here? Could you please help?
The text was updated successfully, but these errors were encountered: