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

AArch64 Support #1

Open
ghost opened this issue Nov 10, 2021 · 1 comment
Open

AArch64 Support #1

ghost opened this issue Nov 10, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 10, 2021

In the Readme file I found information that Towboot has i686 and x86_64 support. Does it also have aarch64 support?

@ghost ghost changed the title Aarch64 Support AArch64 Support Nov 10, 2021
@YtvwlD
Copy link
Collaborator

YtvwlD commented Nov 22, 2021

It does not, at the moment at least.

The reason is quite simple: Multiboot 1 (which is the only Multiboot version towboot supports at the moment) is only specified for x86. Multiboot 2 added support for MIPS, but UEFI does not.
So, officially, x86 is the only platform where a Multiboot-compatible bootloader for UEFI can work. And we only support 32-bit kernels at the moment.

Unofficially, though, there have been ports of Multiboot to arm and aarch64 and of UEFI to MIPS. (I haven't really looked at any of them.)

So yes, this would be theoretically possible, although the result would probably be really niche. Are there any Multiboot-kernels for ARM? And I currently lack the knowledge of ARM internals to pull this off.

Adding ARM support would not be that difficult though, I suppose. The last part of PreparedEntry::boot would need to be split off and put behind a #[cfg].

If you'd be interested to do this, I'd be happy to review your pull request. :)

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

No branches or pull requests

1 participant