From: Rob Herring <r...@kernel.org>

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 <s...@broadcom.com>
Signed-off-by: Rob Herring <r...@kernel.org>
---
 common/aboot.c | 1 +
 1 file changed, 1 insertion(+)

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;
 
-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to