Difference between revisions of "SDM850 environment setup"

From ESS-WIKI
Jump to: navigation, search
 
(20 intermediate revisions by the same user not shown)
Line 15: Line 15:
  
  
== Build machine and host OS (Windows 10 PRO) setup ==
+
== <span style="font-family:arial,helvetica,sans-serif;">Build machine and host OS (Windows 10 PRO) setup</span> ==
  
1. Set system locate to English
+
<span style="font-family:arial,helvetica,sans-serif;">1. <span style="font-size:small;">Set system locate to English</span></span>
  
&nbsp; &nbsp; Settings -> Time & Language -> Region -> Additional date, time & regional settings -> Region ->
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; Settings -> Time & Language -> Region -> Additional date, time & regional settings -> Region -></span></span>
  
&nbsp; &nbsp; Administrative -> Language for non-unicode programs -> Change system locale... ->
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; Administrative -> Language for non-unicode programs -> Change system locale... -></span></span>
  
&nbsp; &nbsp; Current system locale: Select "English (United States)
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; Current system locale: Select "English (United States)</span></span>
  
&nbsp; &nbsp;[[File:SDM850 ENV 04.png|RTENOTITLE]]
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp;[[File:SDM850 ENV 04.png|RTENOTITLE]]</span></span>
  
2.&nbsp; Install .NET Framework 3.5
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">2.&nbsp; Install .NET Framework 3.5</span></span>
  
&nbsp; &nbsp; A. Insert Windows ISO CD
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; A. Insert Windows ISO CD</span></span>
  
&nbsp; &nbsp; B. Install .NET Framework 3.5 from Windows ISO CD
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; B. Install .NET Framework 3.5 from Windows ISO CD</span></span>
  
<span style="color:#0000FF;">&nbsp; &nbsp; &nbsp; &nbsp;# dism /online /enable-feature /featurename:netfx3 /all /limitaccess /source:</span><span style="color:#FF0000;">E:</span><span style="color:#0000FF;">\sources\sxs</span>
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;"><span style="color:#0000FF;">&nbsp; &nbsp; &nbsp; &nbsp;# dism /online /enable-feature /featurename:netfx3 /all /limitaccess /source:</span><span style="color:#FF0000;">E:</span><span style="color:#0000FF;">\sources\sxs</span></span></span>
  
<span style="color:#0000FF;">&nbsp; &nbsp; &nbsp;&nbsp;[[File:SDM850 ENV 05.png|RTENOTITLE]]</span>
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;"><span style="color:#0000FF;">&nbsp; &nbsp; &nbsp;&nbsp;[[File:SDM850 ENV 05.png|RTENOTITLE]]</span></span></span>
  
&nbsp; &nbsp;C.&nbsp;Execuate “Win10 Settings” and follow bellows to install
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp;C.&nbsp;Execuate “Win10 Settings” and follow bellows to install</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp;Settings ->[Apps & Features] ->[Programs and Features] ->[Turn Windows features on or off] ->
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;Settings ->[Apps & Features] ->[Programs and Features] ->[Turn Windows features on or off] -></span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp;[.NET Framework 3.5] ->check <span style="color:#0000FF;">['''Windows Communication Foundation Non-HTTP Activation]'''</span>
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;[.NET Framework 3.5] ->check <span style="color:#0000FF;">['''Windows Communication Foundation Non-HTTP Activation]'''</span></span></span>
  
<span style="color:#0000FF;">'''&nbsp; &nbsp; &nbsp;&nbsp;[[File:SDM850 ENV 06.png|RTENOTITLE]]'''</span>
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;"><span style="color:#0000FF;">'''&nbsp; &nbsp; &nbsp;&nbsp;[[File:SDM850 ENV 06.png|RTENOTITLE]]'''</span></span></span>
  
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">3.&nbsp; &nbsp; Change PowerShell policy for ACPI building</span></span>
  
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp; In Windows “Search” -> Input "Local Computer Policy" ->[Computer Configuration] ->[Administrative Templates] -></span></span>
  
3.&nbsp; &nbsp; Change PowerShell policy for ACPI building
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp; [Windows Components] ->[Windows PowerShell] ->[Turn on Script Execution] ->check [Enabled] ->[Option: Execution Policy] ->select [Allow all scripts]</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp; In Windows “Search” -> Input "Local Computer Policy" ->[Computer Configuration] ->[Administrative Templates] ->
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;[[File:SDM850 ENV 07.png|RTENOTITLE]]</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp; [Windows Components] ->[Windows PowerShell] ->[Turn on Script Execution] ->check [Enabled] ->[Option: Execution Policy] ->select [Allow all scripts]
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">4.&nbsp; &nbsp; Install EWDK</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp;[[File:SDM850 ENV 07.png|RTENOTITLE]]
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;A. Insert EWDK ISO CD</span></span>
  
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;B. Copy it to the D:\EWDK</span></span>
  
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">5.&nbsp; &nbsp; Install Visual Studio Professional 2017</span></span>
  
4.&nbsp; &nbsp; Install EWDK
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;[https://developer.microsoft.com/zh-tw/windows/downloads https://developer.microsoft.com/zh-tw/windows/downloads]</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp;A. Insert EWDK ISO CD
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp;&nbsp;In Visual Studio Installer, check installed components in Individual components TAB in Modifying window:</span></span>
  
&nbsp; &nbsp; &nbsp; &nbsp;B. Copy it to the D:\EWDK
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp;&nbsp;[[File:SDM850 ENV 08.png|RTENOTITLE]]</span></span>
  
5.&nbsp; &nbsp; Install Visual Studio Professional 2017
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; Add the following individual components</span></span>
  
&nbsp; &nbsp; &nbsp;&nbsp;[https://developer.microsoft.com/zh-tw/windows/downloads https://developer.microsoft.com/zh-tw/windows/downloads]
+
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp;[[File:SDM850 ENV 09.png|RTENOTITLE]]</span></span>
 +
 
 +
 
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">6.&nbsp; &nbsp; Donwload WDK for Windows 10, version 1809</span></span>
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; &nbsp;[https://go.microsoft.com/fwlink/?linkid=2026156 https://go.microsoft.com/fwlink/?linkid=2026156]</span></span>
 +
 
 +
 
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">7.&nbsp; &nbsp; Set device WIN10 to Testing Mode for test your driver</span></span>
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; [[File:SDM850 ENV 10.png|RTENOTITLE]]&nbsp;</span></span>
 +
 
 +
 
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">8.&nbsp; &nbsp;&nbsp;Prepare the WD image for adding driver</span></span>
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; A. Create new directory DesktopOS in D:\</span></span>
 +
 
 +
<span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">&nbsp; &nbsp; &nbsp; B.&nbsp;Insert WD ISO CD and extract it to D:\DesktopOS</span></span>
 +
 
 +
== Build tool installation ==
 +
 
 +
1. Java Runtime Environment
 +
 
 +
[[File:SDM850 Install Java 01.png|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
2. Hexagon - version 8.1.04
 +
 
 +
[[File:SDM850 Install Hexagon 01.png|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
3. LLVM - version 3.9.6
 +
 
 +
[[File:SDM850 Install LLVM 01.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
4. Python - version 2.7.6 with&nbsp;pywin32
 +
 
 +
Python should be installed first and than pywin32 extra packages
 +
 
 +
[[File:SDM850 Install Python 01.PNG|RTENOTITLE]]&nbsp; &nbsp;[[File:SDM850 Install Pywin32 01.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
5. Perl - version 5.20.2
 +
 
 +
[[File:SDM850 Install Perl64 01.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
6. Cygwin
 +
 
 +
[[File:SDM850 Install Cygwin 01.PNG|RTENOTITLE]]&nbsp;[[File:SDM850 Install Cygwin 02.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
Select the "category" package settings with binutils package (solve&nbsp;the objcopy tool missing&nbsp;issue)
 +
 
 +
[[File:SDM850 Install Cygwin 03.PNG|RTENOTITLE]]
 +
 
 +
 
 +
 
 +
 
 +
== Use Pre-built Windows 10 PRO Environment ==
 +
 
 +
1. Download the Win10 PRO VirtualBox System with complete installed enironment
 +
 
 +
&nbsp; &nbsp; [file://172.22.31.128/risc$/ACG_DMS/resource/SDM850/VirtualBox file://172.22.31.128/risc$/ACG_DMS/resource/SDM850/VirtualBox]
 +
 
 +
2. Login Windows 10 with PIN code "123321"

Latest revision as of 13:32, 27 June 2019

Install Windows 10 PRO manually

1.  Install VirtualBox

2.  Create two storage disks with at least 100GB each

3.  Insert Win10 ISO CD

4.  Start Windows 10 PRO OS installation

 RTENOTITLE   

 RTENOTITLE     RTENOTITLE


Build machine and host OS (Windows 10 PRO) setup

1. Set system locate to English

    Settings -> Time & Language -> Region -> Additional date, time & regional settings -> Region ->

    Administrative -> Language for non-unicode programs -> Change system locale... ->

    Current system locale: Select "English (United States)

   RTENOTITLE

2.  Install .NET Framework 3.5

    A. Insert Windows ISO CD

    B. Install .NET Framework 3.5 from Windows ISO CD

       # dism /online /enable-feature /featurename:netfx3 /all /limitaccess /source:E:\sources\sxs

      RTENOTITLE

   C. Execuate “Win10 Settings” and follow bellows to install

       Settings ->[Apps & Features] ->[Programs and Features] ->[Turn Windows features on or off] ->

       [.NET Framework 3.5] ->check [Windows Communication Foundation Non-HTTP Activation]

      RTENOTITLE

3.    Change PowerShell policy for ACPI building

        In Windows “Search” -> Input "Local Computer Policy" ->[Computer Configuration] ->[Administrative Templates] ->

        [Windows Components] ->[Windows PowerShell] ->[Turn on Script Execution] ->check [Enabled] ->[Option: Execution Policy] ->select [Allow all scripts]

       RTENOTITLE

4.    Install EWDK

       A. Insert EWDK ISO CD

       B. Copy it to the D:\EWDK

5.    Install Visual Studio Professional 2017

       https://developer.microsoft.com/zh-tw/windows/downloads

      In Visual Studio Installer, check installed components in Individual components TAB in Modifying window:

  RTENOTITLE

      Add the following individual components

 RTENOTITLE


6.    Donwload WDK for Windows 10, version 1809

       https://go.microsoft.com/fwlink/?linkid=2026156


7.    Set device WIN10 to Testing Mode for test your driver

      RTENOTITLE 


8.    Prepare the WD image for adding driver

      A. Create new directory DesktopOS in D:\

      B. Insert WD ISO CD and extract it to D:\DesktopOS

Build tool installation

1. Java Runtime Environment

RTENOTITLE


2. Hexagon - version 8.1.04

RTENOTITLE


3. LLVM - version 3.9.6

RTENOTITLE


4. Python - version 2.7.6 with pywin32

Python should be installed first and than pywin32 extra packages

RTENOTITLE   RTENOTITLE


5. Perl - version 5.20.2

RTENOTITLE


6. Cygwin

RTENOTITLE RTENOTITLE


Select the "category" package settings with binutils package (solve the objcopy tool missing issue)

RTENOTITLE



Use Pre-built Windows 10 PRO Environment

1. Download the Win10 PRO VirtualBox System with complete installed enironment

    file://172.22.31.128/risc$/ACG_DMS/resource/SDM850/VirtualBox

2. Login Windows 10 with PIN code "123321"