-
Notifications
You must be signed in to change notification settings - Fork 22
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
Draft
fstracke
wants to merge
9
commits into
hermit-os:main
Choose a base branch
from
fstracke:feature-baremetalsupport-aarch64
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
WIP: feat: baremetalsupport aarch64 #412
fstracke
wants to merge
9
commits into
hermit-os:main
from
fstracke:feature-baremetalsupport-aarch64
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Documentation for the structure of the linux-header can be found under https://www.kernel.org/doc/Documentation/arm64/booting.txt and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/kernel/efi-header.S Signed-off-by: Fritz Stracke <[email protected]>
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
changed the title
feat: baremetalsupport aarch64
WIP: feat: baremetalsupport aarch64
Nov 19, 2024
This commit introduces a transparent serial port structure. The Device tree is read for the currently connected serial device. Depending on the connected architecture an approapriate driver is selected. Signed-off-by: Fritz Stracke <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pullrequest is a very early WIP.
It 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.