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>
This commit is contained in:
Zheng Bao 2023-01-04 16:38:28 +08:00 committed by Fred Reitberger
parent 02dcf97dd4
commit 7c7294fa27
1 changed files with 6 additions and 3 deletions

View File

@ -2545,9 +2545,12 @@ int main(int argc, char **argv)
ctx.address_mode = AMD_ADDR_REL_BIOS; ctx.address_mode = AMD_ADDR_REL_BIOS;
else else
ctx.address_mode = AMD_ADDR_PHYSICAL; ctx.address_mode = AMD_ADDR_PHYSICAL;
printf(" AMDFWTOOL Using firmware directory location of %s address: 0x%08x\n", printf(" AMDFWTOOL Using firmware directory location of address: 0x%08x",
ctx.address_mode == AMD_ADDR_PHYSICAL ? "absolute" : "relative", efs_location);
RUN_CURRENT(ctx)); 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); integrate_firmwares(&ctx, amd_romsig, amd_fw_table);