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

WIP: feat: baremetalsupport aarch64 #412

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

fstracke
Copy link

@fstracke fstracke commented Nov 19, 2024

This pr aims to enable the loader to run on bare-metal aarch64 systems.
The Initial drivers necessary for this only include qemu and ZynqMP.

The driver engine needs reworking before a merge is possible.
It intends to read all properties of the serial device from the device-tree
and select the appropriate driver.
The drivers all commonly implement the SerialDriver trait.

fstracke added 8 commits June 4, 2024 13:59
This commit produces a non-functioning bootloader!
Modify entry.s to print the character "A" over a xilinx uart
serial connection. First steps towards a runnable bootloader.

Signed-off-by: Fritz Stracke <[email protected]>
Signed-off-by: Fritz Stracke <[email protected]>
+ Add generic Serial Interface
+ Move Qemu specific Code into driver
+ Add driver for xlnx

Signed-off-by: Fritz Stracke <[email protected]>
+ startup code now checks exception level
+ retry writing character one hundret times to prevent lost characters
+ change file structure for serial drivers

Signed-off-by: Fritz Stracke <[email protected]>
Runs the hermit-loader completley.

Signed-off-by: Fritz Stracke <[email protected]>
Changes to the interrupt-system can only be sufficiently configured
using a higher level of privilege.
Hence it is mandatory to boot the processor in secure-mode.

Signed-off-by: Fritz Stracke <[email protected]>
Add code annotations to include TODOs.

Signed-off-by: Fritz Stracke <[email protected]>
@fstracke fstracke changed the title feat: baremetalsupport aarch64 WIP: feat: baremetalsupport aarch64 Nov 19, 2024
@fstracke fstracke marked this pull request as ready for review December 17, 2024 13:26
@mkroening mkroening self-assigned this Dec 17, 2024
@mkroening mkroening self-requested a review December 17, 2024 13:28
Signed-off-by: Fritz Stracke <[email protected]>
@fstracke fstracke force-pushed the feature-baremetalsupport-aarch64 branch from 2e0dd55 to eb34985 Compare December 17, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants