[Top][All Lists]

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

[PATCH] grub2 for Cygwin

From: Christian Franke
Subject: [PATCH] grub2 for Cygwin
Date: Tue, 16 Oct 2007 14:03:35 +0200


I would like to contribute my Cygwin port of grub2.

A patch vs. current CVS (cvs co -D "2007-10-16 UTC" ...) is available
A proposed changelog entry is located in the patch itself

A compiled version is here:
(Caution: grub-setup/install only tested in a VM yet ;-)

Major changes:

- Option -N of Cygwin ld has no effect. This is handled by a linker
script detected by configure.

- Cygwin gas supports only PE format, not ELF. The ".previous" and
".type" directive have been removed and the loader changed accordingly.

- For Cygwin, ELF .mod files are produced by an extra objcopy step.
Unfortunately, objcopy has a bug when converting PE to ELF: The pc
relative relocation offsets are not adjusted. This is handled by an ugly
hack in the loader. I hope to find a fix for objcopy.

- The HAVE_ASM_USCORE case is now handled properly. It actually works to
load modules compiled on Linux by a kernel compiled on Cygwin and vice

- Added options "-t prefix" and "-t all" to grub-probe.

- grub-emu curses KEY_*s work now.

- Fixed 2 bugs in "(host)" filesystem, grub-emu now finds partitions.

- Two fixes in the memory map evaluation, added a primitive memory
existence test.

Open issues found during testing:

- Cygwin "prefix" detection does no work for path below /cygdrive/.

- update-grub does not work on Cygwin yet.

- A memtest86+ zImage (from grml 1.0) does not boot when loaded with
"linux" command. Same image works with "kernel" command from grub 0.97.

- "terminal gfxterm", "videotest" and "vbetest" do not work. Characters
are not visible. This could also be reproduced when compiled on Linux.

Thanks for any comment.



reply via email to

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