From 884e6d4b95dd9b5888672ab6897b4eba65a0db01 Mon Sep 17 00:00:00 2001 From: Peter Mamonov Date: Mon, 2 Nov 2020 00:41:15 +0300 Subject: commands: import memtester 4.3.0 from Debian GNU/Linux Memtester is an utility for testing the memory subsystem for faults. For hardware developers, memtester can be told to test memory starting at a particular physical address. This port is based on the sources from Debian GNU/Linux. Debian package meta data is as follows: Package: memtester Version: 4.3.0-5 Homepage: http://pyropus.ca/software/memtester/ APT-Sources: http://ftp.ru.debian.org/debian testing/main amd64 Packages Dissected version of this patch can be found at https://github.com/pmamonov/barebox/commits/memtester Changes since v2: 6fe3d86f9b add prefix to global variables names 81441f8ff8 drop `volatile` for buf/aligned pointers 336d1ddf5f close memfd if mmap() failed 4b52d3990d define rand32() as random32() 9fa593f130 tests: make global vars static ce00f1aadb fix error handling when parsing arguments 5107cc4b19 don't flush the console Changes since v1: 1acbafe7a2 init global vars on start 7664692fd4 use proper return value a10eba5b49 use strtoull_suffix() to parse memory size 001b623c16 add option to set TESTMASK 3acfe07d56 make tests[] static 528360ebd7 fix license Signed-off-by: Peter Mamonov Signed-off-by: Sascha Hauer --- commands/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'commands/Kconfig') diff --git a/commands/Kconfig b/commands/Kconfig index 7279467063..8b4ed9aa53 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -1628,6 +1628,14 @@ config CMD_MEMTEST -i ITERATIONS perform number of iterations (default 1, 0 is endless) -b perform only a test on bus lines +config CMD_MEMTESTER + tristate + prompt "memtester" + help + Utility for testing the memory subsystem. + + Homepage: http://pyropus.ca/software/memtester/ + config CMD_MM tristate select DEV_MEM -- cgit v1.2.3