Simple kernel won't boot in GRUB

后端 未结 1 639
你的背包
你的背包 2021-01-30 23:06

I\'m learning a bit of OS development from OSDev.org. I have a kernel and I\'m trying to boot in GRUB Legacy (0.97) using qemu. However, when I type kernel 200+9, I

相关标签:
1条回答
  • 2021-01-30 23:37

    +1 for nice question with all the details, thank you.

    At least on my machine the generated kernel.bin comes out as 4869 bytes, which only fits in 10 sectors not 9. Also, the VGA text memory is at 0xb8000 not 0xb800 (one more zero - 0xb800 is the real mode segment, has to be multiplied by 16). With those little adjustments it works fine here.

    0 讨论(0)
提交回复
热议问题