aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2023-01-04 16:38:28 +0800
committerFred Reitberger <reitbergerfred@gmail.com>2023-02-08 12:26:37 +0000
commit7c7294fa27c1508742f6ea7cf98a959d468478ba (patch)
treee433ec86499cc5d7491eee83e993a1e01617673b /util
parent02dcf97dd4b515fc3ec71709f57628259f401c20 (diff)
amdfwtool: Report the address of EFS header and body
The address mode is an internal mode which AMD FWs use. Regular developers don't have to know that. Just report the relative address every time. For the cases head and body are split, the address of body is also reported. Change-Id: I77d9aac0b3d996363341c1d2dae049ec344b39aa Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71651 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/amdfwtool/amdfwtool.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 1703cf7138..9b250b52b7 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -2545,9 +2545,12 @@ int main(int argc, char **argv)
ctx.address_mode = AMD_ADDR_REL_BIOS;
else
ctx.address_mode = AMD_ADDR_PHYSICAL;
- printf(" AMDFWTOOL Using firmware directory location of %s address: 0x%08x\n",
- ctx.address_mode == AMD_ADDR_PHYSICAL ? "absolute" : "relative",
- RUN_CURRENT(ctx));
+ printf(" AMDFWTOOL Using firmware directory location of address: 0x%08x",
+ efs_location);
+ if (body_location != efs_location)
+ printf(" with a split body at: 0x%08x\n", body_location);
+ else
+ printf("\n");
integrate_firmwares(&ctx, amd_romsig, amd_fw_table);