8000 GitHub - pengutronix/memtool: memtool is a program that allows to access memory mapped registers.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pengutronix/memtool

Folders and files

< 8000 td class="react-directory-row-name-cell-large-screen" colSpan="1">
NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memtool

memtool is a program that allows to access memory mapped registers. This is useful to inspect and modify registers from the command line.

By default memtool uses /dev/mem to operate. So to actually work you need to have DEVMEM enabled in the kernel. Note that depending on further kernel configuration you can only access unused io-memory, see the kernel configuration knobs IO_STRICT_DEVMEM and STRICT_DEVMEM. Also note that there might be further restrictions. E.g. on several i.MX ARM SoCs register access is not possible from user mode for certain areas unless configured otherwise.

memtool can also operate on plain files, and access PHY registers (via the ioctls SIOCSMIIREG and SIOCGMIIREG).

Examples

  • Write a 32-bit wide 0 to register at address 0x73f00040

    # memtool mw -l 0x73f00040 0
  • Read the first two registers of the default PHY attached to network device eth0:

    # memtool md -s mdio:eth0. -w 0+4
  • Place a (usually red) dot on the framebuffer:

    # memtool mw -d /dev/fb0 -w 0 0xfc00

About

memtool is a program that allows to access memory mapped registers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

0