From: Rob Herring Date: Thu, 16 Oct 2014 03:19:36 +0000 (+0800) Subject: aboot: fix block addressing for don't care chunk type X-Git-Tag: v2015.01-rc1~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=998194584e53db13a9ed01f78c8f856e8f0bec67;p=platform%2Fkernel%2Fu-boot.git 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 Signed-off-by: Rob Herring Reviewed-by: Steve Rae --- 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;