summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-02 14:45:30 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-02 14:45:30 +0000
commit5025be3fc17bc3873e20fda0abb7ca2e7591261d (patch)
tree7bd997f6774de56ad489638ff3bd347e51a006f2 /IntelFrameworkModulePkg
parent98f0ea8e6f40aa851edad746a2770b81b91980cd (diff)
downloadedk2-platforms-5025be3fc17bc3873e20fda0abb7ca2e7591261d.tar.xz
Add error debug information for capsule processing in Bds.
Signed-off-by: li-elvin Reviewed-by: lgao4, jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12271 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c b/IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c
index 0c2f3c1b79..07c12195fc 100644
--- a/IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c
+++ b/IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c
@@ -1,7 +1,7 @@
/** @file
BDS routines to handle capsules.
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -65,6 +65,7 @@ BdsProcessCapsules (
// We don't do anything else if the boot mode is not flash-update
//
if (BootMode != BOOT_ON_FLASH_UPDATE) {
+ DEBUG ((EFI_D_ERROR, "Boot mode is not correct for capsule update.\n"));
return EFI_INVALID_PARAMETER;
}
@@ -82,6 +83,10 @@ BdsProcessCapsules (
//
// We didn't find a hob, so had no errors.
//
+ DEBUG ((EFI_D_ERROR, "We can not find capsule data in capsule update boot mode.\n"));
+ DEBUG ((EFI_D_ERROR, "Please check the followings are correct if unexpected capsule update error happens.\n"));
+ DEBUG ((EFI_D_ERROR, "1. CapsuleX64 is built as X64 module when PEI is IA32 and DXE is X64\n"));
+ DEBUG ((EFI_D_ERROR, "2. Capsule data should persist in memory across a system reset.\n"));
PlatformBdsLockNonUpdatableFlash ();
return EFI_SUCCESS;
}