Comment 10 for bug 19885

Revision history for this message
In , Rajeev V. Pillai (rajeev-v-pillai) wrote : memtest86+: does not work: wouldn't fit into memory [PATCH]

I've managed to boot both memtest86 (v3.2) and memtest86+
(v1.65 and v1.70) using grub by following the steps below:

1. Use the ELF executable version of memtest (file memtest)
   instead of the zImage i.e. directly bootable version
   (file memtest.bin).

2. Apply the patch below which changes the load address of
   the ELF executable from 0x10000 to 0x100000. Otherwise,
   grub complains: "Error 7: Loading below 1MB is not supported"

3. Make the binaries as usual by typing `make'.

4. Load the ELF executable memtest like this:

   title Memtest86+ v1.70
       root (hd0,2) # Change this for your setup
       kernel --type=netbsd /boot/memtest

Cheers,
Rajeev

------ Start of Patch ------
diff -urN memtest86+-1.70.orig/memtest.lds memtest86+-1.70/memtest.lds
--- memtest86+-1.70.orig/memtest.lds 2005-09-11 23:47:15.000000000
+0530
+++ memtest86+-1.70/memtest.lds 2006-04-06 11:16:22.089703648 +0530
@@ -3,7 +3,7 @@

 ENTRY(_start);
 SECTIONS {
- . = 0x10000;
+ . = 0x100000;
        _start = . ;
        .data : {
                *(.data)
------ End of Patch ------

____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/