aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
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-08 13:16:12 +0200
commitfe302010d3493286ef1a6a3b440d243208b93a5c (patch)
tree4ddd44e84bc44e2af63b5d2e0cb354ea344a8e91 /tools/firmware-utils/src
parente708c5ef08b5d3691d155a6fa2ac40c95ecd4283 (diff)
downloadupstream-fe302010d3493286ef1a6a3b440d243208b93a5c.tar.gz
upstream-fe302010d3493286ef1a6a3b440d243208b93a5c.tar.bz2
upstream-fe302010d3493286ef1a6a3b440d243208b93a5c.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> (cherry picked from commit dcbde11af181055f2d1c77ebc19f50c29bbab96e)
Diffstat (limited to 'tools/firmware-utils/src')
-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;