Skip to contentSkip to conversation

Adapting GRUB to boot directly from RAM in protected mode

DISCUSSION Patrick Connolly 4 participants 4 messages Feb 8, 2007 – Feb 14, 2007

lore
Share & tools
lore
#0 lore raw

Can anyone think of a straightforward way to modify GRUB to boot a linux kernel directly from RAM in protected mode?

We have an embedded system with a special BIOS that places a file (any file) at a fixed location in RAM and executes it (in protected mode) starting at that same fixed location. We'd like the file to be a linux kernel (with boot code) and we're wondering if GRUB could be adapted to do this. We realize that some assembly-level modifications would be needed but we aren't sure how extensive those modifications might be expected to be.

Patrick

#1 lore raw
Quoted 10 lines · Patrick Connolly

Can anyone think of a straightforward way to modify GRUB to boot a linux kernel directly from RAM in protected mode?

We have an embedded system with a special BIOS that places a file (any file) at a fixed location in RAM and executes it (in protected mode) starting at that same fixed location. We'd like the file to be a linux kernel (with boot code) and we're wondering if GRUB could be adapted to do this. We realize that some assembly-level modifications would be needed but we aren't sure how extensive those modifications might be expected to be.

You should be able to easily write a simple loader for GRUB2. No idea about GRUB Legacy.

-Hollis

#2 lore raw
In reply to Patrick Connolly

Hi,

Quoted 9 lines · Patrick Connolly

Can anyone think of a straightforward way to modify GRUB to boot a linux kernel directly from RAM in protected mode?

We have an embedded system with a special BIOS that places a file (any file) at a fixed location in RAM and executes it (in protected mode) starting at that same fixed location. We'd like the file to be a linux kernel (with boot code) and we're wondering if GRUB could be adapted to do this. We realize that some assembly-level modifications would be needed but we aren't sure how extensive those modifications might be expected to be.

You might want to have a look at LinuxBIOS, it seems like it can do what you want: http://linuxbios.org

HTH, Uwe.

Signature · 2 lines
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
#3 lore raw

Thanks for the suggestion, but changing the BIOS is not an option. This is for customer support; it's intended to boot on already-purchased customer units without changing their unit in any way.

Patrick

Quoted 5 lines · Uwe Hermann

You might want to have a look at LinuxBIOS, it seems like it can do what you want: http://linuxbios.org