Page 1 of 1

Qemu -kernel option, where is Memory Map?

Posted: Wed Mar 30, 2016 4:16 am
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?)

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

Posted: Thu Mar 31, 2016 1:30 pm
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