diff options
author | Frank Li <Frank.Li@nxp.com> | 2022-10-24 16:45:36 -0400 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-10-25 21:29:01 +0800 |
commit | e91a047f54f74061fa15d995c3ecceb940c45ada (patch) | |
tree | 1a2491ebe93ad5c81d556b2b1ffe4e2aa1417e4b | |
parent | 205680f9f4baabc030050ae14e7b2bb700a3ae70 (diff) |
LF-7382: fastboot: improve emmc write speed
tested at iMX8MM platfrom reduce almost half write time.
(499s vs 1000s).
About 1/4 improve at 8DXL platform.
100*512 = 51k, which small than emmc erase block size 64k,
which may cause more page management in emmc.
Increase to 4096, about 2M write to emmc each time.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | lib/image-sparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image-sparse.c b/lib/image-sparse.c index b255d3acc0..a90d51624e 100644 --- a/lib/image-sparse.c +++ b/lib/image-sparse.c @@ -55,7 +55,7 @@ static lbaint_t write_sparse_chunk_raw(struct sparse_storage *info, void *data, char *response) { - lbaint_t n = blkcnt, write_blks, blks = 0, aligned_buf_blks = 100; + lbaint_t n = blkcnt, write_blks, blks = 0, aligned_buf_blks = 4096; uint32_t *aligned_buf = NULL; if (CONFIG_IS_ENABLED(SYS_DCACHE_OFF)) { |