Note: Phoenix SCT2 Traning

1. PEI

2. Added a Library to SCT2 codebase

1. meta.h, collection all include header files in the file

2. boards directory, for customazition

3. .INF,

3. SCT PEI Module/DXE Driver implement

PEI Module/ DXE Driver

1. EFI_PEIM_ENTRY_POINT(FuncName), must be declare an entry point

2. Modify .INF add Entrypoint and BASE_NAME, FILE_GUID

[defines]
BASE_NAME            = DemoDriver/DemoPEI
FILE_GUID            = 54A1736A-00D8-4f44-9855-051E044C5E31
COMPONENT_TYPE       = BS_DRIVER/PE32_PEIM # BS: Boot Services, RT: Runtime Service(SMM)

[nmake.common]
IMAGE_ENTRY_POINT = DemoEntryPoint
DPX_SOURCE = DemoDriver.dxs # Dependency PPI File

guid can to use uuidgen(console mode)/guidgen(GUI mode)

3. The EntryPoint will callback when PEICore to lunch the module.

4. modify .DXS

#include “EfiDepex.h"

DEPENDENCY_START
TRUE // always lunch
DEPENDENCY_END

4. PPI, PPI interface in PEIM, Protocol in DXE

PPI interfacc include GUIDs and function.

Install/Notify/Locate

Install, Install an PPI or trigger a Notify PPI

Notify, Registery a Notify PPI(Callback function)

Locate, Find out an PPI in PEI Service

5. Source overrid, Example OEM Int15 hook

Build system

6. SMM Driver/ACPI Customization

Sx SMM Callback sequence equal registery sequency

ACPI OEM String override support the following

  • ACPI_OEM_ID
  • ACPI_OEM_TABLE
  • ACPI_OEM_REVISION,
  • ACPI_CREATOR_ID
  • ACPI_CREATOR_REVISION

define in Build00Module.def, can override all configuration items to :

BoardsCustomerBoard00Module.def

or

ProjectsCustomerProject00Project.def (High)

Careful Item length of each string field

7.  Change  UEFI Variables in Driver to CMOS Space.

Replace GetVariable()/SetVariable() function in original driver

 

廣告

一個回應 to “Note: Phoenix SCT2 Traning”

  1. XD 研究EFI 了啊

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: