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

Struggling to get function kernel running #376

Open
DecrepitHuman opened this issue May 29, 2023 · 2 comments
Open

Struggling to get function kernel running #376

DecrepitHuman opened this issue May 29, 2023 · 2 comments

Comments

@DecrepitHuman
Copy link

This is my first project using this crate, I've followed the quick start (https://github.com/rust-osdev/bootloader/blob/HEAD/docs/create-disk-image.md) exactly down to the file/folder names. The project generates both uefi.img and bios.img files which QEMU accepts, but after loading the kernel I can see "Third Stage (....)" in the console, but it immediately closes and restarts the kernel. The entry point (using the entry_point!() macro) has a infinite loop and so does the panic handler, which I would assume would leave the kernel "hanging" but instead constantly restarts as if the kernel's code isn't running at all.

@asensio-project
Copy link
Contributor

That document doesn't explains how to add something useful to the kernel. Have you really got a kernel?
If you don't have one, the bootloader will automatically enter in panic. And QEMU will handle it rebooting the system.

@phil-opp
Copy link
Member

I'm currently working on a more detailed guide for the upcoming third edition of os.phil-opp.com. The latest draft is available at https://github.com/phil-opp/blog_os/blob/edition-3/blog/content/edition-3/posts/02-booting/index.md. Could you try whether this fixes your issues?

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