debug methodology under uefipresented by debug methodology under uefi uefi fall plugfest –october...
TRANSCRIPT
![Page 1: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/1.jpg)
presented by
Debug Methodology Under UEFI
UEFI Fall Plugfest – October 24-27, 2011Presented by Jack Wang
Phoenix Technologies
UEFI Plugfest – October 2011 www.uefi.org 1
Updated 2011-06-01
![Page 2: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/2.jpg)
Agenda
• Comparing Debug Options
– UEFI vs Legacy BIOS Debug
• Problems to Solve
• Design Considerations
• Typical Design
• Example Solution
• Q & A
UEFI Plugfest – October 2011 2www.uefi.org
![Page 3: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/3.jpg)
Comparing Debug Options
Interface Simple Complicated
Capability Limited Strong
Availability Platform Independent Platform Dependent
Cost Low Extremely High
Connection Universal Limited
Software
Solution
Hardware
Solution (ICE)
UEFI Plugfest – October 2011 3www.uefi.org
![Page 4: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/4.jpg)
UEFI vs Legacy BIOS Debug
Language C Base Assembly Base
Debugging Source Level Symbolic
Status Output Message Driven POST Code Driven
Status InterfaceReportStatusCode Device
(e.g. Port 80+81)Port 80
Debug Interface USB/I2C/SPI/Wireless Serial/Parallel/PCI Slot
Nowadays
(UEFI)
Prior Art
(Legacy BIOS)
UEFI Plugfest – October 2011 4www.uefi.org
![Page 5: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/5.jpg)
Problems to Solve
• Legacy Debug Interfaces Are Going Away– Serial Port, Parallel Port, PCI Slot, etc.
• Board Design Issues– Lack of J-TAG/XDP/USB 2.0 Debug Port
• Reliability– Complicated Data Communication
• Confliction– Debug Interface Not Always Available
UEFI Plugfest – October 2011 5www.uefi.org
![Page 6: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/6.jpg)
Device Considerations
• Cross-Platform (Intel/AMD/ARM…)• Multiple Connection Methods• Usability
– POST Time & Runtime– Use in R&D or After Market– Use on CRB or Production Hardware
• Status Reporting– I/O Port 80/81 (Checkpoints)– Debug Messages (Log)
UEFI Plugfest – October 2011 6www.uefi.org
![Page 7: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/7.jpg)
Feature Consideration
• Multiple Phase Support– PEI/DXE/SMM/CSM/Runtime– Selectable Debug Phase (PEI/DXE/SMM/CSM)
• Pre-RAM Debugging• Convenience
– Automatic Source Level Detection– Debug Mode Auto-Enabling– Debug Interface Auto-Detection– Debug Driver Auto-Download– Debug/Release Build Override
• Target-Defined Debug Features
UEFI Plugfest – October 2011 7www.uefi.org
![Page 8: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/8.jpg)
Typical Design (Phoenix PDD)
• Platform End USB I2C (DDR2/3), GPIO Serial SPI PS2
• Host End USB Serial
Multiple Interfaces
Standalone (Host Free)
• Port 80 Redirection• LCD Message Panel (Optional)• Wireless Module (Optional)
UEFI Plugfest – October 2011 8www.uefi.org
![Page 9: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/9.jpg)
COM
USB
LCD
SPI
I2C
Port 80/81
USB
PatentPending
Example Solution
UEFI Plugfest – October 2011 www.uefi.org 9
![Page 10: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/10.jpg)
Usage Scenarios
• Remote Debugging (Host <-> Target)
• Standalone Debugging (Host Free)
10
PatentPending
![Page 11: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/11.jpg)
Agenda
• Comparing Debug Options
– UEFI vs Legacy BIOS Debug
• Problems to Solve
• Design Considerations
• Typical Design
• Example Solution
• Q & A
UEFI Plugfest – October 2011 11www.uefi.org
![Page 12: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/12.jpg)
Thanks for attending the UEFI Fall Plugfest 2011
For more information on the Unified EFI Forum and UEFI Specifications, visit http://www.uefi.org
presented by
UEFI Plugfest – October 2011 www.uefi.org 12
![Page 13: Debug Methodology Under UEFIpresented by Debug Methodology Under UEFI UEFI Fall Plugfest –October 24-27, 2011 Presented by Jack Wang Phoenix Technologies UEFI Plugfest –October](https://reader033.vdocuments.us/reader033/viewer/2022042013/5e732e823d9a8563f030acd1/html5/thumbnails/13.jpg)
And that’s all for now …
UEFI Plugfest – October 2011 www.uefi.org 13
Welcoming Remarks – Aven Chuang, Insyde SoftwareUEFI Forum Updates – Dong Wei, VP of the UEFI Forum
Tips for UEFI Driver Compatibility – American Megatrends, Inc.Understanding Platform Requirements for UEFI HII – Brian Richardson, Intel Corporation
UEFI Security Enhancements – Kevin Davis, Insyde SoftwareHow to Protect the Pre-OS Environment with UEFI – Tony Mangefeste, Microsoft
Pre-OS Display Switching using GOP – James Huang, AMDDebug Methodology Under UEFI – Jack Wang, Phoenix Technologies
Download presentations after the plugfest at www.uefi.org