Create a USB boot disk in the EFI Environment

Source: Internet
Author: User

1. Build EFI Shell

1. Environment setup:

1). Download EDK 1.05 (http://sourceforge.net/apps/mediawiki/tianocore/index.php? Title = EDK), download and decompress it in c :\.

2) download masm611 (masm615) and install it in c :\

3) install winddk in c: \ (my name is 3790.1812 ).

4) install vs2005

2. Start build

Open Visual Studio 2005 command prompt (2005 is an example ),

Run the cd c: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ bin command to enter the bin folder)

Run vcvars32.bat

 

Enter the command D: \ under D:

Go to the EDK build platform cd d: \ EDK \ sample \ platform \ duet

 

Before building EDK, go to the D: \ EDK \ sample \ platform \ duet \ build folder.

Open config. env and change use_vc8 = No to use_vc8 = yes.

 

Return to Visual Studio 2005 Command Prompt

EDK can generate four environments: efi32, efi64, uefi32, and uefi64.

Enter the key in Command Prompt:

Set edk_source = c: \ EDK

Set win_ddk_path = c: \ winddk \ 3790.1812 ==> set 6000 if wdk6000 is used

Set masmpath = c: \ masm611 ==> MASM also has other versions, depending on your downloaded version

Next we start to generate the EDK environment, and then generate uefi64 as an example:

Enter nmake uefi64 in command prompt

Compile takes about 3 ~ 5 points

 

Next, if you want to put EFI into a USB disk, You need to insert your USB disk into your computer.

Enter cd d: \ EDK \ sample \ platform \ duet \ uefi64 in VS 2005 command prompt to enter the uefi64 folder.

After you confirm that your USB disk is inserted into the computer, enter the following in Command Prompt:

Set efi_boot_disk = E: ====> specify the one for which your USB disk is

Start to create a USB Boot Disk:

Enter nmake createusb under command prompt

 

After the preparation is complete, you are required to remove the USB disk and re-insert it.

Then input nmake USB (this operation is to put the file required by the boot into the USB disk)

 

USB boot disk is complete. Next you just need to insert your USB boot disk into your computer, you can use the EFI Shell

Read the full text

Category:View comments on EFI

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.