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

Grub multiboot header broken #5

Open
ivanka2012 opened this issue Oct 4, 2019 · 1 comment
Open

Grub multiboot header broken #5

ivanka2012 opened this issue Oct 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working kernel This changes are in kernel

Comments

@ivanka2012
Copy link

So I'm not sure if this is supposed to happen, but I when I try to boot the provided ISO in the docs with qemu on linux, it doesn't work. I checked the .bin file in the kernel/ directory and it turns out that the kernel actually doesn't have a valid multiboot header.

@StraykerPL StraykerPL added bug Something isn't working kernel This changes are in kernel labels Oct 9, 2019
@StraykerPL
Copy link
Member

StraykerPL commented Oct 9, 2019

Hello!

Thank you for your support. I checked my ISO image on a few computers with QEMU and VirtualBox on Windows and kernel is working. Also I checked it again on my Ubuntu where I develop it and it's still working properly. But to be sure, I recreated ISO and binary file in repository from code again. Regarding Multiboot header, I use newer Multiboot 2.0 specification where Multiboot header is recreated, but it's in proper place in binary file. Also I checked it with GRUB and it sees header and boots kernel. Another way I tried, is readelf command:

mbheader

The structure of the beginning of the file is correct.

So now try to download recreated ISO image from my repo and run it with QEMU.
If you still get trouble, I suggest to check everything from the beginning. That means, if you don't use my Makefile, if you use proper architecture of QEMU emulator, it should be i386 or x86-64. Also write to me if you run out of ideas to fix it. I will think more about that.

Cheers,
Daniel Strayker Nowak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kernel This changes are in kernel
Projects
None yet
Development

No branches or pull requests

2 participants