Initial Commit
- initial default booting image
This commit is contained in:
48
package/memtest86/Config.in
Normal file
48
package/memtest86/Config.in
Normal file
@@ -0,0 +1,48 @@
|
||||
config BR2_PACKAGE_MEMTEST86
|
||||
bool "memtest86"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
help
|
||||
Memtest86+ is a bootable standalone memory test program.
|
||||
|
||||
Buildroot does not support packages with a '+' sign in their
|
||||
name, which explains why it is named memtest86 and not
|
||||
memtest86+.
|
||||
|
||||
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 and autodetects hardware. Refer README.md for boot
|
||||
options.
|
||||
|
||||
It can be loaded and run either directly by a PC BIOS (legacy
|
||||
or UEFI) or via an intermediate bootloader that supports the
|
||||
Linux 16-bit, 32-bit, 64-bit, or EFI handover boot protocol.
|
||||
|
||||
It can be added to the grub2 boot menu by adding the following
|
||||
lines to the bottom of grub.cfg
|
||||
|
||||
Example for legacy BIOS using the Linux 16-bit boot protocol,
|
||||
with built-in support for USB keyboards or running on a serial
|
||||
line:
|
||||
|
||||
menuentry "Start Memtest86+ (USB keyboards)" {
|
||||
linux16 /boot/mt86plus keyboard=both
|
||||
}
|
||||
menuentry "Start Memtest86+ (serial line)" {
|
||||
linux16 /boot/mt86plus console=ttyS0,115200
|
||||
}
|
||||
|
||||
Or for UEFI BIOS using the Linux 32-bit or 64-bit boot
|
||||
protocols, using USB keyboard:
|
||||
|
||||
menuentry "Start Memtest86+ (USB keyboards)" {
|
||||
linux /EFI/BOOT/mt86plus keyboard=both
|
||||
}
|
||||
|
||||
Other boot loaders will have similar requirements.
|
||||
|
||||
http://www.memtest.org
|
||||
3
package/memtest86/memtest86.hash
Normal file
3
package/memtest86/memtest86.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# locally computed using sha256sum
|
||||
sha256 ec7edde55f60d12d9e7bc1cc560837cdbaa14cf00020cebb4a1d7fe4afeddb4a memtest86-8.00.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
|
||||
31
package/memtest86/memtest86.mk
Normal file
31
package/memtest86/memtest86.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# memtest86
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MEMTEST86_VERSION = 8.00
|
||||
MEMTEST86_SITE = $(call github,memtest86plus,memtest86plus,v$(MEMTEST86_VERSION))
|
||||
MEMTEST86_LICENSE = GPL-2.0
|
||||
MEMTEST86_LICENSE_FILES = LICENSE
|
||||
MEMTEST86_INSTALL_IMAGES = YES
|
||||
MEMTEST86_INSTALL_TARGET = NO
|
||||
|
||||
ifeq ($(BR2_i386),y)
|
||||
MEMTEST86_BUILD_DIR = build/i586
|
||||
else
|
||||
ifeq ($(BR2_x86_64),y)
|
||||
MEMTEST86_BUILD_DIR = build/x86_64
|
||||
endif
|
||||
endif
|
||||
|
||||
define MEMTEST86_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$(MEMTEST86_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define MEMTEST86_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/$(MEMTEST86_BUILD_DIR)/mt86plus \
|
||||
$(BINARIES_DIR)/mt86plus
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user