Skip to content
Pavel A edited this page Apr 19, 2016 · 19 revisions

Why yet another variation of the honorable devmem utility (a.k.a. devmem2) ?

  • Parameters validation. The original variant skips it.

  • limit the spew to help parsing output

  • Remove the mandatory read-back after write (but left it as option)

The memory we need to access is I/O memory, a memory mapped thru some PCI device's BARs. The BAR physical base address will vary on different host systems. (Yes I know about /sys/bus/pci... but we have a lot of existing code that uses fixed physical addresses).

There are two versions: branch master (tags "0.xxx-tc") is drop-in compatible with devmem2 (except the output is slightly different).

We have also a simple "devmem library" for C programs that need memory access; it will hide the ugly details of mmap'ing /dev/mem. It is in devmemlib repo

Other ideas are on TODO page (some sane, some crazy).

Enjoy.

The other branch (tags "1.x-tc") will be deleted.

Clone this wiki locally