diff options
author | Rob Herring <robh@kernel.org> | 2014-10-16 11:19:36 +0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-27 17:54:09 -0400 |
commit | 998194584e53db13a9ed01f78c8f856e8f0bec67 (patch) | |
tree | fb5033a53c71ace66244baf59c658f4230a8fde1 /common/aboot.c | |
parent | ee665114c512dcd0654eaef236f78f0f7c31010e (diff) | |
download | u-boot-imx-998194584e53db13a9ed01f78c8f856e8f0bec67.zip u-boot-imx-998194584e53db13a9ed01f78c8f856e8f0bec67.tar.gz u-boot-imx-998194584e53db13a9ed01f78c8f856e8f0bec67.tar.bz2 |
aboot: fix block addressing for don't care chunk type
CHUNK_TYPE_DONT_CARE should skip over the specified number of blocks, but
currently fails to increment the device block address. This results in
filesystem images getting written incorrectly. Add the missing block
address incrementing.
Cc: Steve Rae <srae@broadcom.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'common/aboot.c')
-rw-r--r-- | common/aboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/aboot.c b/common/aboot.c index d5c464b..fba8e3e 100644 --- a/common/aboot.c +++ b/common/aboot.c @@ -208,6 +208,7 @@ void write_sparse_image(block_dev_desc_t *dev_desc, break; case CHUNK_TYPE_DONT_CARE: + blk += blkcnt; total_blocks += chunk_header->chunk_sz; break; |