mos icon indicating copy to clipboard operation
mos copied to clipboard

Build says mos.bin is not multiboot

Open ajh123 opened this issue 3 years ago • 8 comments
trafficstars

ajh123 avatar Dec 03 '21 20:12 ajh123

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 avatar Dec 04 '21 08:12 ajh123

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

ajh123 avatar Dec 06 '21 17:12 ajh123

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

MQuy avatar Dec 06 '21 19:12 MQuy

Mac Os, thank you for helping!

ajh123 avatar Dec 06 '21 19:12 ajh123

My GRUB version is 2.11

ajh123 avatar Dec 06 '21 19:12 ajh123

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 :).

MQuy avatar Dec 06 '21 19:12 MQuy

I will try them first, thanks!

ajh123 avatar Dec 06 '21 19:12 ajh123

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

ajh123 avatar Dec 07 '21 12:12 ajh123

Mac Os, thank you for helping!

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

ghost avatar Jan 07 '23 06:01 ghost

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.

ghost avatar Jan 07 '23 06:01 ghost

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

ajh123 avatar Jan 09 '23 10:01 ajh123