aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-04-07 00:17:40 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-04-07 00:22:37 +0200
commitdcbde11af181055f2d1c77ebc19f50c29bbab96e (patch)
tree00ac7bfedcac54d11f41374cbb2616b024a9a06b
parente33957c241abf8f0dbf5f3713058d126fb4599b4 (diff)
downloadupstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.tar.gz
upstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.tar.bz2
upstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.zip
firmware-utils: bcm4908img: fix extracting cferom
Fix offset to extract proper data when image contains vendor header. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--tools/firmware-utils/src/bcm4908img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/bcm4908img.c b/tools/firmware-utils/src/bcm4908img.c
index 51c06041d6..b82303bf6d 100644
--- a/tools/firmware-utils/src/bcm4908img.c
+++ b/tools/firmware-utils/src/bcm4908img.c
@@ -580,7 +580,7 @@ static int bcm4908img_extract(int argc, char **argv) {
}
if (!strcmp(type, "cferom")) {
- offset = 0;
+ offset = info.cferom_offset;
length = info.bootfs_offset - offset;
if (!length) {
err = -ENOENT;