Attention is currently required from: Zheng Bao. Hello Zheng Bao,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/55158
to review the following change.
Change subject: cbfstool: Print out the CBFS offset and size ......................................................................
cbfstool: Print out the CBFS offset and size
From the output of "cbfstool print", only the offset to the CBFS module is printed. To calculate the offset to the whole image, we need to plus the CBFS offset itself.
Change-Id: Iebb7f55180cecfcb7526cf5ae94741b6ae526b66 Signed-off-by: Zheng Bao fishbaozi@gmail.com --- M util/cbfstool/cbfstool.c 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/55158/1
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c index 6133536..c61885f 100644 --- a/util/cbfstool/cbfstool.c +++ b/util/cbfstool/cbfstool.c @@ -1503,6 +1503,9 @@ if (cbfs_image_from_buffer(&image, param.image_region, param.headeroffset)) return 1; + + printf("cbfs_start: 0x%lx\n", image.buffer.offset); + printf("cbfs_size: 0x%lx\n", image.buffer.size); if (param.machine_parseable) { if (verbose) printf("[FMAP REGION]\t%s\n", param.region_name);