No module information in multiboot2 tags
Posted: Mon May 23, 2016 6:44 pm
Hello,
I'm trying to get the module address so I can access my initrd. My old kernel would get it using a similar grub.cfg, but using multiboot1. Now I'm trying to use multiboot2 to boot the new x86_64 kernel. I already was able to get the framebuffer info and the memory map. The problem is that grub 2 doesn't pass the module tag to the kernel. I tried messing with the header tags but it didn't change a thing.
My grub.cfg:
Multiboot2 header: https://github.com/PedroFalcato/Spartix ... _64/boot.S
Multiboot2 tag parsing code: https://github.com/PedroFalcato/Spartix ... kernel.cpp
Thanks for the help
I'm trying to get the module address so I can access my initrd. My old kernel would get it using a similar grub.cfg, but using multiboot1. Now I'm trying to use multiboot2 to boot the new x86_64 kernel. I already was able to get the framebuffer info and the memory map. The problem is that grub 2 doesn't pass the module tag to the kernel. I tried messing with the header tags but it didn't change a thing.
My grub.cfg:
Code: Select all
menuentry "Spartix" {
set timeout=10
loadfont unicode
insmod vbe
insmod vga
insmod xzio
insmod gzio
insmod gfxterm
terminal_output gfxterm
echo "Loading the vmspartix kernel"
multiboot2 /boot/vmspartix.xz
echo "done."
set gfxpayload=1024x768x32
echo "Loading the initrd"
module /boot/initrd.tar.xz
echo "done."
boot
}
Multiboot2 tag parsing code: https://github.com/PedroFalcato/Spartix ... kernel.cpp
Thanks for the help