Difference between revisions of "SDM850 build instructions"

From ESS-WIKI
Jump to: navigation, search
(modify platfform ID - SFF)
Line 1: Line 1:
== <span style="font-size:large;">build board support package source</span> ==
+
== build board support package source ==
  
<span style="font-family:arial,helvetica,sans-serif;">1. Unzip the SDM850 BSP package to D:\BSP</span>
+
1. Unzip the SDM850 BSP package to D:\BSP
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp;[[File:SDM850 BUILD 01.png|RTENOTITLE]]</span>
+
[[File:SDM850 BUILD 01.png|RTENOTITLE]]
  
<span style="font-family:arial,helvetica,sans-serif;">2. Copy ACPI compiler</span>
 
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp;&nbsp;copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\"</span>
+
2. Copy ACPI compiler
  
<span style="font-family:arial,helvetica,sans-serif;">3.&nbsp;Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj”</span>
+
&nbsp; &nbsp; copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\"
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp;add "<Target Name="<span style="color:#FF0000;">Clean</span>"> &lt;/Target&gt;" after "&lt;Target Name="Build"&gt; &lt;/Target&gt;"</span>
 
  
<span style="font-family:arial,helvetica,sans-serif;">4.&nbsp;Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd”</span>
+
3.&nbsp;Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj”
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp;&nbsp;Find all "ATTRIB +R" and replace to "<span style="color:#FF0000;">ATTRIB -R</span>"</span>
+
&nbsp; &nbsp; add "<Target Name="<span style="color:#FF0000;">Clean</span>"> &lt;/Target&gt;" after "&lt;Target Name="Build"&gt; &lt;/Target&gt;"
  
<span style="font-family:arial,helvetica,sans-serif;">5.&nbsp;Delete or Rename "WP\src\tools\rel\10.4\<span style="color:#FF0000;">CrmParallelization.py</span>" to skip this python script</span>
 
  
<span style="font-family:arial,helvetica,sans-serif;">6. Run administrator command shell</span>
+
4.&nbsp;Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd”
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; A. D:\EWDK>LaunchBuildEnv.cmd</span>
+
&nbsp; &nbsp;&nbsp;Find all "ATTRIB +R" and replace to "<span style="color:#FF0000;">ATTRIB -R</span>"
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; B.&nbsp;D:\>setenv.bat</span>
 
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp;&nbsp;[[File:SDM850 BUILD 02.png|RTENOTITLE]]</span>
+
5.&nbsp;Delete or Rename "WP\src\tools\rel\10.4\<span style="color:#FF0000;">CrmParallelization.py</span>" to skip this python script
  
  
 +
6. Run administrator command shell
  
<span style="font-family:arial,helvetica,sans-serif;">7. Compilation</span>
+
&nbsp; &nbsp; A. D:\EWDK>LaunchBuildEnv.cmd
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; A.&nbsp;Build for all&nbsp;: run the following command in WP\src folder after setting environment</span>
+
&nbsp; &nbsp; B.&nbsp;D:\>setenv.bat
  
<span style="font-family:arial,helvetica,sans-serif;"><span style="color:#0000FF;">&nbsp; &nbsp;&nbsp;.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64</span></span>
+
&nbsp; &nbsp;&nbsp;[[File:SDM850 BUILD 02.png|RTENOTITLE]]
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; B.&nbsp;Build component</span>
 
  
<span style="font-family:arial,helvetica,sans-serif;"><span style="color:#0000FF;">&nbsp; &nbsp;&nbsp;.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput&nbsp;%1</span></span>
 
  
<span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; C.&nbsp;If ACPI compile fail at first time. Please rebuild it again with below command</span>
+
7. Compilation
  
<span style="font-family:arial,helvetica,sans-serif;"><span style="color:#0000FF;">&nbsp; &nbsp;&nbsp;.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi</span></span>
+
&nbsp; &nbsp; A.&nbsp;Build for all&nbsp;: run the following command in WP\src folder after setting environment
  
== <span style="font-size:large;">build WD image with adding drivers</span> ==
+
&nbsp; &nbsp; &nbsp; &nbsp; .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64
 +
 
 +
&nbsp; &nbsp; B.&nbsp;Build component
 +
 
 +
<span style="color:#0000FF;">&nbsp; &nbsp; &nbsp; &nbsp; .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput&nbsp;%1</span>
 +
 
 +
&nbsp; &nbsp; C.&nbsp;If ACPI compile fail at first time. Please rebuild it again with below command
 +
 
 +
<span style="color:#0000FF;">&nbsp; &nbsp; &nbsp; &nbsp; .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi</span>
 +
 
 +
== build WD image with adding drivers ==
  
 
1.&nbsp;Copy D:\DesktopOS into D:\BSP\NP850\prebuilt\
 
1.&nbsp;Copy D:\DesktopOS into D:\BSP\NP850\prebuilt\
  
 
<br/>&nbsp; &nbsp;[[File:SDM850 BUILD 03.png|RTENOTITLE]]
 
<br/>&nbsp; &nbsp;[[File:SDM850 BUILD 03.png|RTENOTITLE]]
 
  
  
Line 55: Line 59:
 
3.&nbsp;Copy folder "WP\src\build\Qualcomm\BCDBoot" to "WP\prebuild\DesktopOS\”
 
3.&nbsp;Copy folder "WP\src\build\Qualcomm\BCDBoot" to "WP\prebuild\DesktopOS\”
  
4. Remove some .proj files to avoid building. Or you can rename them to<span style="color:#FF0000;">.proj_</span><span style="color:#0000FF;"></span>
+
4.&nbsp;Remove some .proj files to avoid building. Or you can rename them to<span style="color:#FF0000;">.proj_</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;createwdtargetsfile_19H1.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;featuremerger.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;inf2cat.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;isogen_19H1.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;isogen_thumbdrive_19H1.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;postsign_phone.proj</span>
 +
 
 +
<span style="color:#0000FF;">&nbsp;&nbsp; &nbsp;regroup_drivers.proj</span>
 +
 
  
<span style="color:#0000FF;">&nbsp;&nbsp;&nbsp;&nbsp;createwdtargetsfile_19H1.proj<br/>&nbsp;&nbsp; &nbsp;featuremerger.proj<br/>&nbsp;&nbsp; &nbsp;inf2cat.proj<br/>&nbsp;&nbsp; &nbsp;isogen_19H1.proj<br/>&nbsp;&nbsp;&nbsp;&nbsp;isogen_thumbdrive_19H1.proj<br/>&nbsp;&nbsp; &nbsp;postsign_phone.proj<br/>&nbsp;&nbsp; &nbsp;regroup_drivers.proj</span>
 
  
 
5. Modify “WP\prebuilt\850\isogen_thumbdrive.proj” fles
 
5. Modify “WP\prebuilt\850\isogen_thumbdrive.proj” fles
Line 65: Line 83:
 
6. Modify "WP\prebuild\850\isogen.proj" files&nbsp;&nbsp;&nbsp;
 
6. Modify "WP\prebuild\850\isogen.proj" files&nbsp;&nbsp;&nbsp;
  
&nbsp; &nbsp;A.&nbsp;Search &lt;WD_Target Condition="'$(WD_Target)'=="&gt;MTP;CLS&lt;/WD_Target&gt;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Edit as &lt;WD_Target Condition="'$(WD_Target)'=="&gt;<span style="color:#FF0000;">SFF</span>&lt;/WD_Target&gt;<br/>&nbsp;&nbsp;&nbsp;B.&nbsp;Search "&lt;Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'" /&gt;" .&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Edit as&nbsp;&nbsp;<Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS' <span style="color:#FF0000;">AND '%(WDTargets.Identity)'!='SFF'</span>" /><br/>&nbsp;&nbsp;&nbsp;C.&nbsp;Copy your driver files(.ing .sys .cat .pdb...) to "WP\\prebuilt\850\driver\common\"
+
&nbsp; &nbsp;A.&nbsp;Search &lt;WD_Target Condition="'$(WD_Target)'=="&gt;MTP;CLS&lt;/WD_Target&gt;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Edit as &lt;WD_Target Condition="'$(WD_Target)'=="&gt;<span style="color:#FF0000;">SFF</span>&lt;/WD_Target&gt;<br/>&nbsp;&nbsp;&nbsp;B.&nbsp;Search "&lt;Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'" /&gt;" .&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Edit as&nbsp;&nbsp;<Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'&nbsp;
 +
 
 +
<span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; AND '%(WDTargets.Identity)'!='SFF'</span>" /><br/>&nbsp;&nbsp;&nbsp;C.&nbsp;Copy your driver files(.ing .sys .cat .pdb...) to "WP\\prebuilt\850\driver\common\"
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">7.&nbsp;Modify "WP\prebuilt\850\DesktopScripts\drivers.txt to add your driver name.</span></span>
+
7.&nbsp;Modify "WP\prebuilt\850\DesktopScripts\drivers.txt to add your driver name.
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">8.&nbsp;Delete folder "WP\prebuild\850\ARM64\" and “WP\prebuild\850\ISOGEN\” if you have before image building every time</span></span>
+
8.&nbsp;Delete folder "WP\prebuild\850\ARM64\" and “WP\prebuild\850\ISOGEN\” if you have before image building every time
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">9. Starting building</span></span>
+
9. Starting building
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; A. D:\EWDK>LaunchBuildEnv.cmd</span></span>
+
&nbsp; &nbsp; A. D:\EWDK>LaunchBuildEnv.cmd
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; B.&nbsp;D:\>setenv.bat</span></span>
+
&nbsp; &nbsp; B.&nbsp;D:\>setenv.bat
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; C: cd WP\prebuild\</span></span>
+
&nbsp; &nbsp; C: cd WP\prebuild\
  
<span style="font-size:small;"><span style="font-family:arial,helvetica,sans-serif;">&nbsp; &nbsp; D: postbld.bat</span></span>
+
&nbsp; &nbsp; D: postbld.bat

Revision as of 13:55, 27 June 2019

build board support package source

1. Unzip the SDM850 BSP package to D:\BSP

RTENOTITLE


2. Copy ACPI compiler

    copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\"


3. Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj”

    add "<Target Name="Clean"> </Target>" after "<Target Name="Build"> </Target>"


4. Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd”

    Find all "ATTRIB +R" and replace to "ATTRIB -R"


5. Delete or Rename "WP\src\tools\rel\10.4\CrmParallelization.py" to skip this python script


6. Run administrator command shell

    A. D:\EWDK>LaunchBuildEnv.cmd

    B. D:\>setenv.bat

    RTENOTITLE


7. Compilation

    A. Build for all : run the following command in WP\src folder after setting environment

        .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64

    B. Build component

        .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput %1

    C. If ACPI compile fail at first time. Please rebuild it again with below command

        .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi

build WD image with adding drivers

1. Copy D:\DesktopOS into D:\BSP\NP850\prebuilt\


   RTENOTITLE


2. Copy folder "WP\src\build\Qualcomm\DISM" to "WP\prebuild\DesktopOS\”

3. Copy folder "WP\src\build\Qualcomm\BCDBoot" to "WP\prebuild\DesktopOS\”

4. Remove some .proj files to avoid building. Or you can rename them to.proj_

   createwdtargetsfile_19H1.proj

   featuremerger.proj

   inf2cat.proj

   isogen_19H1.proj

   isogen_thumbdrive_19H1.proj

   postsign_phone.proj

    regroup_drivers.proj


5. Modify “WP\prebuilt\850\isogen_thumbdrive.proj” fles

    A.   Modify all "$(DesktopOS)\Install.wim" to "$(DesktopOS)\sources\Install.wim"
    B.   Search <WD_Target Condition="'$(WD_Target)'==">MTP;QRD;CLS</WD_Target>
          Edit as <WD_Target Condition="'$(WD_Target)'==">SFF</WD_Target>

6. Modify "WP\prebuild\850\isogen.proj" files   

   A. Search <WD_Target Condition="'$(WD_Target)'==">MTP;CLS</WD_Target>   
        Edit as <WD_Target Condition="'$(WD_Target)'==">SFF</WD_Target>
   B. Search "<Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'" />" . 
        Edit as  <Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS' 

        AND '%(WDTargets.Identity)'!='SFF'" />
   C. Copy your driver files(.ing .sys .cat .pdb...) to "WP\\prebuilt\850\driver\common\"

7. Modify "WP\prebuilt\850\DesktopScripts\drivers.txt to add your driver name.

8. Delete folder "WP\prebuild\850\ARM64\" and “WP\prebuild\850\ISOGEN\” if you have before image building every time

9. Starting building

    A. D:\EWDK>LaunchBuildEnv.cmd

    B. D:\>setenv.bat

    C: cd WP\prebuild\

    D: postbld.bat