Page 1 of 1

GRUB GRUB2 load file to fix address

Posted: Tue Nov 30, 2010 11:35 pm
by lemonyii
hi,
i've been using iso+grub2+multiboot2.
with GRUB2 or GRUB, how can i load things to FIXED(can set in grub.cfg) address?
i saw many people use "initrd", and i saw "kernel","module". but i don't quite understand. it seems "module" match the most, but can it modify an address? i'd like things to be like:
menuentry "Trive OS"
{
load 0x123456 /path/filename
......
multiboot /boot/setup.bin
boot
}
i dont want to get address through multiboot, and sometimes i'm afraid grub will load files to a place i don't hope to.
thank you!

Re: GRUB GRUB2 load file to fix address

Posted: Wed Dec 01, 2010 12:03 am
by Combuster
Do you have any concrete examples? Modules won't be loaded outside of RAM, or where your kernel is. If you really need them at fixed addresses you will have to put them there yourself, either by moving them from GRUB's default location, or by writing your own bootloader.

Re: GRUB GRUB2 load file to fix address

Posted: Wed Dec 01, 2010 12:20 am
by lemonyii
maybe i would write one myself.
i've got a good one with FAT32 support, but what made me headache is ISO9660/El-torito specification, millions of descriptors with no figures. i dont even have an idea about the volume structure! if any EASY UNDERSTANDING pages, post a link, i would really appreciate that.
thank you!

Re: GRUB GRUB2 load file to fix address

Posted: Wed Dec 01, 2010 1:47 am
by Combuster
lemonyii wrote:if any EASY UNDERSTANDING pages, post a link
Did you ever find an simple explanation of how to apply string theory in daily life?

Re: GRUB GRUB2 load file to fix address

Posted: Wed Dec 01, 2010 2:17 am
by lemonyii
:mrgreen: