vendredi 1 mai 2015

Flashing Windows 10 Core to Raspberry PI 2 topic


Hi guys!

As some of you might have seen it already: Microsoft has released an Insider Preview to the Raspberry PI 2.
Here are the instructions on how put the image on an SD card:
Source: http://ms-iot.github.io/content/win10/SetupRPI.htm

Quote:









We have 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:
  1. NOTE: 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.

  2. Please download the package "Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2" from the Microsoft Connect here. 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.

  3. Make a local copy of the flash.ffu contained in the downloaded package "Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2".

  4. Insert an SD card into your SD card reader.

  5. Open an administrator command prompt and navigate to the folder containing your local flash.ffu.

  6. 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:

    Code:


    diskpart


    Code:


    list disk


    Code:


    exit


  7. 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

    Code:


    /ApplyDrive:\.\PhysicalDrive3

    below):

    Code:


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


  8. 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.






This is all good and fine, but most of us don't have a physical computer running Windows 10, so as the site mentions VMs don't have access to physical drives or the card reader, so you can't format and partition a physical disk (you can virtualize it and install it onto the virtual drive, create similar partitions on the physical drive and copy the contents of the virtual drive onto it, and copy the BCD of the virtual hard drive, but that's not 7what we want to do). To be able to flash the Windows Core image onto the SD card we need the latest version of a tool called dism.exe. The latest version of this tool is included with Windows 10 (that's why this manual says that you need Win 10 to do it), but it's also available as part of the Windows Assessment and Deployment Kit and luckliy enough Microsoft has made it available for everyone, so we don't need to scrap it with its dependant DLLs from Win 10.

To be able to flash the image from a computer that's running Windows 7 or higher (I haven't tried from anything below it) we need to first download and install Windows Assessment and Deployment Kit (ADK) RC for Windows 10.
Download page: https://msdn.microsoft.com/en-gb/win.../dn913721.aspx
Direct download: http://go.microsoft.com/fwlink/p/?LinkId=526740

When installing just install it normally, on the step "Select the features you want to change" tick only the box that says "Deployment Tools" and click Install


After the install open a CMD window as an Administrator (you have to type cmd to the start menu search and right click on the cmd.exe and click on run as administrator)
In CMD navigate to:

Code:


C:\Program Files (x86)\Windows Kits\Assessment and Deployment Kit\Deployment Tools\x86\DISM

And follow the same steps as in the instructions on the MS website. (get the disk number, and flash it with dism.exe).

Code:


dism.exe /Apply-Image /ImageFile:"C:\Image\File\Location\flash.ffu" /ApplyDrive:\.\PhysicalDriveN /SkipPlatformCheck

(Don't forget to change C:\Image\File\Location to the location where you extracted the file from the downloaded ZIP file, also change the number of the physical drive)

On the MS site it also doesn't mentions that the smallest SD card that you can use is 4 GB, anything under that will generate a CRC error when trying to flash the image onto the SD card.

If you want to write your own apps for it (I assume that's why you have downloaded the preview, you'll need Visual Studio 2015)








Attached Thumbnails


Click image for larger version<br/><br/>Name:	winADK.png<br/>Views:	N/A<br/>Size:	79.5 KB<br/>ID:	3291787
 












xda-developers