worproject / rpi5-uefi

EDK2 firmware images for Raspberry Pi 5
https://worproject.com
243 stars 6 forks source link

Installation of Windows 11 #2

Open zap8600 opened 5 months ago

zap8600 commented 5 months ago

Are there any instructions on how to install Windows 11 on the Raspberry Pi 5? I'd use the Windows on Raspberry PE-based installer, but I'm not sure it'll work on the Raspberry Pi 5.

333337lee commented 5 months ago

How to install Windows 11 on a Raspberry Pi 5 https://youtu.be/haeYUq4RHbk

huesie commented 3 months ago

With PCIe support in v0.3 - has @333337lee had any success in running from PCIe (I get as far as 'Invalid Boot Device' but am going to dig into it further in next few days) ... big fan of your videos btw!

333337lee commented 3 months ago

Not yet, I already had Windows 10 on an SSD from a while ago. I used this latest uefi boot on an sd card

windows 10, 11 Raspberry Pi 5. NEW UEFI boot update. https://youtu.be/M7c3LhTM_8g

JokerProTW commented 3 months ago

First of all, many thanks to the creators for the fantastic “worproject”!

I want to install WIN11 on NVMe SSD via PCIe:

I have the same problem as @huesie, when I boot from NVMe then comes: 'INACCESSIBLE_BOOT_DEVICE'

Further: If I boot W11 from USB or SD then everything is OK

  1. Try with Botspot wor-flasher:
    • the same problems
    • Installer says in the log: cannot initialize the disk

I think: Windows cannot find the installation disk. Is the problem with the HAT or the NVMe SSD? Has anyone managed to install W11 on an NVMe SSD, with what hardware? Does something need to be changed in the UEFI setup? Is a driver missing?

Thank you

mariobalanica commented 3 months ago

NVME and AHCI boot need these drivers: https://github.com/worproject/dldserv-mirror/releases/download/13%2F02%2F2024/storage_v4.zip

Copy them to \Windows\System32\drivers after taking ownership of the original files.

My Micron 2200S 256 GB worked fine, but some drives may not do, for unknown reasons.

image

huesie commented 3 months ago

Thanks @mariobalanica that worked perfectly - exactly as you described!

For anyone else needing tips:

1) Prepare small MicroSD FAT32 with UEFI v0.3 files + WoR Imager with the NVMe connected to a Windows PC - see @333337lee's video for all of this: https://youtu.be/haeYUq4RHbk - NB: RPi3 drivers (not RPI4) worked for me.

2) Follow @mariobalanica's instructions for replacing the storahci.sys and stornvme.sys files before moving the NVMe to the Pi: https://github.com/worproject/rpi5-uefi/issues/2#issuecomment-2016505218

3) Booting from the small MicroSD UEFI v0.3 and with the NVMe in the Pi - it worked first time for me - hardware:

RPi5 8GB with latest firmware + old Sandisk 2GB uSD FAT32 for UEFI + Geekworm X1001 (the later version with just the 1× 'Activity' light) + Samsung PM981 256GB NVMe M.2 + GeeekPi Aluminium Case that included official active cooler. NB: I have no affiliation with any of these products - just thought it might help to know exact configuration that worked for me.

JokerProTW commented 3 months ago

Thanks @mariobalanica and thanks @huesie, yes it works now! Annotation: In step 2 you can immediately copy the UEFI v0.3 files into the boot partition of the NVMe. Then you don't need the SD card. Step 3: boot directly from NVMe and install Windows.

It obviously works with many NVMe's, I tested it with: -Samsung 970 EVO -SanDisk Extreme PRO (I also have no affiliation with any of these products)

My Widows version currently: 23H2, 22631.2861

333337lee commented 2 months ago

Request please,

640 x 480 and 1280 x 720 resolution

both provide a performance boost when running games. The Pi 4 had a selection option in uefi.

I have tried with config.txt but never had success

Sorcroc commented 2 months ago

Sorry to bump a rather closed topic but i have a question about your comment regarding "step 2" https://github.com/worproject/rpi5-uefi/issues/2#issuecomment-2016634426 @JokerProTW. I want to boot with only 1 drive plugged in and my windows is already installed. Does the boot partition need to be empty to paste the UEFI v0.3 files or do you just leave it at the root of the windows boot partition ?

Thank you

JokerProTW commented 2 months ago

Additionally copy the UEFI v0.3 files into the Windows boot partition (EFI partition), the existing Windows files remain there.

dehrle0 commented 2 months ago

The updated drivers fixed the issue. Much Thanks!!!

huesie commented 1 month ago

Windows 11 Update 23H2, automatically installed by Window Update, was hanging on reboot and starting 'Windows Automatic Recovery' which did not work. Several drivers had been updated including stornvme.sys. This was fixed for me by re-installing the RPi3 drivers - see: https://worproject.com/faq#how-can-i-update-the-drivers (edited to add this) AND repeating the steps in @mariobalanica post: https://github.com/worproject/rpi5-uefi/issues/2#issuecomment-2016505218

daniol commented 2 weeks ago

How can I install both Windows 11 and UEFI on the same SD card, without having an external drive?