Bug 578966 - memtest-setup generates broken grub entry
Summary: memtest-setup generates broken grub entry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: memtest86+
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anton Arapov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-01 22:08 UTC by Luke Macken
Modified: 2016-09-20 02:40 UTC (History)
7 users (show)

Fixed In Version: memtest86+-4.10-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-26 09:34:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luke Macken 2010-04-01 22:08:08 UTC
Description of problem:

Running `memtest-setup` generates the following setup:

    title Memtest86+ (4.00) 
        root (hd0,0)
        kernel --type=netbsd /elf-memtest86+-4.00

This entry, even when removing '--type=netbsd', gives me:

    Error 13: Invalid or unsupported executable format.

Changing this to `kernel /memtest86+-4.00` gets it working for me.

Version-Release number of selected component (if applicable):
memtest86+-4.00-2

Comment 1 Anton Arapov 2010-04-02 13:30:14 UTC
  Luke, trying to reproduce, and found out it doesn't work for me at the moment neither with --type option nor without. :-/
  
  what system do you have i686 or x86_64 ?

Comment 2 Didier G 2010-05-13 19:37:14 UTC
Trying to run memtest86+ from grub, I installed

memtest86+-4.10-1.fc13.x86_64 

but memtest-setup generates invalid grub entry 

kernel --type=netbsd /elf-memtest86+-4.10

and I get

error 7 : loading below 1 MB is not supported

If I change grub entry to

kernel /memtest86+-4.10

memtest works fine.

Problem is the same with memtest86+-4.00-1.fc13.x86_64 except error message is different (invalid elf format).

Comment 3 Didier G 2010-05-13 19:39:36 UTC
I forgot to indicate that I have this problem on a system with AMD 945 x86_64 quad-cores and 8 GB of memory.

Comment 4 Luke Macken 2010-05-13 20:15:10 UTC
(In reply to comment #1)
>   Luke, trying to reproduce, and found out it doesn't work for me at the moment
> neither with --type option nor without. :-/
> 
>   what system do you have i686 or x86_64 ?    

x86_64

Comment 5 Andre Robatino 2010-05-24 10:06:14 UTC
Getting this on freshly installed and updated F13 (RC3) with memtest86+-4.00-3.fc13.x86_64, when attempting to run memtest86+ from the grub entry created by memtest-setup, which is

title Memtest86+ (4.00)
	root (hd0,1)
	kernel --type=netbsd /elf-memtest86+-4.00

Smolt URL: http://www.smolts.org/client/show/pub_d6319293-2126-4966-a8dc-7ab64a6fed17

Comment 6 Andre Robatino 2010-05-24 10:25:49 UTC
However, works for me on a freshly installed and updated F13 (RC3) i686 install with memtest86+-4.00-3.fc13.i686, with the grub entry

title Memtest86+ (4.00)
	root (hd0,2)
	kernel --type=netbsd /elf-memtest86+-4.00

Smolt URL: http://www.smolts.org/client/show/pub_892dc725-d358-4022-ab79-6047ccd42aa1

Comment 7 Fedora Update System 2010-05-25 08:34:08 UTC
memtest86+-4.10-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/memtest86+-4.10-2.fc13

Comment 8 Anton Arapov 2010-05-25 08:40:56 UTC
  The problem of loading memtest86+ is known and largely discussed. The solution would be to reimplement loading mechanism completely, but this requires huge effort since it's not an easy task. And we have nobody willing to do it so far.

  Nowadays, we are using elf- binary to start from the grub as the solution that works for the most systems/cases. In case you have Error 13 from the Grub, change the grub entry to "kernel /memtest86+-4.10" as was correctly suggested at comment #1.

  CLOSE as WONTFIX for now.

Comment 9 Andre Robatino 2010-05-25 21:06:29 UTC
I'm a little confused - if this is WONTFIX, why does the memtest86+-4.10-2.fc13 page in the above link say that it fixes this bug?  (Haven't had a chance to reboot yet to test it.)

Comment 10 Anton Arapov 2010-05-26 05:46:09 UTC
There was fixed bug, that prevented memtest of loading as suggested in comment #1 in a certain cases. I've just decided to link it to this bugzilla, just to have a reference for the future.

Comment 11 Andre Robatino 2010-05-26 07:38:54 UTC
I tried memtest86+-4.10-2.fc13.x86_64 without editing the memtest-setup grub entry and still got Error 13 on my x86_64 machine.  (Strange that I've only seen this problem with F13, since I've run 64-bit F10, F11, and F12 on the same machine without seeing it.)  Then I downgraded back to memtest86+-4.00-3.fc13.x86_64 and edited the grub entry, and now it works.

Comment 12 Anton Arapov 2010-05-26 09:01:45 UTC
  Andre, do you mean 4.10-2 doesn't work for you by default and with modified grub entry either?
  Did 4.00 version worked for you as is, iow without grub entry modifications?

Comment 13 Andre Robatino 2010-05-26 09:10:02 UTC
Neither 4.00 nor 4.10 work for me by default.  4.00 works with modified grub entry.  I didn't test to see whether 4.10 worked with modified grub entry - I was only interested in seeing whether it would allow me to avoid editing grub.conf, which it didn't.

Comment 14 Anton Arapov 2010-05-26 09:34:26 UTC
I see. And the only I can promise: once the solution appear in mainline, it'll be adopted by fedora. :) Guys are aware of the problem.

Comment 15 Andre Robatino 2010-05-26 09:43:25 UTC
Tested the remaining case.  Results: Neither 4.00 nor 4.10 work by default.  Both 4.00 and 4.10 work with modified grub entry.  I just noticed that if the memtest86+ grub entry is edited, it no longer gets deleted from grub.conf when memtest86+ is updated/downgraded, so it has to be deleted by hand (or when memtest-setup is run again, there will be two memtest86+ entries).

Comment 16 Andre Robatino 2010-05-26 09:48:41 UTC
Tested the remaining case.  Results: neither 4.00 or 4.10 work by default.  Both 4.00 and 4.10 work with modified grub entry.  I just noticed that if the grub entry is modified, then when memtest86+ is updated/downgraded, the grub entry is no longer automatically deleted from grub.conf, so it must be deleted by hand (or when memtest-setup is run again, there will be two memtest entries).

Comment 17 Fedora Update System 2010-07-13 07:52:05 UTC
memtest86+-4.10-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Kirill Kolyshkin 2010-10-27 14:09:16 UTC
Just tried memtest86+-4.10-2.x86_64 on a Fedora 14 beta, same bug.

(In reply to comment #8)
> In case you have Error 13 from the Grub,
> change the grub entry to "kernel /memtest86+-4.10" as was correctly suggested
> at comment #1.

It would be awesome to add the above information to some more easy-to-find place than bugzilla. First candidate is RPM %description (which now says "use elf binary" which is useless to say since this one is used by default).

Yet better, add this directly to grub.conf, something like:

  kernel --type=netbsd /elf-memtest86+-4.10
  # If the above one is not working for you, comment it out
  # and use this one instead:
  #kernel /memtest86+-4.10

Comment 19 Anton Arapov 2010-10-27 14:51:38 UTC
Good idea, Kir. Will push it into tree. :)


Note You need to log in before you can comment on or make changes to this bug.