lørdag 18. juli 2015

Installing Windows 10 IoT on RPi using windows 7/8

Annoyingly MS has decided that you need to have windows 10 preview installed on a PC to be able to transfer their "InternetOfThings" image in their proprietary ffu format to a Raspberry Pi.

First of all, it really is a unnecessary approach from a technical point of view.
What you need is a just updated DISM to handle the image (or they could have released it in another format in the first place)

For all us techs that have been around using Microsoft's imaging tools for a while, this is not a surprise, as they have changed a lot on their imaging tools on every release (including switches .. aaarghhh).

What you really just need to do is to create a folder with the new windows 10 DISM.exe and it's needed dll files, and run the needed command from that folder.

First, we will need some files from the windows 10 DVD (which is not available for the moment, as MS will realease that in the end of this month, of course :-( )

these are:


The total size of these files uncompressed is about 4 Mb, which with convenience could have been included in the msi file they provide in their setup file (most of them actually is included but with a bit cluttered names to ensure that you will not be able to run them from a older version of windows )

In addition you will need the flash.ffu image which is to be found in their IoT Core RPi.iso file approx 1,2 Gb.

You can collect all the files including the latest preview flash.ffu image from here: (400 mb)
Without flash.ffu here (3mb)

So what you do is the following:
Insert a SD card in your PC (16 gb should be OK)
Format it with SD formatter:
unpack the downloaded files (iot.7zip) to c:\iot

start a command prompt as administrator
Type the following commands:
list disk
you should now get a list of the disks on your pc:

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          238 GB      0 B
  Disk 1    Online           14 GB  7721 MB

Note the disk number of the SD card (in this case disk 1)


Then type :
cd c:\iot
 # to go to the folder containing the files
./dism.exe /Apply-Image /ImageFile:c:\iot\flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck

Where the N in PhysicalDriveN is the drive number from the previous step ( In my case 1).
Notice the ./ in front of the dism command, this is to ensure that it runs the dism.exe in the current folder.

The image will be transferred to the SD card

Insert the SD card into your RPi and wait a while (this will take several minutes)

If you have a monitor connected to the RPi, it will eventually show the IP address of your device.

Open putty and do a SSH against the RPi IP address (strangly this takes some time to, it could be a reverse DNS issue on my system).

Log in with:

Username: administrator
Password: p@ssw0rd

Ingen kommentarer:

Legg inn en kommentar