Find location of GRUB2/Multiboot 'module' (aka initrd)

507 views Asked by At

I am working on an OS, and need to load an INITRD (grub command "module") and can't find info on where (in RAM) the module is loaded to

Does grub have a way of telling me or is it a fixed address or none of the above? Any help would be appreciated

1

There are 1 answers

0
unixsmurf On

This information is passed to the OS as part of the multiboot information structure data.

Although if you're working on a new OS, you may want to follow the (incompatible) Multiboot2 specification (using grub commands multiboot2/module2) instead.