diff --git a/packages/debug/memtester/package.mk b/packages/debug/memtester/package.mk
new file mode 100644
index 00000000000..6ff6eceb065
--- /dev/null
+++ b/packages/debug/memtester/package.mk
@@ -0,0 +1,37 @@
+################################################################################
+# This file is part of LibreELEC - https://libreelec.tv
+# Copyright (C) 2018-present Team LibreELEC
+#
+# LibreELEC is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# LibreELEC is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with LibreELEC. If not, see .
+################################################################################
+
+PKG_NAME="memtester"
+PKG_VERSION="4.3.0"
+PKG_ARCH="any"
+PKG_LICENSE="GPL"
+PKG_SITE="http://pyropus.ca/software/memtester/"
+PKG_URL="http://pyropus.ca/software/memtester/old-versions/memtester-${PKG_VERSION}.tar.gz"
+PKG_DEPENDS_TARGET="toolchain"
+PKG_SECTION="debug"
+PKG_SHORTDESC="A userspace utility for testing the memory subsystem for faults"
+PKG_TOOLCHAIN="manual"
+
+make_target() {
+ make memtester
+}
+
+makeinstall_target() {
+ mkdir -p $INSTALL/usr/bin
+ cp memtester $INSTALL/usr/bin
+}
diff --git a/packages/debug/memtester/patches/memtester-001-cross-compile.patch b/packages/debug/memtester/patches/memtester-001-cross-compile.patch
new file mode 100644
index 00000000000..3ff6decfc7e
--- /dev/null
+++ b/packages/debug/memtester/patches/memtester-001-cross-compile.patch
@@ -0,0 +1,34 @@
+Author: Helmut Grohne
+Description: make the build system honor $CC to facilitate cross builds
+
+Index: memtester-4.3.0/conf-cc
+===================================================================
+--- memtester-4.3.0.orig/conf-cc 2012-06-09 23:45:22.000000000 +0200
++++ memtester-4.3.0/conf-cc 2015-09-12 20:36:27.000000000 +0200
+@@ -1,3 +1,3 @@
+-cc -O2 -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c
++$CC -O2 -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c
+
+ This will be used to compile .c files.
+Index: memtester-4.3.0/conf-ld
+===================================================================
+--- memtester-4.3.0.orig/conf-ld 2012-06-09 23:45:22.000000000 +0200
++++ memtester-4.3.0/conf-ld 2015-09-12 20:36:33.000000000 +0200
+@@ -1,3 +1,3 @@
+-cc -s
++$CC -s
+
+ This will be used to link .o files into an executable.
+Index: memtester-4.3.0/Makefile
+===================================================================
+--- memtester-4.3.0.orig/Makefile 2015-09-12 20:01:06.000000000 +0200
++++ memtester-4.3.0/Makefile 2015-09-12 20:50:40.000000000 +0200
+@@ -10,8 +10,6 @@
+ # You don't need to edit these; change the contents of the conf-cc and conf-ld
+ # files if you need to change the compile/link commands. See the README for
+ # more information.
+-CC = $(shell head -n 1 conf-cc)
+-LD = $(shell head -n 1 conf-ld)
+
+ SOURCES = memtester.c tests.c
+ OBJECTS = $(SOURCES:.c=.o)
diff --git a/packages/virtual/debug/package.mk b/packages/virtual/debug/package.mk
index c49ca636ffd..3f9e5bda448 100644
--- a/packages/virtual/debug/package.mk
+++ b/packages/virtual/debug/package.mk
@@ -22,7 +22,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.openelec.tv"
PKG_URL=""
-PKG_DEPENDS_TARGET="toolchain gdb"
+PKG_DEPENDS_TARGET="toolchain gdb memtester"
PKG_SECTION="virtual"
PKG_SHORTDESC="debug: Metapackage for installing debugging tools"
PKG_LONGDESC="debug is a Metapackage for installing debugging tools"