[[labs.beatcraft.com]]~ [[Raspberry Pi]]~ [[Raspbian]]~ #contents *Raspberry Pi 2/Windows 10 IoT Core/Set-up and Booting [#c4a5f03f] ** Windows IoT Core [#b24eb672] > Windows 10 IoT Core is a version of windows 10, which is optimized for a small device.~ As of December 2015, Windows 10 IoT Core runs on the boards listed below.~ - Raspberry Pi 2 (ARM)~ - Arrow DragonBoard 410c (ARM64)~ - MinnowBoard MAX (x86)~ ~ Windows 10 IoT Core can execute the applications, which is created with Universal Windows Platform (UWP) API, with or without a display.~ ~ This article introduces how to install Windows 10 IoT Core on Raspberry Pi 2 and how to execute the the OS and an demo application on the board.~ ~ Please move to [[Windows IoT:https://dev.windows.com/en-US/iot]] page at Windows Dev Center, and please click Get started now, and shift to [[Windows IoT:http://ms-iot.github.io/content/en-US/GetStarted.htm]] page at github. Basically, please follow the instructions described in the page.~ **Setting up working PC [#ya2e9a95] > To create a bootable microSD card for Windows 10 IoT, which runs on Raspberry Pi 2, a PC that can run Windows 10 is needed. This requirement is due to the tools, which are needed for writing that the boot image of Windows 10 IoT Core to a microSD card, only works in the Windows 10 environment.~ *** Checking the version of Windows 10 [#sd83b08a] > Please go to SETTINGS of Windows 10 → SYSTEM → About, then look at OS Build. If its version is grater than 10.0.10240, the PC can install and run Visual Studio, which is necessary to write the boot image of Windows 10 IoT Core to a microSD card.~ ~ &ref(001.jpg,,30%); ~ ~ If not, go to SETTINGS, select Update & security for updating to the newest version of Windows 10.~ *** Installing Visual Studio [#h5594f11] > Install Visual Studio Community 2015.~ If you have a valid license of Visual Studio Professional 2015 or Visual Studio Enterprise 2015, these IDEs are also acceptable.~ ~ To install Visual Studio Community 2015, please select the custom install. Go to Universal Windows App Development Tools, and put a mark on Tools and Windows SDK. Then, start installing.~ ~ In the default setting of Visual Studio 2015 Update1, Tools and Windows SDK is already selected, putting the mark on the box. For Visual Studio 2015 Update1, please install it with the default setting.~ ~ &ref(002.jpg,,30%); *** Installing Windows IoT Core Project Templates [#kd3b4db2] > Download Windows IoT Core Project Templates from [[the download page:https://visualstudiogallery.msdn.microsoft.com/55b357e1-a533-43ad-82a5-a88ac4b01dec]] and install it. (To download the templates, the registration is required.)~ ~ &ref(003.jpg,,30%); *** Making Developer mode effective [#l1d5b0c5] > At the working PC, please make Developer Mode effective.~ To follow the instructions listed at [[Enable your device for development:https://msdn.microsoft.com/library/windows/apps/xaml/dn706236.aspx]] in Development Center, please select Developer mode from a dialog of Visual Studio or SETTINGS of Windows 10. (Go to Startup Menu of Widows 10 → SETTINGS → Update & security → For developers.)~ ~ &ref(004.jpg,,30%); ** Setting up Raspberry Pi 2 [#y7870e34] > Please follow the instructions listed at [[Set up a Raspberry Pi 2:http://ms-iot.github.io/content/en-US/win10/RPI.htm]] of github. *** Requirements [#cbbffe64] > To run Windows 10 IoT Core on Raspberry Pi 2, the requirements are listed below.~ Basically, the list of requirements is very similar to the one for a cross-development on Linux. - The working PC, which has been setup to write an image of Windows 10 to a microSD. - Raspberry Pi 2 - microUSB power supply adapter (at least 5V 1.0 A) - a HDMI cable and a monitor, which has a HDMI terminal (any Windows 10 IoT Core device is bootable without a monitor.) - an Ethernet cable and network environment (communicate with the working PC) - microSD Card Reader (This is used when the image of OS is written into the microSD card at the working PC.) - microSD Card (the image of Windows 10 IoT Core is written to this microSD card, and it is used for booting Raspberry Pi 2.) *** Installing Windows 10 IoT Core Tools [#hbecc686] > Please download Windows 10 IoT Core for Raspberry Pi 2 from [[Windows IoT Downloads Tools:http://ms-iot.github.io/content/en-US/Downloads.htm]] on the working PC.~ ~ Please download an iso file on the working PC. (As of December 2015, the name of file is 10586.0.151029-1700.TH2_Release_IOTCoreRPi_armFRE.ISO)~ ~ &ref(005.jpg,,30%); ~ To double-click the iso file, it is automatically mounted as a virtual drive, and the files, which are held inside the virtual drive, become accessible.~ ~ As the iso file is mounted as a DVD drive (D:), please open up the iso file and double click Windows_10_IoT_Core_PRi2.mis to start the install process.~ ~ &ref(006.jpg,,30%); ~ ~ As the installation process is completed, the files and applications such as WindowsIoTHelper and WindowsIoTCoreWatcher are installed at the directory of (C:) > Program Files (x86) > Microsoft IoT.~ ~ &ref(007.jpg,,30%); ~ *** Copying Windows 10 IoT Core [#c2cab72b] > Insert the microSD card, which Windows 10 IoT Core for Raspberry Pi has will be written into, to the microSD card reader. As the microSD card reader is attached to the working PC, start up Windows IoTImageHelper. Then, the window shown below appears on the screen.~ ~ &ref(008.jpg,,30%); ~ ~ Please select the microSD card that the OS image is written into at the section of Select the SD card, and click Browse button at the section of Select the image (.ffu).~ ~ &ref(009.jpg,,30%); ~ ~ As the open file dialog appears, please select flash.ffu, which is located at Microsoft IoT > FFU > RaspberryPi2.~ ~ &ref(010.jpg,,30%); ~ ~ As both sections of Select the SD card and Select the image are filled in, Flash button becomes clickable. As you click Flash button, the writing process begins.~ ~ &ref(011.jpg,,30%); ~ ~ *** Connecting peripheral devices to Raspberry Pi [#g6d20a69] > To boot Windows 10 IoT Core on Raspberry Pi 2, Raspberry Pi 2 is attached with its peripheral devices.~ ~ The microSD, which the image of OS has already been written into, is inserted into the microSD card slot of Raspberry Pi 2.~ The Ethernet cable, which is connected to the same local network as the working PC is connected, is attached to the Ethernet port of Raspberry Pi 2.~ A HDMI cable of a display is connected to the HDMI port of Raspberry Pi 2.~ Finally, the microUSB AC power adapter is connected to the microUSB power port of Raspberry Pi, and the system starts booting.~ *** Booting Windows 10 IoT Core [#y39b197f] > As the power Cable (microUSB cable) is connected to Raspberry Pi 2, Windows 10 IoT starts booting, and DefaultApp begins. DefaultApp displays IP address and its system information.~ ~ &ref(012.jpg,,30%); ~ ~ From its tutorial menu, you can boot an application for demonstration. This application allows an LED, which is attached to Raspberry Pi 2, to brink.~ &ref(013.jpg,,30%) ;&ref(014.jpg,,30%); ~ &ref(013.jpg,,30%); &ref(014.jpg,,30%); ~ ~ On Raspberry Pi 2, Windows 10 IoT Core can do only these things, and it cannot do without installing other applications.~ ~ To access to the management function of Window 10 IoT Core via network, you can install and execute own applications.~ In the next article, it will introduce how to install and to execute own applications.~ * Revision History [#t3dfe773] > -2016-02-17 This article is initially published.