MQuy / mos

A hobby operating system developed from scratch
MIT License
365 stars 28 forks source link

Build says mos.bin is not multiboot #14

Closed ajh123 closed 1 year ago

ajh123 commented 2 years ago

Which then, it seems to make this check in the kernel main fail

int kernel_main(uint32_t addr, uint32_t magic)
{
    if (magic != MULTIBOOT2_BOOTLOADER_MAGIC)
        return -1;

because grub probably passes the non multi-boot magic in and then the kernel seems to hang

ajh123 commented 2 years ago

@MQuy Hello? Do you have any ideas? I even reinstalled the i386-elf-grub tools

MQuy commented 2 years ago

The last time I tried for both MacOS and Ubuntu, it is working. Which OS are you using, my guess could be you are using old grub version or newest grub version which I haven't tested

ajh123 commented 2 years ago

Mac Os, thank you for helping!

ajh123 commented 2 years ago

My GRUB version is 2.11

MQuy commented 2 years ago

I just tested, it doesn't work with latest MacOS Big Sur. Sorry to say this but I don't think we can compile this repo in MacOS Big Sur, I would suggest to switch to Linux since it is easier to do os dev. Just in case, I haven't tested this formula yet https://github.com/nativeos/homebrew-i386-elf-toolchain, it seems support older grub version :).

ajh123 commented 2 years ago

I will try them first, thanks!

ajh123 commented 2 years ago

Everything I do still seems not to work :( . Can you provide a docker image that can be used to build?

ghost commented 1 year ago

Mac Os, thank you for helping!

That's your issue. You're on a Mac.

ghost commented 1 year ago

Everything I do still seems not to work :( . Can you provide a docker image that can be used to build?

Good God dude... You seem like you have no idea what your doing. I'd advice you stick to simple userspace projects.

ajh123 commented 1 year ago

I might as well just close this now. I should closed this ages ago.