Memtest86+: Difference between revisions
Jump to navigation
Jump to search
m (According to lynxis 3 out of 4 builds will fail when using multiple threads) |
MartinRoth (talk | contribs) |
||
Line 5: | Line 5: | ||
=== Manual build === | === Manual build === | ||
Clone the source from coreboot's memtest86+ repository. This was based on the latest released archive, then cleaned up, and then had various patches applied. | |||
$ ''' | $ '''git clone https://review.coreboot.org/memtest86plus ''' | ||
CD to the directory and build it: | |||
$ '''cd memtest86plus''' | |||
$ ''' | |||
$ '''make''' | $ '''make''' | ||
Revision as of 20:11, 12 March 2018
Building
Instead of building coreboot with MemTest86+ as its default payload, it is recommended to simply load the binary from your payload of choice as an extra boot option.
Manual build
Clone the source from coreboot's memtest86+ repository. This was based on the latest released archive, then cleaned up, and then had various patches applied.
$ git clone https://review.coreboot.org/memtest86plus
CD to the directory and build it:
$ cd memtest86plus $ make
The resulting binaries are:
memtest: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped memtest.bin: DOS/MBR boot sector
In case GRUB2 is used default payload, add the x86-bootable memtest.bin to your ROM image with
$ cbfstool coreboot.rom add -f memtest.bin -n memtest.bin -t raw
and add the following entry to your grub.cfg:
menuentry 'MemTest86+ 5.01' { set root='cbfsdisk' linux16 /memtest.bin }
Alternatively one can also load it directly from disk, e.g. by placing it under /boot/memtest.bin and adjusting the menuentry accordingly:
search -n --set=root -f /boot/memtest.bin