]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: sparse: Make CHUNK_TYPE_RAW buffer aligned
authorqianfan Zhao <qianfanguijin@163.com>
Tue, 16 Nov 2021 01:35:38 +0000 (09:35 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jan 2022 17:26:30 +0000 (12:26 -0500)
commit62649165cb02ab95b57360bb362886935f524f26
tree1faea598a9a393a26233745f9c3323c11ab4f07b
parent9b72d934c2f7d8ee894f87e082577743877eb76e
lib: sparse: Make CHUNK_TYPE_RAW buffer aligned

CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by
fastboot will report "Misaligned operation" if DCACHE is enabled.

Flashing Sparse Image
CACHE: Misaligned operation at range [8400002884001028]
CACHE: Misaligned operation at range [8400103484002034]
CACHE: Misaligned operation at range [8401104c8401304c]

Fix it

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
lib/image-sparse.c