Setup your Raspberry Pi with Windows 10 IoT in a Hyper-V or physical environment

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.

First Time-Setup
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:

https://insider.windows.com/

Please download the package “Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2” from the Microsoft Connect:

http://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782

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:

  1. Modify a basic USB device driver to run your SD card as a hard drive.
  2. Open the “Disk Management” and set your device offline, because only offline devices can be attached as SCSI devices in Hyper-V!
  3. 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:

  1. diskpart
  2. list disk
  3. exit

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.

rpi2
Boot Windows 10 IoT Core Insider Preview
Windows 10 IoT Core Insider Preview will boot automatically after connecting power supply.

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.

DefaultAppRpi2

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.

Advertisements

17 thoughts on “Setup your Raspberry Pi with Windows 10 IoT in a Hyper-V or physical environment”

  1. im stuck at this step

    dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDrive1 /SkipPlatformCheck

    i get
    error : 0xffffffff
    dism failed.

    by “local copy of the flash.ffu” do im not sure where to put it so i put it on the desktop and also the local disk folder

    Like

    1. Hey Dude,

      In which directory do you try to execute the dism.exe command?

      1) You have to be in the directory, where you have extracted the downloaded Win IoT preview image.
      2) Have you started your command line as administrator?

      Let me know, if it works now.

      Like

      1. so run CMD in admin where i have the image in? i’ll try it when i get home from work. i’ll let you know, thanks.

        Like

    1. That’s great. Follow my blog and my twitter #fraissit to stay tuned to all that stuff. Would also be great, if you spread the word about my content.

      Greetings,

      Like

    1. Hi Gerhard,

      The answer is no. The dism.exe Version in Windows 7 and/or Windows 8 doesn’t have the /apply-image option, moreover it can’t write images to a SD card. You have to use Windows 10 in a physical or virtual environment to be able to install it to your SD card.

      Greetings,

      Like

  2. I am working on this right now and it requires VS 2015 install. Was that required for your process. it isn’t mentioned anywhere. I am running in Parallels VM on a Mac. (VS 2015 is installing now, can’t wait to get Pi running)

    Like

      1. I guess I should read instructions better. I started the install msi rather than make the FFU SD image. All set now.

        A bit underwhelming. But will see what it takes to develop an app.

        Like

  3. Hello mario!!
    i have a small Problem here in installation. i followed your setps.
    but its not booting up i think its under loop i am getting only a windows logo it wont go to the next step.. “

    Like

  4. Hi,
    I’m trying to install Windows 10 disk image using the above instruction but, the link given in the article no longer working:
    http://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782
    Looks like it has been removed. I got a following error:
    …….
    “Page Not Found

    The content that you requested cannot be found or you do not have permission to view it.

    If you believe you have reached this page in error, click the Help link at the top of the page to report the issue and include this ID in your e-mail: 349a857d-5231-4d0c-9187-8fa1188a35e5”
    …….

    Please help me.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s