mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
ee665114c5
commit
998194584e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue