devmem2介绍
Ubuntu系统下安装:
apt-get install devmem2
直接安装
使用方法:
http://free-electrons.com/pub/mirror/devmem2.c, by Jan-Derk Bakker
Very useful tool to directly peek (read) or poke (write) I/O addresses mapped in physical address space from a shell command line!
Very useful for early interaction experiments with a device, without having to code and compile a driver.
Uses mmap to /dev/mem.
Examples (b: byte, h: half, w: word) devmem2 0x000c0004 h (reading) devmem2 0x000c0008 w 0xffffffff (writing)
devmem is now available in BusyBox, making it even easier to use.
相关链接:
源码地址1:
http://free-electrons.com/pub/mirror/devmem2.c
源码地址2:
http://manpages.ubuntu.com/manpages/precise/man1/devmem2.1.html