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!
GRUB GRUB2 load file to fix address
GRUB GRUB2 load file to fix address
Enjoy my life!------A fish with a tattooed retina
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: GRUB GRUB2 load file to fix address
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
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!
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!
Enjoy my life!------A fish with a tattooed retina
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: GRUB GRUB2 load file to fix address
Did you ever find an simple explanation of how to apply string theory in daily life?lemonyii wrote:if any EASY UNDERSTANDING pages, post a link
Re: GRUB GRUB2 load file to fix address
Enjoy my life!------A fish with a tattooed retina