Grub2 + wimboot to boot .wim file in EFI mode
|
2016-06-30, 04:47
(This post was last modified: 2016-07-08 04:14 by Ryan.)
Post: #1
|
|||
|
|||
Grub2 + wimboot to boot .wim file in EFI mode
Hi there,
I am trying to boot.wim file using GRUB2 EFI + wimboot. The boot.wim file is extracted from Windows installation .ISO Before that I successfully boot boot.wim file using iPXE in both BIOS and EFI mode. Here is my script code: Code: kernel ${boot-url}/wimboot/wimboot gui pause iPXE BIOS iPXE EFI Then I converted the above code to use only GRUB2 and wimboot (without iPXE): Code: menuentry "Wimboot" { It boot fine in BIOS mode and show the same screenplay as it was in iPXE BIOS case. But in EFI mode, I only got black screen and never get into the setup menu. Since the screen was black, I did not get any notifications that wimboot is in EFI mode (In EFI mode, wimboot uses BOOTx64.efi instead of bootmgr.exe). So my questions are: 1. How to ensure that wimboot get into EFI mode? Does it need iPXE to get wimboot into EFI mode, or wimboot can alone doing that? 2. In my opinion, the first code runs in iPXE environment, the second code runs in GRUB2 environment which may cause the problem. But how to fix it? 3. As I understand, iPXE only support chainload in Network mode (script file must be load off the network). Could iPXE support chainload in local (script file in local disk)? i.e Code: chain /local-root/myscript.ipxe |
|||
2016-07-04, 11:41
Post: #2
|
|||
|
|||
RE: Grub2 + wimboot to boot .wim file in EFI mode
[quote='Ryan' pid='12757' dateline='1467258443']
Code: menuentry "Wimboot" { That is a BIOS-only configuration. It will not work in UEFI. As far as I know, GRUB2 is not capable of supporting wimboot under UEFI. You will need to use iPXE to load wimboot directly (which you already have working). Quote:3. As I understand, iPXE only support chainload in Network mode (script file must be load off the network). Could iPXE support chainload in local (script file in local disk)? Yes, you can do that with iPXE in UEFI. Use the "file://" URI scheme to access local filesystems. See http://git.ipxe.org/ipxe.git/commitdiff/9913a40 for more details. Michael |
|||
2016-07-08, 06:11
Post: #3
|
|||
|
|||
RE: Grub2 + wimboot to boot .wim file in EFI mode
Quote:Yes, you can do that with iPXE in UEFI. Use the "file://" URI scheme to access local filesystems. See http://git.ipxe.org/ipxe.git/commitdiff/9913a40 for more details. Thank you for your answer. I tried but could not figure it out. From Grub2 on local disk, I chainload the ipxe.efi Code: menuentry "chainloader EFI"{ Could you let me know how to make to work? |
|||
2016-07-08, 08:34
Post: #4
|
|||
|
|||
RE: Grub2 + wimboot to boot .wim file in EFI mode
(2016-07-08 06:11)Ryan Wrote: Could you let me know how to make to work? Is the filesystem in question accessible as an EFI_SIMPLE_FILE_SYSTEM_PROTOCOL? You can test this by starting the UEFI shell (not the iPXE shell). The "map" command will show you the filesystems that UEFI itself can access. Michael |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)