Skip to contentSkip to conversation

My implementation of the grub2 boot rom

DISCUSSION Bean 2 participants 2 messages Dec 2, 2007 – Aug 23, 2009

lore
Share & tools
lore

Bean

author
#0 lore raw

Hi,

I've written my own code for grub2 boot rom, the steps are:

1, Use make to compile romboot.S and grub-mkrom.c, it will generate romboot.img and grub-mkrom.
2, Create kernel image core.img with grub-mkimage
3, Create rom image with grub-mkrom, like this:

grub-mkrom romboot.img core.img output_file

grub-mkrom support the following options:

-m message Boot message

 -t timeout            Timeout in seconds
 -k key                Hotkey
 -x edx                Value of EDX

default hotkey is SPACE, default timeout is 2 seconds.

The new code is much smaller than the romos version (only 240 bytes), and it runs grub2 after POST, so that int 13 can be used to access the disk.

Signature · 1 line
Bean
#1 lore raw

Hi Bean,

It appears this has been overlooked for quite a while. If you could resync and re-send it as a patch, I'll be glad to review and see about getting it merged.

Quoted 32 lines · Bean

Hi,

I've written my own code for grub2 boot rom, the steps are:

1, Use make to compile romboot.S and grub-mkrom.c, it will generate romboot.img and grub-mkrom.
2, Create kernel image core.img with grub-mkimage
3, Create rom image with grub-mkrom, like this:

grub-mkrom romboot.img core.img output_file

grub-mkrom support the following options:

-m message Boot message

 -t timeout            Timeout in seconds
 -k key                Hotkey
 -x edx                Value of EDX

default hotkey is SPACE, default timeout is 2 seconds.

The new code is much smaller than the romos version (only 240 bytes), and it runs grub2 after POST, so that int 13 can be used to access the disk.

Signature · 7 lines
Bean


_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 5 lines
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."