Merge pull request #462 from PartialVolume/add-memtest86

Added memtest86+ to ShredOS boot menus
This commit is contained in:
PartialVolume
2026-02-11 10:36:14 +00:00
committed by GitHub
11 changed files with 94 additions and 5 deletions

View File

@@ -5,14 +5,16 @@ image boot.vfat {
file boot/grub/grub.cfg { image = 'grub.cfg' }
file boot/version.txt { image = 'version.txt' }
file boot/shredos.id { image = '/dev/null' }
file boot/memtest { image = 'memtest.bin' }
file EFI/BOOT/bootx64.efi { image = 'bootx64.efi' }
file EFI/BOOT/grub.cfg { image = 'grub.cfg' }
file EFI/BOOT/memtest.efi { image = 'memtest.efi' }
file shredos.ico { image = 'shredos.ico' }
file README.txt { image = 'README.txt' }
file autorun.inf { image = 'autorun.inf' }
}
size = 372809984
size = 119873792
}
image shredos.img {

View File

@@ -5,15 +5,17 @@ image boot.vfat {
file boot/grub/grub.cfg { image = 'grub.cfg' }
file boot/version.txt { image = 'version.txt' }
file boot/shredos.id { image = '/dev/null' }
file boot/memtest { image = 'memtest.bin' }
file EFI/BOOT/bootia32.efi { image = 'bootia32.efi' }
file EFI/BOOT/bootx64.efi { image = 'bootx64.efi'}
file EFI/BOOT/grub.cfg { image = 'grub.cfg' }
file EFI/BOOT/memtest.efi { image = 'memtest.efi' }
file shredos.ico { image = 'shredos.ico' }
file README.txt { image = 'README.txt' }
file autorun.inf { image = 'autorun.inf' }
}
size = 92344064
size = 115277568
}
image shredos.img {

View File

@@ -5,6 +5,35 @@ menuentry "ShredOS" {
linux /boot/bzImage console=tty3 loglevel=3
}
menuentry "ShredOS (nomodeset)" {
menuentry "ShredOS (nomodeset - display issues? try this)" {
linux /boot/bzImage console=tty3 loglevel=3 nomodeset
}
if [ "${grub_platform}" = "efi" ]; then
menuentry "Memtest86+ (BIOS legacy emulation for USB keyboard)" {
linux /EFI/BOOT/memtest.efi keyboard=legacy
}
menuentry "Memtest86+ (USB keyboards)" {
linux /EFI/BOOT/memtest.efi keyboard=both
}
menuentry "Memtest86+ (Disable SMP and memory identification)" {
linux /EFI/BOOT/memtest.efi nosmp nosm nobench
}
fi
if [ "${grub_platform}" = "pc" ]; then
menuentry "Memtest86+ (Use BIOS legacy emulation for USB keyboards)" {
linux /boot/memtest keyboard=legacy
}
menuentry "Memtest86+ (USB keyboards)" {
linux /boot/memtest keyboard=both
}
menuentry "Memtest86+ (Disable SMP and memory identification)" {
linux /boot/memtest nosmp nosm nobench
}
menuentry "Memtest86+ (Serial line RS232, ttyS0,115200)" {
linux /boot/memtest console=ttyS0,115200
}
fi

View File

@@ -6,7 +6,34 @@ menuentry "ShredOS" {
initrd __INITRD_PATH__
}
menuentry "ShredOS (nomodeset)" {
menuentry "ShredOS (nomodeset - display issues? try this)" {
linux __KERNEL_PATH__ console=tty3 loglevel=3 nomodeset
initrd __INITRD_PATH__
}
if [ "${grub_platform}" = "efi" ]; then
menuentry "Memtest86+ (BIOS legacy emulation for USB keyboard)" {
linux /EFI/BOOT/memtest.efi keyboard=legacy
}
menuentry "Memtest86+ (USB keyboards)" {
linux /EFI/BOOT/memtest.efi keyboard=both
}
menuentry "Memtest86+ (Disable SMP and memory identification)" {
linux /EFI/BOOT/memtest.efi nosmp nosm nobench
}
fi
if [ "${grub_platform}" = "pc" ]; then
menuentry "Memtest86+ (BIOS legacy emulation for USB keyboard)" {
linux /boot/memtest keyboard=legacy
}
menuentry "Memtest86+ (USB keyboards)" {
linux /boot/memtest keyboard=both
}
menuentry "Memtest86+ (Disable SMP and memory identification)" {
linux /boot/memtest nosmp nosm nobench
}
menuentry "Memtest86+ (Serial line RS232, ttyS0,115200)" {
linux /boot/memtest console=ttyS0,115200
}
fi

View File

@@ -10,6 +10,21 @@ label shredos
append initrd=__INITRD_PATH__ console=tty3 loglevel=3
label shredos-nomodeset
menu label ShredOS (nomodeset)
menu label ShredOS (nomodeset - display issues? try this)
kernel __KERNEL_PATH__
append initrd=__INITRD_PATH__ console=tty3 loglevel=3 nomodeset
label memtest86-bios-legacy-emulation-usb-keyboards
menu label Memtest86+ (use BIOS legacy emulation for USB keyboards)
kernel /boot/memtest
append keyboard=legacy
label memtest86-usb-keyboards
menu label Memtest86+ (USB Keyboards)
kernel /boot/memtest
append keyboard=both
label memtest86-serial
menu label Memtest86+ (Serial line RS232, ttyS0,115200 )
kernel /boot/memtest
append console=ttyS0,115200

View File

@@ -92,6 +92,7 @@ BR2_PACKAGE_KBD=y
BR2_PACKAGE_LM_SENSORS=y
BR2_PACKAGE_LSHW=y
BR2_PACKAGE_LSSCSI=y
BR2_PACKAGE_MEMTEST86=y
BR2_PACKAGE_MINICOM=y
BR2_PACKAGE_NVME=y
BR2_PACKAGE_READ_EDID=y

View File

@@ -40,6 +40,7 @@ BR2_PACKAGE_EDID_DECODE=y
BR2_PACKAGE_HDPARM=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_LM_SENSORS=y
BR2_PACKAGE_MEMTEST86=y
BR2_PACKAGE_NVME=y
BR2_PACKAGE_READ_EDID=y
BR2_PACKAGE_PCIUTILS=y

View File

@@ -93,6 +93,7 @@ BR2_PACKAGE_KBD=y
BR2_PACKAGE_LM_SENSORS=y
BR2_PACKAGE_LSHW=y
BR2_PACKAGE_LSSCSI=y
BR2_PACKAGE_MEMTEST86=y
BR2_PACKAGE_MINICOM=y
BR2_PACKAGE_NVME=y
BR2_PACKAGE_READ_EDID=y

View File

@@ -42,6 +42,7 @@ BR2_PACKAGE_EDID_DECODE=y
BR2_PACKAGE_HDPARM=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_LM_SENSORS=y
BR2_PACKAGE_MEMTEST86=y
BR2_PACKAGE_NVME=y
BR2_PACKAGE_PCIUTILS=y
BR2_PACKAGE_READ_EDID=y

View File

@@ -42,6 +42,7 @@ BR2_PACKAGE_EDID_DECODE=y
BR2_PACKAGE_HDPARM=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_LM_SENSORS=y
BR2_PACKAGE_MEMTEST86=y
BR2_PACKAGE_NVME=y
BR2_PACKAGE_READ_EDID=y
BR2_PACKAGE_PCIUTILS=y

View File

@@ -95,6 +95,11 @@ else
ROOTFS_ISO9660_TMP_TARGET_DIR = $(TARGET_DIR)
endif
define ROOTFS_ISO9660_COPY_MEMTEST_BINARIES
$(INSTALL) -D -m 0644 $(BINARIES_DIR)/memtest.efi $(ROOTFS_ISO9660_TMP_TARGET_DIR)/EFI/BOOT/memtest.efi
$(INSTALL) -D -m 0644 $(BINARIES_DIR)/memtest.bin $(ROOTFS_ISO9660_TMP_TARGET_DIR)/boot/memtest
endef
################################################################################
# Reproducible build support
################################################################################
@@ -160,6 +165,8 @@ define ROOTFS_ISO9660_INSTALL_GRUB2_EFI
if [ "$(BR2_x86_64)" = "y" ]; then \
$(INSTALL) -D -m 0644 $(BINARIES_DIR)/efi-part/EFI/BOOT/bootx64.efi $(TOPDIR)/board/shredos/bootx64.efi; \
fi
# Copy memtest.efi and memtest.bin to ISO9660 filesystem
$(ROOTFS_ISO9660_COPY_MEMTEST_BINARIES)
# Create EFI FAT partition
$(RM) -rf $(ROOTFS_ISO9660_EFI_PARTITION_PATH)
mkdir -p $(dir $(ROOTFS_ISO9660_EFI_PARTITION_PATH))
@@ -277,6 +284,8 @@ define ROOTFS_ISO9660_INSTALL_GRUB2_EFI
if [ "$(BR2_x86_64)" = "y" ]; then \
$(INSTALL) -D -m 0644 $(BINARIES_DIR)/efi-part/EFI/BOOT/bootx64.efi $(TOPDIR)/board/shredos/bootx64.efi; \
fi
# Copy memtest.efi and memtest.bin to ISO9660 filesystem
$(ROOTFS_ISO9660_COPY_MEMTEST_BINARIES)
# Create EFI FAT partition
$(RM) -rf $(ROOTFS_ISO9660_EFI_PARTITION_PATH)
mkdir -p $(dir $(ROOTFS_ISO9660_EFI_PARTITION_PATH))