embedded - u-boot mmc read_block limitiations -


i trying copy file mmc/sd card in global variable (struct) of u-boot spl, in ocram. far trying use

mmc->block_dev.block_read(0, file_sector, 4, &my_struct); 

since copying dram (ddr3/ddr4) works (if replace &my_struct address in ram, call succeed , can correctly read file ram), file located @ beginning of sector file_sector.

however, code, get:

error: v7_dcache_inval_range - start address not aligned - 0x100082f4 error: v7_dcache_inval_range - start address not aligned - 0x10008af4 

are there requirements/limitations should aware off on location of destination of block_read ?

so, part of answer says right there in error message. 'mystruct' is, not cache aligned flushing isn't valid. should use alloc_cache_align_buffer macro , @lps mentioned, copying character buffer.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -