-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot Windows directly from the ISO #4
Comments
I was thinking of wimboot and pure grub2 with patches (wimboot, secure boot etc). |
We need to patch to either GRUB2 or wimboot. |
I am currently using grub2 from Ubuntu. The one from openSUSE is just a source code repo. It is more complicated than I thought. I need some time to familiarise myself with it all. |
I have ported wimboot to gnu grub 2.06 (x86_64-efi), and grub2-ubuntu may work without modification.
usage:
|
Thank you very much. I will test it in the coming days. |
@Mexit any comments on my solution? |
It works! At this moment I tested your solution with GRUB without any modifications. Can your solution work in the BIOS version as well? |
No. We can only use |
I have returned to the subject of wimboot.... Not enough time... Is there still any chance in this case to add wimboot to grub 2.12? Another problem I've encountered is with the latest //efiboot.c
if (status != GRUB_EFI_SUCCESS)
grub_fatal("cannot load image\n"); |
GRUB 2.12 has added support for loading initrd using the LoadFile2 protocol on x86 platforms, so you can patch wimboot and boot it. |
Excellent work a1ive! |
This is related to the UEFI memory mapping. If you're using a virtual machine, please increase the allocated memory. |
I've thought about that too. Unfortunately it doesn't help. It may be a bug in GRUB. I found the code fragment responsible for this: #ifdef GRUB_MACHINE_EFI
grub_efi_mmap_iterate (grub_relocator_alloc_chunk_align_iter, &ctx,
avoid_efi_boot_services);
#elif defined (__powerpc__) || defined (GRUB_MACHINE_XEN)
(void) avoid_efi_boot_services;
grub_machine_mmap_iterate (grub_relocator_alloc_chunk_align_iter, &ctx);
#else
(void) avoid_efi_boot_services;
grub_mmap_iterate (grub_relocator_alloc_chunk_align_iter, &ctx);
#endif
if (!ctx.found)
return grub_error (GRUB_ERR_BAD_OS, "couldn't find suitable memory target");
} |
I was able to extract some information from the boot process.
|
You are right. GRUB 2 won't use LoadFile2 if shim is enabled. |
It almost worked:
|
|
UEFI: Secure Boot must be disabled during installation: https://git.savannah.gnu.org/cgit/grub.git/commit/?id=6425c12cd77ad51ad24be84c092aefacf0875089 Windows ISO images are larger than 4GB, please use exFAT instead of fat32 when installing MultiOS-USB. If you want to install Win11 on unsupported hardware, you can manually apply the attached registry entries before starting the installation.
@a1ive |
Nice project.
I see on windows_support.md that it says
How are you going to implement it? Any good ideas? I might be able to help you.
The text was updated successfully, but these errors were encountered: