Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
os-d committed Oct 1, 2024
1 parent 3a27399 commit f623c40
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Common/MU_TIANO
Submodule MU_TIANO updated 57 files
+1 −1 .github/ISSUE_TEMPLATE/bug_report.yml
+26 −3 .github/pull_request_template.md
+1 −1 .github/release-draft-config-n-1.yml
+1 −1 .github/release-draft-config-n.yml
+3 −13 .github/workflows/codeql.yml
+1 −1 .github/workflows/release-draft.yml
+1 −52 CONTRIBUTING.md
+1 −16 EmbeddedPkg/Library/FdtLib/fdt_overlay.c
+1 −4 EmbeddedPkg/Library/FdtLib/fdt_rw.c
+6 −38 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.c
+0 −5 EmbeddedPkg/Library/PrePiHobLib/Hob.c
+3 −4 EmbeddedPkg/Library/PrePiLib/FwVol.c
+0 −6 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOut.c
+0 −2 FatPkg/EnhancedFatDxe/Info.c
+0 −4 FatPkg/FatPei/FatLiteApi.c
+3 −5 FmpDevicePkg/FmpDxe/FmpDxe.c
+1 −1 FmpDevicePkg/Library/FmpDependencyLib/FmpDependencyLib.c
+7 −5 PrmPkg/PrmConfigDxe/PrmConfigDxe.c
+31 −27 ReadMe.rst
+1 −1 SecurityPkg/DeviceSecurity/SpdmLib/libspdm
+4 −30 SecurityPkg/FvReportPei/FvReportPei.c
+5 −32 SecurityPkg/HddPassword/HddPasswordDxe.c
+0 −23 SecurityPkg/Include/Library/Tcg2PreUefiEventLogLib.h
+0 −20 SecurityPkg/Include/Library/Tpm2CommandLib.h
+3 −9 SecurityPkg/Library/AuthVariableLib/AuthService.c
+0 −19 SecurityPkg/Library/AuthVariableLib/AuthVariableLib.c
+6 −20 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
+30 −236 SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.c
+0 −1 SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
+2 −12 SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/PhysicalPresenceStrings.uni
+3 −1 SecurityPkg/Library/DxeTcg2PhysicalPresenceMinimumLib/DxeTcg2PhysicalPresenceMinimumLib.inf
+1 −1 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.c
+2 −18 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c
+1 −7 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.c
+1 −7 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c
+2 −20 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.c
+4 −27 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.c
+1 −13 SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c
+0 −15 SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/MmTcg2PhysicalPresenceLibCommon.c
+0 −1 SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.inf
+0 −1 SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLib.inf
+1 −3 SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.c
+1 −1 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c
+0 −81 SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
+1 −9 SecurityPkg/RandomNumberGenerator/RngDxe/Rand/AesCore.c
+0 −7 SecurityPkg/SecurityPkg.dec
+2 −6 SecurityPkg/SecurityPkg.dsc
+1 −3 SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c
+6 −29 SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c
+1 −7 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDriver.c
+6 −6 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
+1 −26 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
+3 −15 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigImpl.c
+1 −7 SecurityPkg/Tcg/TcgDxe/TcgDxe.c
+1 −7 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c
+15 −51 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
+4 −4 pip-requirements.txt
2 changes: 1 addition & 1 deletion Features/CONFIG
Submodule CONFIG updated 32 files
+1 −2 .cspell.json
+26 −3 .github/pull_request_template.md
+3 −3 .pytool/CISettings.py
+1 −52 CONTRIBUTING.md
+3 −3 SetupDataPkg/ConfApp/SetupConf.c
+1 −2 SetupDataPkg/SetupDataPkg.ci.yaml
+3 −40 SetupDataPkg/Tools/ConfigEditor.py
+4 −40 SetupDataPkg/Tools/GenNCCfgData.py
+4 −1 SetupDataPkg/Tools/ReadUefiVarsToConfVarList.py
+95 −0 SetupDataPkg/Tools/SettingSupport/BldDskPkt.py
+76 −0 SetupDataPkg/Tools/SettingSupport/CertSupportLib.py
+739 −0 SetupDataPkg/Tools/SettingSupport/DFCI_SupportLib.py
+340 −0 SetupDataPkg/Tools/SettingSupport/Data/CertProvisioningVariable.py
+356 −0 SetupDataPkg/Tools/SettingSupport/Data/PermissionPacketVariable.py
+391 −0 SetupDataPkg/Tools/SettingSupport/Data/SecureSettingVariable.py
+32 −0 SetupDataPkg/Tools/SettingSupport/DependencyLib.py
+757 −0 SetupDataPkg/Tools/SettingSupport/GenerateCertProvisionData.py
+501 −0 SetupDataPkg/Tools/SettingSupport/GeneratePermissionPacketData.py
+502 −0 SetupDataPkg/Tools/SettingSupport/GenerateSettingsPacketData.py
+69 −0 SetupDataPkg/Tools/SettingSupport/InsertCertIntoXML.py
+110 −0 SetupDataPkg/Tools/SettingSupport/PermissionsXMLLib.py
+108 −0 SetupDataPkg/Tools/SettingSupport/PyRobotRemote.py
+72 −0 SetupDataPkg/Tools/SettingSupport/SettingsXMLLib.py
+201 −0 SetupDataPkg/Tools/SettingSupport/UefiVariablesSupportLib.py
+143 −0 SetupDataPkg/Tools/SettingSupport/UefiVariablesSupportLinuxLib.py
+191 −0 SetupDataPkg/Tools/SettingSupport/UtilityFunctions.py
+33 −63 SetupDataPkg/Tools/VariableList.py
+132 −0 SetupDataPkg/Tools/WrapAndSetSvd.py
+4 −1 SetupDataPkg/Tools/WriteConfVarListToUefiVars.py
+122 −0 SetupDataPkg/Tools/setup.py
+5 −5 pip-requirements.txt
+4 −4 py-requirements.txt
23 changes: 13 additions & 10 deletions Platforms/Docs/Common/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,25 @@ This document described different ways to debug on the QEMU platforms.
Both Q35 and SBSA are setup to debug debugged using the MU debugger package. for
more details on using this debugger, see the [FeatureDebuggerPkg Readme](https://github.com/microsoft/mu_feature_debugger/blob/main/DebuggerFeaturePkg/Readme.md).

By default the debugger is disabled, to enable you must both enable the debugger
build flag to enable the source debug device state flag and specify a serial port
TCP port.

By default the debugger is enabled to break in on exceptions, but not to break in
on an initial breakpoint. To enable the initial breakpoint in DXE, you must pass:
```
stuart_build -c Platforms\QemuQ35Pkg\PlatformBuild.py BLD_*_DEBUGGER_ENABLED=TRUE SERIAL_PORT=5555 --flashrom
stuart_build -c Platforms\QemuQ35Pkg\PlatformBuild.py BLD_*_DXE_DBG_BRK=TRUE --FlashRom
```

On Q35 this allows for debugging over a different port then the usual debug output
because Q35 has a seperate serial port available to it. On SBSA the serial port
will be shared with the logging output.
will be shared with the logging output. As a result, on Q35, if `SERIAL_PORT=<PORT>`
is not passed on the cmdline, a default serial port at 50001 will be created. On SBSA,
no default port is set because it will prevent output from occuring on stdout, which
makes even telling if an exception occurred difficult.

Currently this will only enable the DXE debugger. The MM debugger will be added to Q35
once it support supervised Standalone MM.

Currently this will only enable the DXE debugger. The MM debugger must be manually
enabled using the PcdForceEnableDebugger if the DebugAgent has been configured.
By default, the DXE debugger will stall for 30 seconds on the initial breakpoint
before attempting to continue execution.
When an exception occurs, the debugger will break in and wait for a debugger client to
connect. This makes Q35 and SBSA very debuggable, because they will break in on
exceptions always, meaning a reboot is not required.

## Debugging using QEMU GDB Server

Expand Down
2 changes: 1 addition & 1 deletion Silicon/Arm/MU_TIANO
Submodule MU_TIANO updated 142 files

0 comments on commit f623c40

Please sign in to comment.