Qemu -kernel option, where is Memory Map?

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.
Post Reply
User avatar
CorruptedByCPU
Member
Member
Posts: 79
Joined: Tue Feb 11, 2014 4:59 pm

Qemu -kernel option, where is Memory Map?

Post by CorruptedByCPU »

I can bootup my kernel with OWN bootloader (named: omega) and GRUB (multiboot v1).
Kernel can recognize that.

But, if i boot kernel with Qemu and option -kernel, there is kernel panic about Memory Map not found.
How is it done? Did Qemu gives something else than Multiboot v1? (is it v2?)
https://blackdev.org/ - system programming, my own 64 bit kernel and software.
Wallbraker
Posts: 2
Joined: Wed Mar 23, 2016 4:17 am
Libera.chat IRC: Prf_Jakob

Re: Qemu -kernel option, where is Memory Map?

Post by Wallbraker »

I'm using Qemu and get a memory map with the -kernel option. Just remember to set the MEMINFO flag in your multiboot header.

Code: Select all

%define FLAG_MEMINFO		1<<1
Post Reply