From patchwork Sun Feb 1 00:00:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kenton, Stephen M." X-Patchwork-Id: 435200 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7A80F1402F6 for ; Sun, 1 Feb 2015 11:00:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 86883A1197; Sun, 1 Feb 2015 00:00:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pNMImc5qHE3V; Sun, 1 Feb 2015 00:00:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 74E4C8AFD8; Sun, 1 Feb 2015 00:00:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 509D01C25B3 for ; Sun, 1 Feb 2015 00:00:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4D29B8B3C7 for ; Sun, 1 Feb 2015 00:00:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vzy3lwdzlmob for ; Sun, 1 Feb 2015 00:00:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from eastrmfepo102.cox.net (eastrmfepo102.cox.net [68.230.241.214]) by hemlock.osuosl.org (Postfix) with ESMTP id 11C668B0A5 for ; Sun, 1 Feb 2015 00:00:03 +0000 (UTC) Received: from eastrmimpo110 ([68.230.241.223]) by eastrmfepo102.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20150201000002.INEU14650.eastrmfepo102.cox.net@eastrmimpo110> for ; Sat, 31 Jan 2015 19:00:02 -0500 Received: from [192.168.1.2] ([68.97.2.10]) by eastrmimpo110 with cox id mo011p00g0CxSiC01o02Qt; Sat, 31 Jan 2015 19:00:02 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020203.54CD6C82.0047,ss=1,re=0.001,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=GKHW5JxK c=1 sm=1 a=nr99965rMXYxaIVTx7+86Q==:17 a=M3t8bMoVVlMA:10 a=IkcTkHD0fZMA:10 a=BY3-Sj9qAAAA:8 a=HSdObFhHENK1gEVpY4IA:9 a=QEXdDO2ut3YA:10 a=nr99965rMXYxaIVTx7+86Q==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Message-ID: <54CD6C81.1040808@ou.edu> Date: Sat, 31 Jan 2015 18:00:01 -0600 From: Steve Kenton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: buildroot@buildroot.org Subject: [Buildroot] [PATCH V3] memtest86+: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "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 Reviewed-by: Thomas Petazzoni --- 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)) +