[ATrpms-users] memtest86+

Phil Schaffner P.R.Schaffner at IEEE.org
Sat Apr 21 03:23:56 CEST 2007


On Fri, 2007-04-13 at 08:43 -0300, Paulo Cavalcanti wrote:
> Hi,
> 
> I prepared some rpms for the latest version of memtest86+, and they
> are working great for me.
> 
> The problem I had with redhat's version was 
> 
> Error 28: Selected item cannot fit into memory
> 
> when trying to boot it via grub (same happened with memtest86-3.3).
> 
> This problem seems to be related to newer mobos and newer grub
> versions.
> 
> After some research, I managed to patch it and fixed memtest-setup for
> writing 
> the appropriate grub arguments.
> 
> http://people.atrpms.net/~pcavalcanti/rpms/
> 
> Suggestions and feedback are welcome.

Rebuilt for Centos/EL5 from your SRPM at 

http://people.atrpms.net/~pcavalcanti/srpms/memtest86+-1.70-1.fc6.lcg.src.rpm

A nit-picking suggestion (probably for grubby unless I'm missing
something in the grubby man page) would be to have the entry in
grub.conf be made at the bottom rather than the top.

A more substantive problem was the GRUB stanza created:

        title Memtest86+ v1.70
                kernel /boot--type=netbsd /memtest86+-1.70

Should have been:

	    kernel --type=netbsd /boot/memtest86+-1.70

>From the spec file, looks like it would work on systems with a /boot
partition but fails on those without /boot.  The relevant section is:

%post
if [ -x /sbin/grubby ] ; then
    /sbin/grubby \
      --add-kernel="/boot/%{name}-%{version}" \
      --title "Memtest86+ v%{version}"

    sed -i -e's,/%{name},--type=netbsd /%{name},' /boot/grub/grub.conf
fi

%postun
if [ -x /sbin/grubby ] ; then
    sed -i -e's,--type=netbsd /%{name},/%{name},' /boot/grub/grub.conf
    /sbin/grubby --remove-kernel="/boot/%{name}-%{version}"
fi

Haven't got a handle on to correct logic to handle both cases.

Phil






More information about the atrpms-users mailing list