All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] grub2 for Cygwin
@ 2007-10-16 12:03 Christian Franke
  2007-10-16 13:34 ` Robert Millan
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Christian Franke @ 2007-10-16 12:03 UTC (permalink / raw)
  To: grub-devel

Hi,

I would like to contribute my Cygwin port of grub2.

A patch vs. current CVS (cvs co -D "2007-10-16 UTC" ...) is available
here:
http://franke.dvrdns.org/cygwin/grub/grub2-20071016-cygwin.patch
A proposed changelog entry is located in the patch itself
(Changelog.cygwin).

A compiled version is here:
http://franke.dvrdns.org/cygwin/grub/grub2-20071016-cygwin.tar.bz2
(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
versa.

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

Cheers,

Christian






^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [PATCH] grub2 for Cygwin
@ 2008-04-03 13:28 Christian Franke
  2008-04-03 16:02 ` Bean
  2008-04-13 10:39 ` Robert Millan
  0 siblings, 2 replies; 25+ messages in thread
From: Christian Franke @ 2008-04-03 13:28 UTC (permalink / raw)
  To: The development of GRUB 2

Bean wrote:
> On Thu, Apr 3, 2008 at 6:07 AM, Christian Franke
>  wrote:
> > ...
> > Just for info: GRUB2 is now available as an experimental package in
> > the Cygwin distribution.
> > 
> 
> Hi,
> 
> That's nice, but how do you create elf file in cygwin, use cross
> compilation tools ?
> 

The cygwin distro does not include any cross compilation tools. A
package that require tools not in the distro would not be accepted.

The package is actually build with native cygwin gcc+binutils.

The related discussion+patches are already on this list, e.g:
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00238.html
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00237.html
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00174.html
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00161.html
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00160.html

> ... Also, are tools like grub-setup working in cygwin
> environment ?
> 

Yes, grub-setup builds and works OOTB. "grub-install /dev/sda",
grub-emu, grub-mkrescue, ... all work as expected. I use the cygwin
version of GRUB2 on two Windows+Linux work PC. It is IMO useful to
install+maintain boot manager from cygwin bash when Windows is the main
work OS.

Christian






^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2008-04-15 14:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 12:03 [PATCH] grub2 for Cygwin Christian Franke
2007-10-16 13:34 ` Robert Millan
2007-10-20 23:37 ` Robert Millan
2007-10-21 13:07   ` Christian Franke
2007-10-21 13:18     ` Vesa Jääskeläinen
2007-10-21 13:51       ` Christian Franke
2007-10-21 14:13         ` Robert Millan
2007-11-09 13:57         ` Marco Gerards
2007-11-09 15:07           ` Christian Franke
2008-04-02 22:07 ` Christian Franke
2008-04-03  8:03   ` Bean
  -- strict thread matches above, loose matches on Subject: below --
2008-04-03 13:28 Christian Franke
2008-04-03 16:02 ` Bean
2008-04-03 19:56   ` Christian Franke
2008-04-03 20:38     ` Pavel Roskin
2008-04-05 12:44       ` Christian Franke
2008-04-07  2:07         ` Pavel Roskin
2008-04-07 19:46           ` Christian Franke
2008-04-13 10:37             ` Robert Millan
2008-04-13 10:39 ` Robert Millan
2008-04-13 20:24   ` Christian Franke
2008-04-14 12:00     ` Robert Millan
2008-04-14 13:36       ` Christian Franke
2008-04-15 13:12         ` Robert Millan
2008-04-15 14:26           ` Christian Franke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.