Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Hello, I recently started out testing some osdev, first with some C tutorials, but have now decided to create my kernel in assembly and load it with grub.
It assemblies fine with NASM (nasm -f bin -o kernel.bin kernel.asm) but it won't boot with grub, I get a "Error 13: Invalid or unsupported executable format"
Can anyone take a quick look I can't figure out what I am doing wrong, I have checked some other assembler kernels thats multiboot but can't figure out what I'm doing wrong, code follows.
Your multiboot header is (as the error says) invalid. Try fixing the start address for starters.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Got it to load now, as a flat binary. Im not 100% sure, but I think it was cause the start address was not pointing to the very start of the binary file?