The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Archive for the ‘IOT’ Category

Nice to Know – Deploying Windows 10 IoT to a Raspberry PI 2

Posted by Mikael Nystrom on May 1, 2015

So, just for the fun of it I got 2 Raspberry PI 2 a while back, someone said to me that they could run Windows 10 and therefore they can be deployed, and therefore I must try. So far I have no idea what to do with them, but I’ll find out eventually.

Note: My friend Johan Arwidmark has done a great Video, you will find it here: https://www.youtube.com/watch?v=Q5SfPTykM6A

Step One:

image

Go to https://dev.windows.com/en-US/iot

Step Two:

image

Select the Raspberry Pi 2 (or if you have something else, select that device)

Step 3:

This is what you need:

  • A PC running Windows 10 (it can be a VM “if” you have a VM platform that can write to a Micro SD card) build 10069 or higher
  • A Raspberry Pi 2
  • A Micro USB power supply, go for one with 2A or better, that way you will have enough power when you start connecting stuff to your USB ports
  • A Micro SD Class 10 device, I’m running the Samsung Evo 16GB Micro SD’s, works great!
  • A HDMI cable and a monitor, just for the fun to see when things happens, but not needed
  • An Ethernet cable connect to your network with DHCP
  • The “image” that you get from connect http://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782

WP_20150501_001

This is how you do:

  • Download and unzip the image from connect and store in a folder
  • Insert the Micro SD in your computer
  • Find the disk number that SD card is using (take a pick)
    • Using Disk part
      Diskpart.exe
      List Disk
      image
    • Using WMIC
      wmic diskdrive list brief
      image
    • Using PowerShell
      Get-PhysicalDisk | Select-Object FriendlyName,DeviceId
      image
  • Apply the Image to the Micro SD using an elevated prompt usin g this command. Note Replace “N” with your number for the drive:

    dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck
  • Wait until it is done and use the safe remove feature in Windows to remove the Micro SD

Step 4:

  • Insert the Micro SD in the Raspberry PI
  • Connect Network
  • Connect HDMI
  • Connect Power
  • It will now boot and configure it self, when its done you should see this:

WP_20150501_003

Step 5:

So, the PI is up and running and you need to connect to it and to do that you need an IP address, and that’s when the HDMO monitor comes very “handy” since the IP address will be on that screen…

image

#Bug fix for StackOverFlow
remove-module psreadline -force

#Setting Vars
$ThePIIP = ‘192.168.133.125’
$ThePIPassword = ‘p@ssw0rd’
$ThePIUserName = ‘Administrator’
Set-Item WSMan:\localhost\Client\TrustedHosts -Value $ThePI -Force

$SecurePassword = $ThePIPassword | ConvertTo-SecureString -AsPlainText -Force
$Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $ThePIUserName, $SecurePassword

Enter-PsSession -ComputerName $ThePIIP -Credential $Credentials

After that you should have a remote PowerShell prompt up and running and if you do it in ISE, you will also see that the command windows on the right side will get updated with all the commands that does exist in the OS:

Step 6:

Time to configure:

Here is a nice link of commands that are available

http://ms-iot.github.io/content/win10/tools/CommandLineUtils.htm

You should change the password and if you want you can also change the name of the device…

Step 7:

Just for the fun of it:

You can access the device using FTP:

image

If you browse to ftp://192.168.133.125/Windows/ImageUpdate/OEMInput.xml you can see that you are actually running a Windows Phone…

image

You can access the device using the web:

image

When accessing using the web you will see a bunch of different functions you can perform, you can even upload your appx applications and install them…

Links that you will find handy:

https://www.youtube.com/watch?v=Q5SfPTykM6A

http://www.element14.com/community/docs/DOC-76402/l/windows-10-iot-core-on-the-raspberry-pi-2

http://www.element14.com/community/docs/DOC-76415/l/running-windows-10-iot-core-and-code-on-the-raspberry-pi-2

http://microsoft.hackster.io/

https://www.youtube.com/watch?v=Hkm4THS3Rf8

/mike

 

 

 

 

 

Posted in IOT, Windows 10 | Tagged: , | 2 Comments »