Skip to content
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

[HELP] Register setting during booting the OS on ARM A53 FVP #12916

Closed
1 task done
lzc1001 opened this issue Aug 15, 2024 · 2 comments
Closed
1 task done

[HELP] Register setting during booting the OS on ARM A53 FVP #12916

lzc1001 opened this issue Aug 15, 2024 · 2 comments
Labels
Community: Question Further information is requested

Comments

@lzc1001
Copy link

lzc1001 commented Aug 15, 2024

Description

I'm porting nuttx to FVP, and have a question during the porting. (This is my first time to port OS, hhh)
I need to set the related GIC(gic v3) registers in EL3 for boot successfully. So, does the nuttx need ARM TF-A before running the OS kernel?
Thanks!

Verification

  • I have verified before submitting the report.
@lzc1001 lzc1001 added the Community: Question Further information is requested label Aug 15, 2024
@lzc1001 lzc1001 changed the title [HELP] <title> Booting the OS on ARM A53 FVP [HELP] Booting the OS on ARM A53 FVP Aug 15, 2024
@xiaoxiang781216
Copy link
Contributor

Description

I'm porting nuttx to FVP, and have a question during the porting. (This is my first time to port OS, hhh) I need to set the related GIC(gic v3) registers in EL3 for boot successfully. So, does the nuttx need ARM TF-A before running the OS kernel? Thanks!

no, you can create a pseudo interrupt frame and downgrade to EL1 inside NuttX if CPU start from EL3 or EL2. The common arrm64 boot code already has this code block:
https://github.com/apache/nuttx/blob/master/arch/arm64/src/common/arm64_boot.c#L105-L200

@lzc1001
Copy link
Author

lzc1001 commented Aug 15, 2024

Thanks for your answer! @xiaoxiang781216
If i don't add code to set registers, the terminal would not input command. I think the UART issue from the register configuration. So, is this a bug?

@lzc1001 lzc1001 changed the title [HELP] Booting the OS on ARM A53 FVP [HELP] Register setting during booting the OS on ARM A53 FVP Aug 15, 2024
@lzc1001 lzc1001 closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants