bugGNU GRUB - Bugs: bug #3404, Error 28 on loading memtest.bin...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3404: Error 28 on loading memtest.bin (86k) with asus nforce motherboard

Submitter:  Invalid User ID <#18587>
Submitted:  Wed 30 Apr 2003 03:00:22 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  None
Release:  0.93-20030118 Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Sat 15 Dec 2007 12:11:39 PM UTC, comment #8: 

We've moved to GRUB 2 as a development platform.  Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Group administrator
Tue 07 Feb 2006 10:50:01 PM UTC, comment #7: 

There is a bug in stage2/char_io.c where addresses are treated as signed, causing this issue as well as similar ones with memdisk on systems with a large amount of memory. I'm attacing a patch below against grub 0.97:

diff -burN grub-0.97/stage2/char_io.c grub-0.97-patched/stage2/char_io.c
--- grub-0.97/stage2/char_io.c  2005-02-01 15:51:23.000000000 -0500
+++ grub-0.97-patched/stage2/char_io.c  2006-02-07 16:42:49.674855440 -0500
@@ -1175,7 +1175,7 @@
 #endif /* ! STAGE1_5 */

 int
-memcheck (int addr, int len)
+memcheck (unsigned int addr, int len)
 {
 #ifdef GRUB_UTIL
   auto int start_addr (void);
@@ -1220,7 +1221,7 @@
 void *
 grub_memmove (void *to, const void *from, int len)
 {
-   if (memcheck ((int) to, len))
+   if (memcheck ((unsigned int) to, len))
      {
        /* This assembly code is stolen from
          linux-2.2.2/include/asm-i386/string.h. This is not very fast
@@ -1258,7 +1259,7 @@
 {
   char *p = start;

-  if (memcheck ((int) start, len))
+  if (memcheck ((unsigned int) start, len))
     {
       while (len -- > 0)
        *p ++ = c;
diff -burN grub-0.97/stage2/shared.h grub-0.97-patched/stage2/shared.h
--- grub-0.97/stage2/shared.h   2004-06-19 12:40:09.000000000 -0400
+++ grub-0.97-patched/stage2/shared.h   2006-02-07 16:44:11.288448288 -0500
@@ -911,7 +911,7 @@
 int nul_terminate (char *str);
 int get_based_digit (int c, int base);
 int safe_parse_maxint (char **str_ptr, int *myint_ptr);
-int memcheck (int start, int len);
+int memcheck (unsigned int start, int len);
 void grub_putstr (const char *str);

 #ifndef NO_DECOMPRESSION

John V. Baboval <baboval>
Tue 27 Sep 2005 10:20:24 AM UTC, comment #6: 

dear Bernhard,

we have facing with the same problem with an HP DL-145 (totally diskless machine, w/o floppy and cd-rom).

in our case Grub don't want to load memtest86+ even with chainloader. after I the boot start it prints:

chainloader (hd0,0)/memtest86plus/memtest.bin

and after that the screen filled with the following number:

0104

repeating it endlessly.

thanks for your help!

KARASZI Istvan <raszi>
Mon 06 Jun 2005 01:37:49 PM UTC, comment #5: 

Two small comments:

1. If it is working on some chipsets/MBs then it might
   not be the fault of Grub (see also Peter Anwin's comments
   on buggy BIOSes and memdisk).

2. If this works (as noted in a very early comment):

> Copy memtest.bin to a floppy disk:
> dd if=3D/boot/memtest86/memtest.bin of=3D/dev/fd0
> Boot with the floppy.


please try:

chainloader (dev,part)/boot/memtest86/memtest.bin


(don't forget to add boot, if you are trying that on
the Grub command line) Grub can boot off any saved
boot sectors ...

regards
    Bernhard

Bernhard Treutwein <treutwein>
Thu 19 May 2005 04:04:38 PM UTC, comment #4: 

Actually, let me correct myself. If you have a CD drive, you can use a memtest86+ bootable ISO...

David Wood <obsidian01>
Wed 18 May 2005 10:27:37 PM UTC, comment #3: 

And another year passes.

Same problem here. As the vogue lately is to make floppy-less machines, this bug is more and more frustrating... I wish I didn't have to dig up a floppy drive and crack my case just to run memtest...

David Wood <obsidian01>
Fri 02 Jul 2004 02:57:56 AM UTC, comment #2: 

Whoa.  Nobody has closed this or added comments in a whole year?

This problem also exists in grub 0.94-r1 on Gentoo with memtest86plus.  As the system I want to test has neither floppy nor CD, it would be nice to have this work...

Thanks in advance!

Anonymous
Fri 02 May 2003 12:05:53 PM UTC, comment #1: 

I can boot and operate Memtest86 without grub as follows:

Copy memtest.bin to a floppy disk:
dd if=/boot/memtest86/memtest.bin of=/dev/fd0
Boot with the floppy.

I set Memtest86 to run the standard tests, my PC managing over 17 hours with no errors (before I got bored and switched it off).

Invalid User ID <#18587>
Wed 30 Apr 2003 03:00:22 PM UTC, original submission:  

Using Grub 0.93-20030118 I can load a vanilla linux kernel ok with an asus nforce motherboard with 512MB.

The problem arises when the following is executed:
kernel (hd0,0)/boot/memtest86/memtest.bin
Memtest86 is a small (84420 bytes) memory tester, see http://www.memtest86.com. The error given is:
Error 28: Selected item cannot fit into memory.

I get no problem with Grub 0.92 + memtest.bin + another motherboard.

displaymem states:
Address Map BIOS Interface is present
Lower memory: 512K, Upper memory (to first chipset hole): 490416K

This problem is similar to
[ Bug #1309 ] Nforce chipsets (A7N266-VM, etc) give error 28
with the difference that I have Grub 0.93-20030118 and can load linux kernel.

Invalid User ID <#18587>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by robertmh (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed
    2005-06-06 treutwein Carbon-Copy- Added 'benmeasures'
    2005-06-06 treutwein Carbon-Copy- Added 'davidwood'

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code