worproject / rpi5-uefi

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

Installation of Windows 11 #2

Open zap8600 opened 10 months ago

zap8600 commented 10 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 10 months ago

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

huesie commented 8 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 8 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 8 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 8 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 8 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 8 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 7 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 7 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 7 months ago

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

dehrle0 commented 6 months ago

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

huesie commented 6 months 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 5 months ago

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

clennon81 commented 4 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

These drivers dont seem to work with the new version of Windows 11 that was released, when I try to use them it says they are not digitally signed. How are they updaated?

zipino commented 4 months ago

Hi everyone, is there a way to install Win 11 on Raspberry Pi 5 with NVMe PCIe M.2 thanks

zipino commented 4 months ago

Grazie @mariobalanica ha funzionato perfettamente, esattamente come hai descritto!

Per chiunque altro abbia bisogno di consigli:

1. Preparare una piccola MicroSD FAT32 con file UEFI v0.3 + WoR Imager con NVMe collegato a un PC Windows - vedere @333337leeper tutto questo: [ https://youtu.be/haeYUq4RHbk ](https://youtu.be/haeYUq4RHbk) - NB: i driver RPi3 (non RPI4) hanno funzionato per me.

2. Seguire @mariobalanicaper sostituire i file storahci.sys e stornvme.sys prima di spostare NVMe sul Pi: [Installazione di Windows 11  #2 (commento) ](https://github.com/worproject/rpi5-uefi/issues/2#issuecomment-2016505218)

3. Avvio dalla piccola MicroSD UEFI v0.3 e con NVMe nel Pi - ha funzionato la prima volta per me - hardware:

RPi5 8GB con l'ultimo firmware + vecchio Sandisk 2GB uSD FAT32 per UEFI + Geekworm X1001 (la versione successiva con solo 1× luce "Attività") + Samsung PM981 256GB NVMe M.2 + Custodia in alluminio GeeekPi che include il dispositivo di raffreddamento attivo ufficiale. NB: non ho alcuna affiliazione con nessuno di questi prodotti, ho solo pensato che potesse essere utile conoscere la configurazione esatta che ha funzionato per me. is this the tutorial?

sebiiii1999 commented 3 months ago

Hello I having Problem replacing the two files "stornvme.sys" and "storahci.sys" I have no permission to replace those two files in \Windows\System32\drivers.

huesie commented 3 months ago

Hello I having Problem replacing the two files "stornvme.sys" and "storahci.sys" I have no permission to replace those two files in \Windows\System32\drivers.

Mount it on Linux to do it, or on Windows you need to take ownership of those files and set Full Control.

NibinNaug commented 1 month 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.

Thank you so much : you saved what remains of my sanity ! I spent a day trying, it worked by itself on a SSD in a jMicron USB case, then suddenly seased and no way to boot from my NVMe hat and Samsung NVMe… Oo You really deserve a Nobel ! ^^

(Geekworm X1003/Samsung MZALQ256B)