Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH V3] memtest86+: new package
@ 2015-02-01  0:00 Steve Kenton
  2015-02-01 11:02 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Kenton @ 2015-02-01  0:00 UTC (permalink / raw)
  To: buildroot

Memtest86+ is a bootable standalone memory test program.

Please note that this is the forked memtest86+ program and not
the original memtest86 which has different licensing. Buildroot
does not support packages with a '+' sign in their name.

Memtest86+ is a utility designed to test whether your memory
is in working order. It repeatedly writes an enormous amount
of different patterns to all memory locations and reads them
back again and verifies whether the result of the read is the
same as what was written to memory.

Memtest86+ will only work on 32-bit or 64-bit x86 targets.
It boots as an i486 program and autodetects hardware.

Signed-off-by Stephen M. Kenton <skenton@ou.edu>
---
I promise I'll try to have future patches use git, I just
wanted to clear out the stuff I had laying around before
possibly disappearing down a rabbit hole for a long time.

I'm using V4.20 which ships with Ubuntu 14.04 and has
never give me trouble instead of V5.01 which hung twice
during my testing - probably due to the new multi-core support

V3 changed hash to sha256sum and cleaned up text a bit
V2 added hash file

diff -pruN buildroot.ori/package/Config.in buildroot/package/Config.in
--- buildroot.ori/package/Config.in	2015-01-27 16:58:14.000000000 -0600
+++ buildroot/package/Config.in	2015-01-31 17:49:44.362634907 -0600
@@ -341,6 +341,7 @@ endif
 	source "package/lvm2/Config.in"
 	source "package/mdadm/Config.in"
 	source "package/media-ctl/Config.in"
+	source "package/memtest86/Config.in"
 	source "package/memtester/Config.in"
 	source "package/minicom/Config.in"
 	source "package/nanocom/Config.in"
diff -pruN buildroot.ori/package/memtest86/Config.in buildroot/package/memtest86/Config.in
--- buildroot.ori/package/memtest86/Config.in	1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/memtest86/Config.in	2015-01-31 17:30:57.870613298 -0600
@@ -0,0 +1,28 @@
+config BR2_PACKAGE_MEMTEST86
+	bool "memtest86"
+	depends on BR2_i386 || BR2_x86_64
+	help
+	  Memtest86+ is a bootable standalone memory test program.
+
+	  Please note that this is the forked memtest86+ program and not
+	  the original memtest86 which has different licensing. Buildroot
+	  does not support packages with a '+' sign in their name.
+
+	  Memtest86+ is a utility designed to test whether your memory
+	  is in working order. It repeatedly writes an enormous amount
+	  of different patterns to all memory locations and reads them
+	  back again and verifies whether the result of the read is the
+	  same as what was written to memory.
+
+	  Memtest86+ will only work on 32-bit or 64-bit x86 targets.
+	  It boots as an i486 program and autodetects hardware. It can
+	  be added to the grub2 boot menu by adding the following lines
+	  to the bottom of /boot/grub/grub.cfg - note the use of linux16.
+
+	  menuentry "Memtest86+" {
+		 linux16 /boot/memtest86+.bin
+	  }
+
+	  Other boot loaders will have similar requirements.
+
+	  http://www.memtest.org
diff -pruN buildroot.ori/package/memtest86/memtest86.hash buildroot/package/memtest86/memtest86.hash
--- buildroot.ori/package/memtest86/memtest86.hash	1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/memtest86/memtest86.hash	2015-01-31 17:45:11.522629673 -0600
@@ -0,0 +1,2 @@
+# locally computed using sha256sum
+sha256	5630ce978d0e6b671891df4253fc5c54659764d0cdfc7515ac0df3d8dd9e8737  memtest86+-4.20.tar.gz
diff -pruN buildroot.ori/package/memtest86/memtest86.mk buildroot/package/memtest86/memtest86.mk
--- buildroot.ori/package/memtest86/memtest86.mk	1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/memtest86/memtest86.mk	2015-01-31 17:32:12.982614739 -0600
@@ -0,0 +1,19 @@
+###############################################################################
+#
+# memtest86
+#
+###############################################################################
+
+MEMTEST86_VERSION = 4.20
+MEMTEST86_SOURCE = memtest86+-$(MEMTEST86_VERSION).tar.gz
+MEMTEST86_SITE = http://www.memtest.org/download/$(MEMTEST86_VERSION)
+MEMTEST86_LICENSE = GPLv2
+MEMTEST86_LICENSE_FILES = README
+
+# memtest86+ is sensitive to toolchain changes, use the shipped binary version
+define MEMTEST86_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/precomp.bin $(TARGET_DIR)/boot/memtest86+.bin
+endef
+
+$(eval $(generic-package))
+

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH V3] memtest86+: new package
  2015-02-01  0:00 [Buildroot] [PATCH V3] memtest86+: new package Steve Kenton
@ 2015-02-01 11:02 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-02-01 11:02 UTC (permalink / raw)
  To: buildroot

Dear Steve Kenton,

On Sat, 31 Jan 2015 18:00:01 -0600, Steve Kenton wrote:
> Memtest86+ is a bootable standalone memory test program.
> 
> Please note that this is the forked memtest86+ program and not
> the original memtest86 which has different licensing. Buildroot
> does not support packages with a '+' sign in their name.
> 
> Memtest86+ is a utility designed to test whether your memory
> is in working order. It repeatedly writes an enormous amount
> of different patterns to all memory locations and reads them
> back again and verifies whether the result of the read is the
> same as what was written to memory.
> 
> Memtest86+ will only work on 32-bit or 64-bit x86 targets.
> It boots as an i486 program and autodetects hardware.
> 
> Signed-off-by Stephen M. Kenton <skenton@ou.edu>

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>


> +	  Please note that this is the forked memtest86+ program and not
> +	  the original memtest86 which has different licensing. Buildroot
> +	  does not support packages with a '+' sign in their name.

This sentence could be improved:

	Buildroot does not support packages with a '+' sign in their
	name, which explains why it is named memtest86 and not
	memtest86+.

I guess Peter can make the change when applying.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-01 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-01  0:00 [Buildroot] [PATCH V3] memtest86+: new package Steve Kenton
2015-02-01 11:02 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox