Super-Fast walkthrough: running Win10 Preview on Raspberry Pi 2 and what’s it like

series_RaspberryPi

This is part of the Learning Raspberry Pi Series here on FoxDeploy.com. Click the banner for more Raspberry Pi and Windows!


If you’re like me, you got really excited to hear about the possibilities of running Windows 10 IoT preview on your Raspberry Pi 2.  I actually bought one just for a blog series on PowerShell and Raspberry Pi, so stay tuned for more!  Note: I did all of this while drinking some brewskies the other night.  If I can do it mildly intoxicated, then you can definitely do it sober.

What you’ll need

  • Laptop / Desktop running Windows 10 Preview, can’t be a VM as you’ll need hardware access
  • RaspBerry Pi 2:
    • Base model
    • Fancy Smancy kit – I bought this one.  You’ll really want to put a heat sink on the CPU and GPU, this thing gets super hot.  This kit includes it.
  • 8 GB or higher Class 10 Micro SD Card.  Don’t buy an off-brand or you’re begging for pain!
  • Sign-up for the Windows Connect Program here and click through all of the EULAs to enable the download tab.  Download the .zip file and unzip it.
  • Optional : SD Card reader if you don’t have one

How to get it up and running

  1. Download the .ffu file listed above.
  2. Go to your Win 10 preview machine, use DiskPart to figure out which disk your SD Card is.  This will likely be the smallest disk when you run diskpart – List Disk .  Grab the disk number.

    List disk
    Whoa Stephen, 64 GB, you must be a baller. That’s right, I make literally upwards of $8 an hour.
  3. Change into the directory where you put your .ffu file
  4. Run this cmd
    dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck
  5. When you see 100% you’re done!  Put the SD Card in your Raspberry Pi 2 and boot her up.

What’s it like?

Plug in, connect network and boot.  Done.  It takes forever to boot, like five mins.  You’ll first see a random Blue debugging screen with some clickable elements that don’t actually work.
You can click these on the left, 'App' and 'MiraCast/View' but they don't actually do anything
You can click these on the left, ‘App’ and ‘MiraCast/View’ but they don’t actually do anything
You can ignore that, and then the system will reboot, showing you the cool new logo of Windows 10 IoT.
Man, FoxDeploy, this is a terrible screen shot.  Were you drunk taking a picture of your TV?  Uh...yes.  Yes I was.
Man, FoxDeploy, this is a terrible screen shot. Were you drunk taking a picture of your TV? Uh…yes. Yes I was.
Eventually you’ll end up on a page like this, showing you the IP to manage this bad boy.

There is a program you can also find in the .zip from earlier, which runs only on Windows 10 PCs.  It looks like this.
IoTwatcher_NoContextMenu
You can right-click items here to jump into a network Share, or open a Web browser.
IoTwatcher
You can open that IP in your browser for a very useful web management tool.
If you know how to make AppX packages, you can directly push them using the Web console, from this screen.

Inline image 1

 You can also check process performance, which shows you a very sexy looking performance graph viewer
How'd you put load on the Pi?  By launching a PowerShell session.
How’d you put load on the Pi? By launching a PowerShell session.
Remote PowerShell works, just add the PC to your trustedHosts like using the WSman Cmdlets, and if you’re remoting from Win10, disable the PS ReadLine module (it will cause errors).  For more info, follow the guide here.
Remoting performance to the Reaspberry Pi is very, very slow.  VERY slow.  But it’s a work in progress.
My transcript of how I connected:
set-Item WSMan:\localhost\Client\TrustedHosts 10.63.30.54

WinRM Security Configuration.
This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not
be authenticated. The client might send credential information to these computers. Are you sure that you want to
modify this list?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y
PS C:\WINDOWS\system32> get-Item WSMan:\localhost\Client\TrustedHosts
  WSManConfig: Microsoft.WSMan.Management\WSMan::localhost\Client
  Type            Name                           SourceOfValue   Value
  ----            ----                           -------------   -----
  System.String   TrustedHosts                                   10.63.30.54

PS C:\WINDOWS\system32> Enter-PSSession -ComputerName 10.63.30.54 -Credential 10.63.30.54\Administrator
[10.63.30.54]: PS C:\Users\Administrator\Documents>
Digging into the covers, you’ll see some weirdness…like no MSI class or Win32_Product classes 😦
NoMSIClass

What’s next?

Well, from here on in, we’ll try to find some cool stuff on the Raspberry Pi.  My next to-do’s include finding temperature sensors, if they exist, and finding some other cool stuff we can run on the Pi from remote PowerShell.

Advertisements

One thought on “Super-Fast walkthrough: running Win10 Preview on Raspberry Pi 2 and what’s it like

  1. David Cove May 20, 2015 / 4:52 pm

    Try one wire temp sensors. They work well on the Linux pi.
    I am selfish as I am trying to do just that on my own win10pi.
    My second project will be to record and email audio messages as I am doing from the Linux side.
    Enjoying your posts!!

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