Commit e91a047f54f74061fa15d995c3ecceb940c45ada
Committed by
Ye Li
1 parent
205680f9f4
Exists in
emb_lf_v2022.04
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/image-sparse.c
... | ... | @@ -55,7 +55,7 @@ |
55 | 55 | void *data, |
56 | 56 | char *response) |
57 | 57 | { |
58 | - lbaint_t n = blkcnt, write_blks, blks = 0, aligned_buf_blks = 100; | |
58 | + lbaint_t n = blkcnt, write_blks, blks = 0, aligned_buf_blks = 4096; | |
59 | 59 | uint32_t *aligned_buf = NULL; |
60 | 60 | |
61 | 61 | if (CONFIG_IS_ENABLED(SYS_DCACHE_OFF)) { |