Recently, Microsoft has announced and released Windows 10 for Devices, called IoT. To download the current Version of Windows 10 IoT for Raspberry Pi you have to sign up for Microsoft Connect and more. Follow the steps below, to setup your Pi. In general you will need a physical device, which is running a Windows 10 preview build, but in this post I describe you a way, to setup your SD card as a physical hard drive to be able to do it in a Hyper-V environment.
What you need:
- A PC or virtual machine running Windows 10 Insider Preview.
- Register with the Microsoft Connect program to download the Windows 10 IoT Core Insider Preview image. They release the Windows 10 IoT Core for Raspberry Pi 2 through the program Microsoft Connect. If you have not signed up yet, please go to the program site on Microsoft Connect – https://connect.microsoft.com/windowsembeddediot/SelfNomination.aspx?ProgramID=8558 – to sign up. If you’re already signed up for this program on Microsoft Connect and try to sign up again, you will just see a blank page.
- Raspberry Pi 2.
- 5V micro USB power supply with at least 1.0A current.
- A 8gb Class 10 (or better) micro SD card.
- HDMI cable (if display is desired).
- Ethernet cable.
Put the Windows 10 IoT Core Insider Preview image on your SD Card
Microsoft has provided a utility to provision your SD card with the Windows 10 IoT Core Insider Preview. The following steps can only be executed on a system running Windows 10 (build 10069 or higher).
Follow these instructions to configure your SD card
You will need to follow these instructions on a physical Windows machine (and not a VM) because you need access to the SD card reader. You can download Windows 10 Preview here:
Please download the package “Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2” from the Microsoft Connect:
If you see a blank page or no downloads listed, please make sure you are signed into Microsoft Connect by looking at your login information at top right part of the screen. If you did not sign up for the Microsoft Connect program, please refer to the instructions in the “What you need” section above.
Only for Hyper-V virtual machine environments
If you want to follow the steps in a Hyper-V virtual machine environment, you have tofollow these steps in my previous post to attach your SD card as a physical hard drive:
- Modify a basic USB device driver to run your SD card as a hard drive.
- Open the “Disk Management” and set your device offline, because only offline devices can be attached as SCSI devices in Hyper-V!
- Add a SCSI device to your Hyper-V virtual machine and select the physical hard drive (which should be your SD card) in the dropdown menu.
Provision the SD card with the Windows Image
Make a local copy of the flash.ffu contained in the downloaded package “Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2” here: http://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782
(If you have a virtual machine, you have to download the image inside the virtual machine, to be able to continue).
Now insert an SD card into your SD card reader and open an administrator command prompt and navigate to the folder containing your local flash.ffu.
Find the disk number that your SD card is on your computer. This will be used when the image is applied in the next step. To do this, you can use the diskpart utility. Run the following commands:
- list disk
Using the administrator command prompt, apply the image to your SD card by running the following command (be sure to replace PhysicalDriveN with the value you found in the previous step, for example, if your SD card is disk number 3, use /ApplyDrive:\\.\PhysicalDrive3 below)
dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck
Click on the “Safely Remove Hardware” icon in your task tray and select your USB SD card reader to safely remove it from the system. Failing to do this can cause corruption of the image.
Hook up your Board
- Insert micro SD card you prepared in the section above (the slot is on the opposite side of the board shown below).
- Connect a network cable to the Ethernet port on the board.
- Connect an HDMI monitor to the HDMI port on the board.
- Connect the power supply to the micro USB port on the board.
On the very first boot the you will see a blue windows logo and then a black screen for a long time (2 minutes or longer). Do not power off the board while it is doing first-time setup. The board will then reboot to a blue-screened application that says “MinWin” at the top. It will sit on this screen also for a long time (2 minutes or longer). Again, do not power off the board while this is occurring. Finally the board will reboot a second time to show DefaultApp, displaying the IP address of the Raspberry Pi 2.
Follow the instructions here to use PowerShell to connect to your running device: http://ms-iot.github.io/content/win10/samples/PowerShell.htm.
It is highly recommended that you update the default password for the Administrator account. Please follow the instructions found in the PowerShell documentation.
Remote Debugger will launch automatically when your Raspberry Pi 2 boots.
Now you have your Raspberry Pi device running Windows 10 IoT and you are ready to deploy your apps with Visual Studio 2015 to it.
Let me know about your projects and what do you think abou the article.
The article is based on content published by Microsoft, as well graphics are provided/copyrighted by them, for reference see: https://dev.windows.com/en-US/iot.