Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fW2Xq-0000GF-E4 for mharc-grub-devel@gnu.org; Thu, 21 Jun 2018 12:34:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW2Xn-0000Dx-Sl for grub-devel@gnu.org; Thu, 21 Jun 2018 12:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW2Xk-00052k-LK for grub-devel@gnu.org; Thu, 21 Jun 2018 12:34:47 -0400 Received: from mout.gmx.net ([212.227.17.21]:58427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW2Xk-00051G-By for grub-devel@gnu.org; Thu, 21 Jun 2018 12:34:44 -0400 Received: from BlackEye ([91.43.48.148]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LguAU-1g1Gkx1I1u-00oFom; Thu, 21 Jun 2018 18:34:41 +0200 From: To: "'Daniel Kiper'" Cc: References: <001001d3fcfa$a3abb880$eb032980$@gmx.de> <20180615120737.GA17811@router-fw-old.local.net-space.pl> <005101d404cc$5284c760$f78e5620$@gmx.de> <20180620104135.GC4455@router-fw-old.local.net-space.pl> <000101d408ab$3052f580$90f8e080$@gmx.de> <20180621143917.GD4455@router-fw-old.local.net-space.pl> In-Reply-To: <20180621143917.GD4455@router-fw-old.local.net-space.pl> Subject: AW: Grub2 EFI: compatibility with wimboot Date: Thu, 21 Jun 2018 18:34:41 +0200 Message-ID: <002901d4097d$c1b58dd0$4520a970$@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQME53eGOkl71xcH+nk3vGjWcSi8+QE1CBXUAi1EJvgCexR47QHJTpPfAahpTJ+hvq9rEA== Content-Language: de X-Provags-ID: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uOlIp0EWR t6cXonA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.21 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2018 16:34:49 -0000 Hello, the problem is that with this method you can only load a wim file. I have several windows ISOs that should boot separately. Of course it would be really nice if you could load wimboot EFI with parameters directly via grub2 EFI. So with menutrys P.S. The combination of shim, grub2 EFI and wimboot EFI with the command: chainloader /wimboot rawbcd rawwim leads to an error: "Could not install security protocol: (0x2) Invalid Parameter". Jame -----Urspr=FCngliche Nachricht----- Von: Daniel Kiper =20 Gesendet: Donnerstag, 21. Juni 2018 16:39 An: jame88fane@gmx.de Cc: 'Daniel Kiper' ; grub-devel@gnu.org Betreff: Re: Grub2 EFI: compatibility with wimboot On Wed, Jun 20, 2018 at 05:27:23PM +0200, jame88fane@gmx.de wrote: > No it is windows UEFI 64bit on a UEFI 64bit platform Great! > it doesn't matter anyway because even if I try to boot only Wimboot=20 > EFI from > Grub2 EFI without parameters I also get a blackscreen. > > I mean: > > menuentry "Windows 7" { > linux /boot/wimboot/wimboot > } > > I can't get linux16 to work in EFI, can I? As I can see this command is enabled on UEFI x64 platforms. However, = there is a pretty good chance that it does not work and probably it should be disabled in the future on UEFI compatible platforms. Anyway, I have = managed to boot Windows using wimboot with chainloader. It required some = experiments and wimboot code reading. First of all you have to have an EFI System Partition (ESP) on a disk (probably other FAT formated partitions will work too; however, I have = not tested that). Then you have to copy wimboot, bcd, boot.sdi and boot.wim = to the ESP root directory. Please use UEFI x64 binaries. After that boot = GRUB and execute following commands from its command line: set root=3D(hd0,1) # This have to be an ESP. chainloader /wimboot rawbcd rawwim boot By the way, wimboot command line processing is very crude. It is sad = that it does not accept paths to required files. I hope that it will be fixed at some point. There is also another option. Copy follwing files to an ESP: - /amd64/efi/boot/bootx64.efi -> ESP:/efi/microsoft/boot/bootx64.efi (do not use /amd64/bootmgr.efi; it is designated for ISO images; it will not work; additionally, destination does no matter in this case; directory and file name can be arbitrary one), - /amd64/boot/boot.sdi -> ESP:/boot/boot.sdi - /amd64/efi/microsoft/boot/bcd -> ESP:/efi/microsoft/boot/bcd - /amd64/winpe.wim -> ESP:/sources/boot.wim After that boot GRUB and execute follwing commands from its command = line: set root=3D(hd0,1) # This have to be an ESP. chainloader /efi/microsoft/boot/bootx64.efi boot You are done! Have a fun! WRT GRUB linux command. I think that there is a bug or lack of support = in GRUB and/or wimboot for something. Probably this is small thing. Sadly I do not have time to investigate it further. If somebody would = like to take a look at the issue and prepare the patches then I am happy to review them. FYI, I have tested that with GRUB upstream. By the way, I think that it is worth putting this doc at iPXE webpage = and/or GRUB doc. Any volunteers? Daniel