Building a UEFI environment under windows

Source: Internet
Author: User

Building a UEFI environment under windows

first, the environment preparation

1. Install 2012 and above vs https://visualstudio.microsoft.com/

2. Download Nasm 2.13.03 http://www.nasm.us/, the default installation directory is C:\nasm and added to the PATH environment variable

3. Install python2.7.x https://www.python.org/, the default installation directory is C:\Python27, add to the new python_home environment variable

4. Install the OpenSSL http://wiki.overbyte.eu/arch/openssl-1.1.0g-win32.zip, the default installation directory is C:\openssl, add to the PATH environment variable

5. Install Cygwin64 http://www.cygwin.com/, the default installation directory is C:\cygwin

6. Install UDK2018 Https://codeload.github.com/tianocore/edk2/zip/master, first create a working directory, such as D:\WorkSpace, to extract the UDK into the working directory

7. Download Edk2-basetools Https://codeload.github.com/tianocore/edk2-BaseTools-win32/zip/master

8. Download the OpenSSL configuration file https://codeload.github.com/openssl/openssl/zip/OpenSSL_1_1_0g

ii.. UDK configuration

1. In the. \edk2-vudk2018\cryptopkg\library\openssllib\, a OpenSSL directory exists, and after it is removed, it will openssl-openssl_1_1_ 0g.zip unzip to this directory and rename to OpenSSL

2. Unzip the edk2-basetools-win32-master.zip to. \uefi-workspace\edk2-vudk2018\basetools\, rename to Win32

3. In the. Modify Tool_chain_tag as the current tool version in \uefi-workspace\edk2-vudk2018\conf\target.txt, such as Tool_chain_tag = Vs2012x86

4. In the. \uefi-workspace\edk2-vudk2018\ directory, you can modify the Edksetup.bat to modify the installation location of some software

third, run the EFI file

1. Open cmd to: \uefi-workspace\edk2-vudk2018\ directory, first set the Python location, then the initialization operation, and finally the build operation

>>set python_home=C:\Python27 >>edksetup.bat--nt32

2. after initialization, build the EFI file with build, and after the build is finished, the. The build folder is generated under the \uefi-workspace\edk2-vudk2018\ directory. There are some initial EFI files in \build\nt32ia32\debug_vs2012x86\ia32\, such as the Helloworld.efi file

>>build

 

3. Open the NT32 simulator with a command (or in the. \uefi-workspace\edk2-vudk2018\build\nt32ia32\debug_vs2012x86\ia32\ Directory run SecMain.exe), enter Fs0:, and then enter the EFI filename to run the EFI file (the default directory is. \uefi-workspace\edk2-vudk2018\build\nt32ia32\debug_vs2012x86\ia32\)

>>Build Run >>fs0: >>helloworld.efi

4. Write the EFI file ( reprinted 46946907)

Building a UEFI environment under windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.