memtool: new package
PATCH 1/1 memtool: new package
memtool allows one to read and write memory mapped registers via /dev/mem. The commands are inspired by the respective commands of the barebox bootloader. This is handy during driver development to inspect and modify register settings. It can also be used to modify regular files and character devices (e.g. to paint to /dev/fb0).
--- package/Config.in | 1 + package/memtool/Config.in | 13 +++++++++++++ package/memtool/memtool.hash | 2 ++ package/memtool/memtool.mk | 13 +++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 package/memtool/Config.in create mode 100644 package/memtool/memtool.hash create mode 100644 package/memtool/memtool.mk
package/Config.in +1 -0
@@ -418,6 +418,7 @@ endmenu source "package/mdadm/Config.in" source "package/memtest86/Config.in" source "package/memtester/Config.in" + source "package/memtool/Config.in" source "package/minicom/Config.in" source "package/msr-tools/Config.in" source "package/nanocom/Config.in"
package/memtool/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +config BR2_PACKAGE_MEMTOOL + bool "memtool" + help + Development tool to modify memory mapped registers. + + memtool allows one to read and write memory mapped registers + via /dev/mem. The commands are inspired by the respective + commands of the barebox bootloader. This is handy during + driver development to inspect and modify register + settings. It can also be used to modify regular files and + character devices (e.g. to paint to /dev/fb0). + + http://www.pengutronix.de/software/memtool/index_en.html
package/memtool/memtool.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 58309d356cb9b45a241cb602ca3850891a70ddaa93ced51d1cced78e14767680 memtool-2016.10.0.tar.xz
package/memtool/memtool.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# memtool +# +################################################################################ + +MEMTOOL_VERSION = 2016.10.0 +MEMTOOL_SITE = http://public.pengutronix.de/software/memtool/ +MEMTOOL_SOURCE = memtool-$(MEMTOOL_VERSION).tar.xz +MEMTOOL_LICENSE = GPLv2 +MEMTOOL_LICENSE_FILES = COPYING + +$(eval $(autotools-package))
Signature · 1 line
2.11.0
PATCH 1/1 memtool: new package
Hello,
Quoted 7 lines · Peter Korsgaard
memtool allows one to read and write memory mapped registers via
/dev/mem. The commands are inspired by the respective commands of the barebox bootloader. This is handy during driver development to inspect and modify register settings. It can also be used to modify regular files and character devices (e.g. to paint to/dev/fb0).Signed-off-by Peter Korsgaard <[email protected]>
Just curious: why not package/devmem2/ ?
Quoted 4 lines
package/Config.in | 1 + package/memtool/Config.in | 13 +++++++++++++ package/memtool/memtool.hash | 2 ++ package/memtool/memtool.mk | 13 +++++++++++++
The update to the DEVELOPERS file is missing here :)
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 memtool: new package
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
Quoted 6 lines · Peter Korsgaard
memtool allows one to read and write memory mapped registers via
/dev/mem. The commands are inspired by the respective commands of the barebox bootloader. This is handy during driver development to inspect and modify register settings. It can also be used to modify regular files and character devices (e.g. to paint to/dev/fb0).
Quoted 3 lines
Quoted 1 line
Signed-off-by Peter Korsgaard <[email protected]>Just curious: why not package/devmem2/ ?
Because devmem2 only gives access to a single register. memtool (which I only learned of yesterday from the post to debian-arm) allows to write/hexdump sequences of registers, and allows access to other character devices than /dev/mem:
https://lists.debian.org/debian-arm/2017/02/msg00044.html
Quoted 6 lines
Quoted 4 lines
package/Config.in | 1 + package/memtool/Config.in | 13 +++++++++++++ package/memtool/memtool.hash | 2 ++ package/memtool/memtool.mk | 13 +++++++++++++The update to the DEVELOPERS file is missing here :)
Gaah yes, I'll fix that when applying.
Signature · 1 line
Bye, Peter Korsgaard
Thomas Petazzoni
AppliedPATCH 1/1 memtool: new package
In reply to Peter KorsgaardHello,
Quoted 7 lines · Peter Korsgaard
memtool allows one to read and write memory mapped registers via
/dev/mem. The commands are inspired by the respective commands of the barebox bootloader. This is handy during driver development to inspect and modify register settings. It can also be used to modify regular files and character devices (e.g. to paint to/dev/fb0).Signed-off-by Peter Korsgaard <[email protected]>
Quoted 9 lines
--- package/Config.in | 1 + package/memtool/Config.in | 13 +++++++++++++ package/memtool/memtool.hash | 2 ++ package/memtool/memtool.mk | 13 +++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 package/memtool/Config.in create mode 100644 package/memtool/memtool.hash create mode 100644 package/memtool/memtool.mk
Applied to master with an entry added to the DEVELOPERS file. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com