Windows 10 on Raspberry Pi 3
Build: 17134.1 for arm64
Note: I am not responsible for anything that happens to your Raspberry Pi. The steps listed have not been tested and may not work. **You can follow Davindra's tutorial, however this tutorial is step-by-step and may be clearer. In Davindra's tutorial, the ISO was compiled, however you don't have to compile the ISO if you use this tutorial. https://www.youtube.com/watch?v=c0VqVm8X_zQ Note: I am not Davindra
There are two methods, however it is recommended that you follow Method 1.
Method 1 (not easy, but recommended) You may try method 2 if you want to. It is easier, but it is not recommended. Don't download "install.wim - Extract.7z". If you want to use "install.wim - Extract.7z", follow Method 2.
Prerequisties
- Some time (a few hours)
- An SD card (16GB is fine, but you can use an SD card that is bigger than 16GB)
- MiniTool Partition Wizard
- Win10-on-64-bit-Pi3 Zip file
Steps:
- Download MiniTool Partition Wizard https://www.partitionwizard.com/free-partition-manager.html
- Download this repository and extract the files into a folder. Rename the folder to WinRpi.
- Open MiniTool Partition Wizard.
- Plug in your SD card into your computer.
- Locate your SD card in the Partition Wizard and delete all partitions. Note: This will remove all data.
- Create a partition that is more than 100MB and name it BOOT.
- Select Primary and set the file system as FAT32.
- Click OK.
- Create a partition with the remaining storage on the SD card and name it Windows.
- Select Primary and set the file system as NTFS.
- Click OK.
- Click Apply.
- Navigate to the folder where you extracted the files from this repository to and open up the UEFI files folder.
- Copy all the files in the UEFI folder and paste it in the BOOT drive of the SD card.
- Go to https://uup.rg-adguard.net/ and download Build 17134.1 [arm64] of Windows Insider build. Select your language and select Windows 10 Professional and choose Download ISO compiler in OneClick! (unZIP -> RUN creatingISO.cmd) and download the file.
- Extract the ZIP file that you downloaded from the UUP.
- Run creatingISO.cmd. The ISO will be created, however, it may take a long time.
- In the WinRpi folder, create a folder called "m".
- Right-click the ISO, Open With, Windows Explorer.
- Copy the install.wim to the WinRpi folder.
- Extract the Win10-on-64-bit-Pi3 Zip file.
- Eject the ISO by right-clicking on it and choosing Eject.
- Open a command prompt as administrator.
- cd into the WinRpi folder.
- Run the command
dism /mount-image /imagefile:install.wim /Index:1 /MountDir:m
- Run the command
dism /image:m /add-driver /driver:system32 /recurse /forceunsigned
- Run the command
dism /unmount-wim /mountdir:m /commit
- Run the command
dism /apply-image /imagefile:install.wim /index:1 /applydir:<**the drive letter of the Windows partition on the SD card**>:\
- Run the command
bcdboot <**the drive letter of the Windows partition on the SD card**>:\Windows /s <**the drive letter of the BOOT partition on the SD card**> /f UEFI
- Run the command
bcdedit /store <**the drive letter of the BOOT partition on the SD card**>:\EFI\Microsoft\Boot\bcd /set {default} testsigning on
- Run the command
bcdedit /store <**the drive letter of the BOOT partition on the SD card**>:\EFI\Microsoft\Boot\bcd /set {default} nointegritychecks on
- In the WinRpi folder, copy the finish.reg file to the main folder of the Windows partition on the SD card.
- Eject the SD card.
- Insert the SD card into your Raspberry Pi.
- Turn on your Raspberry Pi 3. It may take a couple of minutes (or longer) to boot.
- When you see the error "Windows installation cannot proceed", press SHIFT+F10. The command prompt will open.
- In the command prompt, enter
mmc
- In mmc, click File, Add/Remove Snap-ins.
- Double-click Computer Management.
- Click Finish.
- Click Ok on the dialog box that says Event Viewer.
- Click Ok on the Add/Remove Snap-ins menu.
- In mmc, click Computer Management (Local), Local Users and Groups, Users.
- Double-click on the Administrator account.
- Uncheck Account is disabled.
- Right-click on the Administrator account and click Set Password.
- Click Proceed.
- Enter your password. You may leave the password blank.
- Click Ok on the Set Password dialog box.
- Click Ok on the Local Users and Groups dialog box.
- Close mmc.
- Click No.
- In the command prompt, navigate to the folder you copied the finish.reg to.
- In the command prompt, enter
regedit finish.reg
- Restart the Raspberry Pi or enter
shutdown /r /t 0
in the command prompt to restart it. Note: If entering the command does not restart Windows, restart it manually.
Method 2 Method 2 is faster than Method 1, but it is not recommended. Method 1 is recommended.
Prerequisties
- Some time (a few hours)
- An SD card (16GB is fine, but you can use an SD card that is bigger than 16GB)
- MiniTool Partition Wizard
- "install.wim - Extract.7z"
Steps:
- Download MiniTool Partition Wizard https://www.partitionwizard.com/free-partition-manager.html
- Download this repository and extract the files into a folder
- Extract "install.wim - Extract.7z"
- Open MiniTool Partition Wizard.
- Plug in your SD card into your computer.
- Locate your SD card in the Partition Wizard and delete all partitions. Note: This will remove all data.
- Create a partition that is more than 100MB and name it BOOT.
- Select Primary and set the file system as FAT32.
- Click OK.
- Create a partition with the remaining storage on the SD card and name it Windows.
- Select Primary and set the file system as NTFS.
- Click OK.
- Click Apply.
- Copy the UEFI files to the drive of the BOOT partition on the SD card.
- Open a command prompt as administrator.
- In the command prompt, navigate to the folder you extracted the "install.wim - Extract.7z" file to.
- Run the command
dism /apply-image /imagefile:install.wim /index:1 /applydir:<**the drive letter of the Windows partition on the SD card**>:\
- Run the command
bcdboot <**the drive letter of the Windows partition on the SD card**>:\Windows /s <**the drive letter of the BOOT partition on the SD card**>: /f UEFI
- Run the command
bcdedit /store <**the drive letter of the BOOT partition on the SD card**>:\EFI\Microsoft\Boot\bcd /set {default} testsigning on
- Run the command
bcdedit /store <**the drive letter of the BOOT partition on the SD card**>:\EFI\Microsoft\Boot\bcd /set {default} nointegritychecks on
- Copy the finish.reg to the drive of the Windows partition on the SD card.
- Eject your SD card and insert it into your Raspberry Pi 3.
- Turn on your Raspberry Pi 3. It may take a couple of minutes (or longer) to boot.
- When you see the error "Windows installation cannot proceed", press SHIFT+F10. The command prompt will open.
- In the command prompt, enter
mmc
- In mmc, click File, Add/Remove Snap-ins.
- Double-click Computer Management.
- Click Finish.
- Click Ok on the dialog box that says Event Viewer.
- Click Ok on the Add/Remove Snap-ins menu.
- In mmc, click Computer Management (Local), Local Users and Groups, Users.
- Double-click on the Administrator account.
- Uncheck Account is disabled.
- Right-click on the Administrator account and click Set Password.
- Click Proceed.
- Enter your password. You may leave the password blank.
- Click Ok on the Set Password dialog box.
- Click Ok on the Local Users and Groups dialog box.
- Close mmc.
- Click No.
- In the command prompt, navigate to the folder you copied the finish.reg to.
- In the command prompt, enter
regedit finish.reg
- Restart the Raspberry Pi or enter
shutdown /r /t 0
in the command prompt to restart it.
Errors: Note: If you have any errors, please make a issue in this GitHub.
Issue | Solution |
---|---|
Windows setup could not configure to run on this computer's hardware | Compile the ISO and try again |
The specified domain either does not exist or could not be contacted | Compile the ISO and try again |
BSOD - DRIVER_POWER_STATE_FAILURE | Remove all USB devices and restart Raspberry Pi |
BSOD - INACCESSIBLE_BOOT_DEVICE | Compile the ISo and try again |
Credits to:
https://github.com/andreiw/RaspberryPiPkg https://github.com/andreiw/rpi3winstuff https://uup.rg-adguard.net/ https://sourceforge.net/p/windows-10-lite/wiki/Finish%20setup%20immediately/ https://www.youtube.com/watch?v=c0VqVm8X_zQ