Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12241

Reading block from MTD flash with ioremap

$
0
0

I would like to know the expected result of reading block data from MTD flash, as per the code below:

#define PHY_ADDR 0x80000000   // certain physical memory locationvoid *dst;dst = ioremap(PHY_ADDR,len);  // ioremappingmtd_image->_read(mtd, from, len, retlen, dst);  // reading from MTD flash to dst buffer with len length

So will this code write the read data to the physical memory address 0x80000000? or will just put the data in the pointer dst? Where I can find the read data in the physical memory (using gdb x/16x memory address for example)?


Viewing all articles
Browse latest Browse all 12241

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>