grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] i386-qemu port


From: Robert Millan
Subject: [PATCH] i386-qemu port
Date: Sun, 21 Jun 2009 20:17:48 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi,

I ported GRUB to QEMU.  It's mostly based on the coreboot port, with the
main difference being that we include code to transition from i8086 mode,
an i386 firmware entry point and produce raw code images instead of ELF.

The result is you can do e.g.

  $ sudo grub-mkrawimage at_keyboard normal etc -o /usr/share/qemu/grub

and then:

  $ qemu -bios grub -hda /dev/zero

grub-mkrawimage will automatically generate an image of arbitrary size,
depending on the number of modules that were included (or the size of
the memdisk).  The only restriction imposed by qemu is that it must be
64k-aligned (zero-padding is used to archieve that).

This patch is incomplete, still includes a few hacks and needs general
cleanup.  I'll send a few cleanup patches separately so we can integrate
this avoiding code duplication and ugly kludges.

-- 
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."

Attachment: qemu.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]