diff options
author | Rob Herring <robh@kernel.org> | 2014-10-16 11:19:36 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2015-06-09 07:04:41 +0800 |
commit | e28336b4e0bbc0471ef45fa995fcb99e53fe2b7a (patch) | |
tree | 27dbd58cbffbfe748b80fede92b21f4e2702c27a | |
parent | dcdf24e7fc999bb5d51df55bb4bc212dd76b60a6 (diff) | |
download | u-boot-imx-e28336b4e0bbc0471ef45fa995fcb99e53fe2b7a.zip u-boot-imx-e28336b4e0bbc0471ef45fa995fcb99e53fe2b7a.tar.gz u-boot-imx-e28336b4e0bbc0471ef45fa995fcb99e53fe2b7a.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>
-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; |