VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129295
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.c

    r58466 r77662  
    22  Initialize Debug Agent in DXE by invoking Debug Agent Library.
    33
    4 Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
     4Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
    55This program and the accompanying materials
    66are licensed and made available under the terms and conditions of the BSD License
     
    1717#include <Library/UefiBootServicesTableLib.h>
    1818#include <Library/DebugAgentLib.h>
     19#include <Library/UefiLib.h>
    1920
    2021EFI_EVENT       mExitBootServiceEvent;
     
    5960  EFI_STATUS      Status;
    6061
     62  if (gST->ConOut != NULL) {
     63    Print (L"If the Debug Port is serial port, please make sure this serial port isn't connected by");
     64    Print (L" ISA Serial driver\r\n");
     65    Print (L"You could do the following steps to disconnect the serial port:\r\n");
     66    Print (L"1: Shell> drivers\r\n");
     67    Print (L"   ...\r\n");
     68    Print (L"   V  VERSION  E G G #D #C DRIVER NAME                         IMAGE NAME\r\n");
     69    Print (L"   == ======== = = = == == =================================== ===================\r\n");
     70    Print (L"   8F 0000000A B - -  1 14 PCI Bus Driver                      PciBusDxe\r\n");
     71    Print (L"   91 00000010 ? - -  -  - ATA Bus Driver                      AtaBusDxe\r\n");
     72    Print (L"   ...\r\n");
     73    Print (L"   A7 0000000A B - -  1  1 ISA Serial Driver                   IsaSerialDxe\r\n");
     74    Print (L"   ...\r\n");
     75    Print (L"2: Shell> dh -d A7\r\n");
     76    Print (L"   A7: Image(IsaSerialDxe) ImageDevPath (..9FB3-11D4-9A3A-0090273FC14D))DriverBinding");
     77    Print (L" ComponentName ComponentName2\r\n");
     78    Print (L"        Driver Name    : ISA Serial Driver\r\n");
     79    Print (L"        Image Name     : FvFile(93B80003-9FB3-11D4-9A3A-0090273FC14D)\r\n");
     80    Print (L"        Driver Version : 0000000A\r\n");
     81    Print (L"        Driver Type    : BUS\r\n");
     82    Print (L"        Configuration  : NO\r\n");
     83    Print (L"        Diagnostics    : NO\r\n");
     84    Print (L"        Managing       :\r\n");
     85    Print (L"          Ctrl[EA] : PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)\r\n");
     86    Print (L"            Child[EB] : PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115200,8,N,1)\r\n");
     87    Print (L"3: Shell> disconnect EA\r\n");
     88    Print (L"4: Shell> load -nc DebugAgentDxe.efi\r\n\r\n");
     89  }
    6190  Status = EFI_UNSUPPORTED;
    6291  InitializeDebugAgent (DEBUG_AGENT_INIT_DXE_LOAD, &Status, NULL);
    6392  if (EFI_ERROR (Status)) {
    6493    return Status;
     94  }
     95  if (gST->ConOut != NULL) {
     96    Print (L"Debug Agent: Initialized successfully!\r\n\r\n");
    6597  }
    6698  //
     
    99131  Status = EFI_UNSUPPORTED;
    100132  InitializeDebugAgent (DEBUG_AGENT_INIT_DXE_UNLOAD, &Status, NULL);
     133  switch (Status) {
     134  case EFI_ACCESS_DENIED:
     135    Print (L"Debug Agent: Host is still connected, please de-attach TARGET firstly!\r\n");
     136    break;
     137  case EFI_NOT_STARTED:
     138    Print (L"Debug Agent: It hasn't been initialized, cannot unload it!\r\n");
     139    break;
     140  }
    101141
    102142  return Status;
  • trunk/src/VBox/Devices/EFI/FirmwareNew/SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxe.uni

    r58464 r77662  
    1 // /** @file
     1// /** @file
    22// Initialized Debug Agent in one separated DXE driver.
    33//
  • trunk/src/VBox/Devices/EFI/FirmwareNew/SourceLevelDebugPkg/DebugAgentDxe/DebugAgentDxeExtra.uni

    r58464 r77662  
    1 // /** @file
     1// /** @file
    22// DebugAgentDxe Localized Strings and Content
    33//
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette