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

ability to run .elf kernel #1033

Closed
Ponali opened this issue May 8, 2024 · 2 comments
Closed

ability to run .elf kernel #1033

Ponali opened this issue May 8, 2024 · 2 comments

Comments

@Ponali
Copy link

Ponali commented May 8, 2024

hi, when i managed to compile an assembly kernel from someone else into its own .elf file (build.kernel.elf), i wanted to try using it with v86, but it says to use "bzimage".
i was trying to find a way to convert the .elf to a bzimage format, but to no avail, and directly importing the .elf file simply throws an error without any GUI notification. here is what DevTools gathered:
image
image

it would be nice to add support for kernels with raw format (.elf). if there is no way to do so, it would be nice to link a tutorial on converting to a bzimage format - i'm kinda new to the subject of virtualization '._.

@SuperMaxusa
Copy link
Contributor

SuperMaxusa commented May 8, 2024

According to kernel sources, it's a multiboot image.
Did you try to load image with multiboot option? (now not available on v86 demo sorry, I got it wrong, available on debug mode: https://copy.sh/v86/debug.html) df0d136

@copy
Copy link
Owner

copy commented May 26, 2024

The bzimage format is somewhat documented here (you can probably learn more by reading v86 or kernel sources): https://www.kernel.org/doc/Documentation/x86/boot.txt

As already mentioned, multiboot is another format that should work in v86, but feel free to reopen if it doesn't.

@copy copy closed this as completed May 26, 2024
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

3 participants