Ramdomly Random
Ramdomly Random

Reputation: 57

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

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

Upvotes: 0

Views: 651

Answers (1)

unixsmurf
unixsmurf

Reputation: 6234

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.

Upvotes: 0

Related Questions