From ad7300839381a67872a1ce15f2e7d72540aa6c9c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 27 Oct 2022 10:26:39 +0200 Subject: [PATCH] memtest: update to memtest86+ v6.00 This is now a version 64bit version that can also boot via efi. Signed-off-by: Arne Fitzenreiter --- config/cdrom/grub.cfg | 6 ++++++ config/rootfiles/common/memtest | 2 +- lfs/cdrom | 2 +- lfs/memtest | 14 ++++++-------- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config/cdrom/grub.cfg b/config/cdrom/grub.cfg index 421c0e662a..50a7c24881 100644 --- a/config/cdrom/grub.cfg +++ b/config/cdrom/grub.cfg @@ -32,3 +32,9 @@ submenu 'Other Installation Options -->' { initrd /boot/isolinux/instroot } } + +submenu 'Tools -->' { + menuentry 'memtest86+' { + linux /boot/isolinux/memtest + } +} diff --git a/config/rootfiles/common/memtest b/config/rootfiles/common/memtest index 1804dfa940..7978436fd5 100644 --- a/config/rootfiles/common/memtest +++ b/config/rootfiles/common/memtest @@ -1,2 +1,2 @@ #usr/lib/memtest86+ -#usr/lib/memtest86+/memtest.bin +#usr/lib/memtest86+/memtest.efi diff --git a/lfs/cdrom b/lfs/cdrom index a47faa49ee..f4e6e050c8 100644 --- a/lfs/cdrom +++ b/lfs/cdrom @@ -199,7 +199,7 @@ endif ifeq "$(HAS_MEMTEST)" "1" # Install memtest - cp /usr/lib/memtest86+/memtest.bin $(DIR_TMP)/cdrom/boot/isolinux/memtest + cp /usr/lib/memtest86+/memtest.efi $(DIR_TMP)/cdrom/boot/isolinux/memtest endif ifeq "$(HAS_IPXE)" "1" diff --git a/lfs/memtest b/lfs/memtest index 7e5ac895fb..ae87558def 100644 --- a/lfs/memtest +++ b/lfs/memtest @@ -24,9 +24,9 @@ include Config -VER = 5.01 +VER = 6.00 -THISAPP = memtest86+-$(VER) +THISAPP = memtest86plus-$(VER) DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) @@ -41,7 +41,8 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = ef63eaabaf6d3d27b85c73618c692dd61cce52f3670a57958d181623888bdc3aa538855da9a82ec2ab70b180938e3df99f0b06f606b2d6f64e8aabbe781b3050 +$(DL_FILE)_BLAKE2 = bba26dab7165239fe95dc7f174e5f876f47421008ca6201bc57549598f512df56a6a0ca71f8c2c26c01188d243b58ab6ddd525cf01f0dece0cdb61a6acf38685 + install : $(TARGET) @@ -71,11 +72,8 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP)/build64 && make memtest.efi -mkdir -p /usr/lib/memtest86+ - - # 64bit only systems cannot link mentest without 32bit gcc libs - # so we use the precompiled binary from memtest author - cd $(DIR_APP) && cp -f precomp.bin /usr/lib/memtest86+/memtest.bin - + cd $(DIR_APP)/build64 && cp -f memtest.efi /usr/lib/memtest86+/memtest.efi @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.2