Memtest86+

From coreboot
Revision as of 07:39, 13 May 2011 by KerryShe (talk | contribs) (Created page with "== Building == === Memtest86+ === $ '''mkdir foo''' $ '''cd foo''' $ '''wget http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz''' $ '''tar xfvz memtest86+-4.20.t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The wiki is being retired!

Documentation is now handled by the same processes we use for code: Add something to the Documentation/ directory in the coreboot repo, and it will be rendered to https://doc.coreboot.org/. Contributions welcome!

Building

Memtest86+

$ mkdir foo
$ cd foo
$ wget http://www.memtest.org/download/4.20/memtest86+-4.20.tar.gz
$ tar xfvz memtest86+-4.20.tar.gz
$ cd memtest86+-4.20

(Optional: edit config.h and set #define SERIAL_CONSOLE_DEFAULT 1 for serial support)

$ make

The file memtest is your final payload which you can use with coreboot, either on real hardware or in a QEMU image.

coreboot

Finally, you have to build coreboot with Memtest86+ as payload:

$ cd ..
$ svn co svn://coreboot.org/coreboot/trunk coreboot
$ cp memtest86+-4.20/memtest coreboot/payload.elf
$ cd coreboot
$ make menuconfig

Now enter the Payload menu and select Payload type and then An ELF executable payload file. Then, exit the menu, save your settings, and build coreboot:

$ make

The file build/coreboot.rom is your final coreboot image, which also contains the payload.