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

entry_offset wrong/deprected for recent linux kernels #131

Open
userid0x0 opened this issue Jan 23, 2025 · 0 comments
Open

entry_offset wrong/deprected for recent linux kernels #131

userid0x0 opened this issue Jan 23, 2025 · 0 comments

Comments

@userid0x0
Copy link

userid0x0 commented Jan 23, 2025

Hi,
I noticed the entry_offset in https://github.com/seL4/camkes-vm/blob/master/templates/seL4VMParameters.template.c#L23 is set to a deprecated value of 0x80000 for ARMv8/9. Within the Linux 5.8-5.10 timeframe the mandatory offset of 0x80000 was removed, compare [1]. This causes recent kernels to emit a error message [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!.

The real fix would be to detect the AARCH64 image header [2] and to automatically apply the text_offset which is 0x80000 for old kernels and 0x0 for recent kernels.

[1] https://www.spinics.net/lists/arm-kernel/msg798878.html
[2] https://www.kernel.org/doc/Documentation/arm64/booting.txt

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