1

I want to know the amount of bytes Read/Write on MTD char device. What is the way to get it?

It would be OK either via C or terminal.

  1. I am mounting the mtd device as embedded device.
  2. mtd partitions are done in the SPI flash and it's not mounted. We directly using the /dev/mtdN for read/write.

closed as unclear what you're asking by dr01, Rui F Ribeiro, Anthon, Archemar, jimmij Jun 19 '17 at 20:11

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    The amount that has been read/written since the beginning? – phk Jun 2 '17 at 8:01
  • Yes the same. Amount of bytes are write/read from the MTD char device – Selva Kumar Jun 2 '17 at 13:09
  • Here the clear details, hope you aware of how 'iostat' works on block device. As similar to the 'iostat', need to get the Read/Write information for CHAR device (i.e /dev/mtdN) since of the power-up of the system. for example: User writes 10 bytes by 5 time in same location(like re-writing), i expected the output of this trace is 50Bytes. Because, 5 times the write command send to the flash device for each 10Bytes. – Selva Kumar Jun 5 '17 at 5:02

Browse other questions tagged or ask your own question.