Open angelovAlex opened 1 year ago
It's probably caused by your filesystem fragmentation or total files size. Comment this to disable caching: https://github.com/szemzoa/awboot/blob/6ea4ae4ad7a558ad952fefee1942e260aea1a69f/board.h#L13
You can also try a smaller value like 8.
same problem increasing the frequency of MMC helped a little in board.c .clock = MMC_CLK_50M, to .clock = MMC_CLK_150M,
now [D] SDMMC: speedtest 512KB in 12ms at 43690KB/S [D] FATFS: read in 8085ms at 0.67MB/S
after disable CONFIG_FATFS_CACHE_SIZE and .clock = MMC_CLK_150M, [D] FATFS: read in 454ms at 11.97MB/S
disable CONFIG_FATFS_CACHE_SIZE and .clock = MMC_CLK_50M, [D] FATFS: read in 607ms at 8.95MB/S
You'll have to fine-tune the cache size based on file size if you want the best performance, otherwise just leave it disabled. I might make it dynamic based on the file size at some point.
Followed the instructions of how to load from sd card. Speed test seems to be fast but actual reading is very slow. Takes about 20-30 seconds to start kernel.