MTD shell command for low level storage device access.
MTD shell command for low level storage device access.
There are different subcommands available to read and write data to and from an MTD, as well as additional subcommands for example to print information or to control power states.
The subcommand takes a memory address and a length in bytes of how many bytes to read.
The subcommand takes a page number, an offset within that page and a length in bytes of how many bytes to read.
The subcommand takes a memory address and data to write. If the optional parameter -b
is used, it is expected that the provided data only consists of hexadecimal digits, else it is expected that the data is a string.
The subcommand takes a page number, a byte offset within the page and data to write. If the optional parameter -b
is used, it is expected that the provided data only consists of hexadecimal digits, else it is expected that the data is a string.
The subcommand takes a page number, a byte offset within the page and data to write. If the optional parameter -b
is used, it is expected that the provided data only consists of hexadecimal digits, else it is expected that the data is a string. The command only can be used when the module mtd_write_page
is used.
The subcommand takes a memory address and a length in bytes of how many bytes to erase.
The subcommand takes a sector number and additionally a number of bytes to erase from this sector.
The subcommand takes no additional arguments. Information about storage size is printed.
The subcommand takes one parameter to power the MTD on or off, if it is implemented by the MTD driver.