build miniplatform in windows 7 x64 sop - groups.io€¦ · 11. press [win] + [r] and type...
TRANSCRIPT
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 1 of 12
Project Name / Model No : Miniplatform
Form No:
1
Build Miniplatform In Windows 7 x64 SOP
Version 0.1
May. 13, 2019
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 2 of 12
Project Name / Model No : Miniplatform
Form No:
2
Index
BUILD MINIPLATFORM IN WINDOWS 7 X64 SOP .............................................................................................................................1
1. PLATFORM REQUIREMENT .................................................................................................................................................................3
1.1 INSTALL GIT CLIENT ................................................................................................................................................................................... 3 1.2 INSTALL MICROSOFT VISUAL STUDIO 2015 .................................................................................................................................................... 4 1.3 INSTALL ASL COMPILER ............................................................................................................................................................................... 6 1.4 INSTALL NASM ASSEMBLER(2.14.02) .......................................................................................................................................................... 6 1.5 INSTALL PYTHON 2.7.6 ............................................................................................................................................................................... 6
2. BUILD MINIPLATFORM BIOS ...............................................................................................................................................................7
2.1 GET MINIPLTFORM CODE FROM GITHUB ....................................................................................................................................................... 7 2.2 BUILD MINIPLTFORM CODE ......................................................................................................................................................................... 7 2.3 MERGE WITH ME BINARY THERE ARE TWO OPTIONS, YOU CAN CHOOSE EITHER ONE BASED ON YOU CONVENIENCE. ................................................... 8
2.3.1 Option one: Use Intel SPS FITC ........................................................................................................................................................ 8 2.3.2 Option two: Use the Original BIOS ROM which can bring up the Platform .................................................................................... 8
3. CHECK MINIPLATFORM BIOS ..............................................................................................................................................................8
3.1 SAMPLE HARDWARE CONFIGURATION .................................................................................................................................................................. 9
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 3 of 12
Project Name / Model No : Miniplatform
Form No:
3
1. Platform Requirement Hard Drive : > 10GB
Requirement Tool Name Download web
GIT Client https://git-scm.com/download/win
Microsoft Visual Studio 2015 https://my.visualstudio.com/Downloads?q=Visual%20Studio%202015%20with%20Update%203
ASL compiler https://acpica.org/sites/acpica/files/iasl-win-20190405.zip
NASM (2.14.02) https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/nasm-2.14.02-win64.zip
Python 2.7.6 https://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
1.1 Install GIT Client ⚫ Double click on the application downloaded from the website.
⚫ Install by its default options as below:
Click Next-> Click Next->
Click Next-> Click Next->
Click Next-> Click Next->
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 4 of 12
Project Name / Model No : Miniplatform
Form No:
4
Click Next-> Click Next->
Click Install Click Finish
⚫ Right click on any folder should see “Git GUI Here” and “Git Bash Here” options shown in the below red block
1.2 Install Microsoft Visual Studio 2015 ⚫ Download Visual Studio Community 2015 with Update 3
Click Download
⚫ Double click on the
en_visual_studio_community_2015_with_update_3_x86_x64_web_installer_8922963.exe
downloaded from the website.
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 5 of 12
Project Name / Model No : Miniplatform
Form No:
5
⚫ Install by its default options as below:
Click Next-> Click Next->
Click Install-> Close it
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 6 of 12
Project Name / Model No : Miniplatform
Form No:
6
1.3 Install ASL compiler ⚫ Download iasl-win-20190405.zip from the website. ⚫ Unzip the file to “C:\ASL” ⚫ You will see the items in C:\ASL as below :
1.4 Install NASM assembler(2.14.02) ⚫ Download nasm-2.14.02-win64.zip from the website. ⚫ Unzip the file to “C:\ASL” ⚫ You will see the folder nasm-2.14.02 in C:\ ⚫ Press [Win] + [R] and type “cmd”, then press [Enter] ⚫ Execute below command :
MOVE C:\nasm-2.14.02 C:\NASM ⚫ You will see the items in C:\NASM as in the right picture :
1.5 Install Python 2.7.6 ⚫ Double click on the python-2.7.6.amd64.msi downloaded from the website.
⚫ Install by its default options as below:
Click Next-> Click Next->
Click Next-> Click Finish
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 7 of 12
Project Name / Model No : Miniplatform
Form No:
7
2. Build Miniplatform BIOS
2.1 Get Minipltform Code From Github 1. Create a new directory (MinipltformProject) for an EDK II WORKSPACE.
2. Right click on the MinipltformProject directory
click Git Bash Here
3. Execute below commands
git clone --recursive https://github.com/tianocore/edk2.git git clone --recursive https://github.com/tianocore/edk2-platforms.git -b devel-MinPlatform git clone --recursive https://github.com/tianocore/edk2-non-osi.git -b devel-MinPlatform git clone --recursive https://github.com/IntelFsp/FSP.git -b Kabylake
2.2 Build Minipltform Code 1.Press [Shift] and right click on the MinipltformProject directory.
click Open command window here 2. Execute below red commands to build BIOS code.
PATH=%PATH%;C:\Python27
For MinKabylake : cd edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3 GitEdk2MinKabylake.bat For MinKabylake Debug: prep.bat For MinKabylake Release: prep.bat r bld.bat
For MinPurley: cd edk2-platforms\Platform\Intel\PurleyOpenBoardPkg\BoardMtOlympus GitEdk2MinMtOlympus.bat For MinPurley Debug: bld.bat For MinPurley Release: bld.bat release For remove MinPurley bld.bat clean
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 8 of 12
Project Name / Model No : Miniplatform
Form No:
8
3. After build, the built BIOS rom fd file for each project will be located as below:
For MinKabylake : Build\KabylakeOpenBoardPkg\KabylakeRvp3\DEBUG_VS2015x86\FV\ KABYLAKERVP3.fd
For MinPurley: Build\PurleyOpenBoardPkg\BoardMtOlympus\RELEASE_VS2015x86\FV\PLATFORM.fd
2.3 Merge with ME binary There are two options, you can choose either one based on you convenience.
2.3.1 Option one: Use Intel SPS FITC 1. Get Intel SPS FITC from the website as below:
https://platformsw.intel.com/home.aspx
2. Unzip it and find the application spsFITc.exe
(It’s usually under Tools\FlashImageTool folder)
3. Run it in the command prompt, and type spsFITc.exe –h to see how to use it.
(spsFITc.exe –exp can give you some examples)
4. After executing spsFITc.exe if you does not change the output image name. It will create a file outimage.bin
2.3.2 Option two: Use the Original BIOS ROM which can bring up the Platform 1. Download dd for windows from http://www.chrysocome.net/downloads/dd-0.6beta3.zip
2. Unzip the file to “MinipltformProject directory” 3. You will see the dd.exe in MinipltformProject directory 4. Use flash tool to dump platform orignal BIOS binary from ROM. 5. Save BIOS orignal binary as OrignalBIOS.bin in MinipltformProject directory
6. Press [Shift] and right click on the MinipltformProject directory.
click Open command window here
7. Run the below commands:
FOR /F "usebackq" %S IN ('OrignalBIOS.bin') DO SET OriSize=%~zS
SET FD_FILE=Build\PurleyOpenBoardPkg\BoardMtOlympus\RELEASE_VS2015x86\FV\PLATFORM.fd
FOR /F "usebackq" %S IN ('%FD_FILE%') DO SET BiosSize=%~zS
SET /a RemSize=%OriSize%-%BiosSize%
dd if=OrignalBIOS.bin of=outimage.bin bs=1 count=%RemSize%
dd if=”%FD_FILE%” of=outimage.bin bs=1 count=%BiosSize% seek=%RemSize%
8. After that, it will create a file outimage.bin
3. Check Miniplatform BIOS The current Miniplatform BIOS can detect the first CPU (CPU0) only, and the second CPU (CPU1)
can’t be detected, so you need to check your device(s) such as DIMM, M.2, USB are all connected to
CPU0, but not CPU1.
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 9 of 12
Project Name / Model No : Miniplatform
Form No:
9
3.1 Sample Hardware Configuration Here are the hardware configuration in our setup
1. One DIMM on “DIMM A1” socket as the below picture:
2. One VGA Video card with Riser card on “PCIe SLOT #3” as the below picture:
3. One M.2 on “M.2 #1 slot” as the below picture:
4. One Debug LED (as the below left ) connects to the “DEBUG HEADER” as the below right :
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 10 of 12
Project Name / Model No : Miniplatform
Form No:
10
5. One RS232 to USB line (as below left) where its “Dupont header” connects to the “OST DEBUG”
port as in the below bottom right, and the “USB type A port” connects to your computer.
6. Flash the BIOS image outimage.bin to the ROM on “BIOS FLASH #0” (socket 0) as in below picture.
7. Download putty 0.71 from https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.71-installer.msi
8. Install by its default options as below:
Click Next-> Click Next->
Click Install-> Click Finish
9. Press [Win] + [R] and type “devmgmt.msc” , and then press [Enter]
10. Check which COM port on your computer it connects to (as in the below picture it connects to
COM8):
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 11 of 12
Project Name / Model No : Miniplatform
Form No:
11
11. Press [Win] + [R] and type "C:\Program Files\PuTTY\putty.exe" and press [Enter]
12. Setting putty as below:
13. If you want to save the log, you can set it as below:
14. After setting, click “Open” and power on the machine.
15. If you flash the debug BIOS, it will show the below message:
16. After debug LED (80 port) displays 0xEF you will see the below screen
Subject: Build Miniplatform In Windows 7 SOP Part No.: Rev.:0.1 Doc. No.:
Project Code: Release Date: April.29,2019 Page 12 of 12
Project Name / Model No : Miniplatform
Form No:
12
If you press F7 you will see as below:
If it cannot detect a boot device, it will go to EFI SHELL as below: (In the example it has M.2 on it, you can see 1 FS in the map)
If there is a boot device that can be detected, it will boot to the OS as below: (Use Windows Server to demonstrate)
As red block above we can know it only can find 1 CPU.
If you press F7 and select UiApp, you will see the BIOS screen as below: