From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ji7l0-0004fC-07 for mharc-grub-devel@gnu.org; Sat, 05 Apr 2008 08:44:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ji7kw-0004Zl-R5 for grub-devel@gnu.org; Sat, 05 Apr 2008 08:44:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ji7kt-0004VW-9s for grub-devel@gnu.org; Sat, 05 Apr 2008 08:44:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ji7ks-0004VF-T7 for grub-devel@gnu.org; Sat, 05 Apr 2008 08:44:22 -0400 Received: from mailout04.t-online.de ([194.25.134.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ji7ks-0003Yt-Hx for grub-devel@gnu.org; Sat, 05 Apr 2008 08:44:22 -0400 Received: from fwd28.aul.t-online.de by mailout04.sul.t-online.de with smtp id 1Ji7kr-00048H-00; Sat, 05 Apr 2008 14:44:21 +0200 Received: from [10.3.2.2] (ZXEbGeZawhR2bu9bkDuCJ1tpknPJPffGsbGBq2dpeoA-lowpHDdin-onaY7YX4qZOK@[217.235.192.105]) by fwd28.aul.t-online.de with esmtp id 1Ji7kc-2AN8kK0; Sat, 5 Apr 2008 14:44:06 +0200 Message-ID: <47F77418.2020906@t-online.de> Date: Sat, 05 Apr 2008 14:44:08 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: The development of GRUB 2 References: <1JhPUa-0XNW4m0@fwd35.aul.t-online.de> <47F53689.30307@t-online.de> <1207255136.2447.14.camel@dv> In-Reply-To: <1207255136.2447.14.camel@dv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: ZXEbGeZawhR2bu9bkDuCJ1tpknPJPffGsbGBq2dpeoA-lowpHDdin-onaY7YX4qZOK X-TOI-MSGID: 701a7c24-8dc7-413f-8e23-f5bffbeaa4b2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] grub2 for Cygwin X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2008 12:44:27 -0000 Pavel Roskin wrote: > On Thu, 2008-04-03 at 21:56 +0200, Christian Franke wrote: > > >> OK, if there is no chance to get this accepted, grub2 project managers >> should tell me soon. >> > > I'm not a project manager, but I would hate to see useful code > discarded. > :-) > I think the ability to install GRUB from Windows would allow creating > installers for Windows that install a free OS without reboots and would > not rely on booting from any media other than the hard drive. I think a > non-Cygwin port would be preferred for that, but Cygwin could be a > useful stepping stone, a testbed and the build environment for the > native port. > > Yes, it actually is. I also use cygwin to build the non-Cygwin packages for my other Windows ports (smartmontools, hdparm). Cygwin's "kernel" is essentially a dll which emulates a Linux/POSIX API. The GRUB2 cygwin binaries need only the following files to run OOTB from Windows cmd.exe: cygwin1.dll cyglzo2-2.dll cygncurses-8.dll (grub-emu only) terminfo/c/cygwin (grub-emu only) The shell scripts would require additional files from bash and coreutils, of course. > ... > Maybe we could start with simple changes that don't make the code > significantly more complex? > OK, then I would suggest to (re)start with the small change for grub-mkdevicemap. http://lists.gnu.org/archive/html/grub-devel/2007-12/msg00179.html The patch is still current and already got positive feedback from Marco and Robert. I can also repost it, if desired. > I think it would be nice to have a universal infrastructure for all > platforms that would use linker scripts instead of strip and objcopy on > all platforms. > objcopy has to be used if the native object format on a platform is not (the) ELF (variant the grub loader expects). Unfortunately, libbfd is apparently not designed to support conversion of relocation info. > Perhaps you could clone git://repo.or.cz/grub2.git and keep the patches > in your local copy? OK, added this as remote to my repo. > The great thing about git is that it relieves the > urgency of merges, as the changes can be held as separate patches and > rebased to the current tree as needed. > > BTW: Thanks to the clean upstream changes, merging from CVS was never a problem since I started the Cygwin port in oct 2007. >> The cygwin port of grub2 is targeted to users who want a *n[iu]x >> environment, but (have to) use Windows as main work OS for whatever >> reason. They likely have already installed cygwin :-) >> > > Why would they benefit from GRUB? Just wondering. > > The ability to maintain the boot manger and create rescue discs from Cygwin shell without reboot is useful. (There were some requests for a Cygwin release in the past, e.g: http://savannah.gnu.org/bugs/?20497) Christian