thanks Carl & Richard listened to DotNetRocks – episode 1143 at work yesterday, found Windows 10 IOT was out (been waiting 2 months, missed seeing emails from Microsoft <sigh>) Raced home to try it, found according to both Microsoft’s IOT site here and Scott Hanselman’s great guide here I needed Windows 10 on my PC to install Windows 10 IOT on the SD card for my Raspberry Pi 2.
Impatient I tried dism.exe directly from Windows 8.1 but (surprise) I got an error:
Deployment Image Servicing and Management tool Version: 6.3.9600.17031
The /applydrive option is not recognized in this context. For more information, refer to the help.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
error 87 effectively means that dism version 6.3.9600.17031 from Windows 8.1 is now superseded; the new Windows 10 version, ver # 10.0.10074.0 is smarter-er, knows what the new /applydrive switch is supposed to do 🙂
Windows 8.1 users should still probably get Windows 10 going somewhere to use all the new Win 10 stuff under Visual Studio 2015, but for other impatient folks (like me) to get the SD card set up quickly under windows 8.1, do this:
1. Download Windows10_InsiderPreview_x64_EN-US_10074.iso to your PC from Microsoft
2. Mount the ISO image, (don’t install it yet- unless you really want to!) copy the whole .\sources\ folder across to your Windows 8.1 HDD, (I didn’t bother chasing down all the dism.exe dependencies, and there’s more than the few like named DLLs – maybe later). Say C:\TEMP\
3. Get the file Windows_IoT_Core_RPI2_BUILD.zip from Microsoft. Follow the steps here to sign up to MS Connect etc.
4. unzip the file, from among the contents copy the file Flash.ffu into the same folder as you copied the Windows 10 .\sources files, say C:\TEMP\
5. Put your SD card into your PC
6. use either Powershell (per Scott) or DISKPART (per Microsoft) to find the disk that is your SD card (be careful, may not be good to get the wrong drive #).
7.from a command shell / dos window, running as admin (just hit windows-x, then a), change to your C:\TEMP (or other) folder
8. using your drive number in place of the “N” below type:
dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck
note. it is much easier if the Windows 10 dism and the flash.ffu are in the same directory.
9. Wait a minute or two as it writes out, and then eject the SD card (use the eject, or if mounted in a USB carrier – use the USB eject).
10. put the SD card in your Pi 2 and wait – it takes a minute or two to completely boot up, but it will get there.
Possible gotchas. I had a fail initially, I had formatted the SD card using FAT32. Tried to boot, nothing happened. Second time lucky, a quick reformat of the SD card using NTFS, same steps, and this worked. Was it a fluke? Unsure, but not losing sleep yet.