memtest86 for FreeBSD boot?
Don Bowman
don at sandvine.com
Sat Feb 21 13:50:43 PST 2004
> From: Romain Kang [mailto:romain at kzsu.stanford.edu]
> Has anyone put together a version of memtest86
> (http://www.memtest86.com/)
> that can sit in the root directory next to the FreeBSD kernel?
>
> My lab at work has a several racks of 1U boxes, most of which has
> a CD-ROM or floppy installed. If we suspect RAM problem in one of
> the machines, we have to unrack the box, open it up and hook up
> another drive to run memtest86. I notice that Linux boxes that
> boot with GRUB or LILO seem to use HDD-based memtest86 without
> problem. It looks like a matter of coming up with a suitable .lds
> file to do the same for FreeBSD, and it's probably obvious enough
> that someone has done it before...
Change the '. =' in the lds file as below.
OUTPUT_FORMAT("elf32-i386");
OUTPUT_ARCH(i386);
ENTRY(_start);
SECTIONS {
/* . = 0x10000; */
. = 0xc0120000;
_start = . ;
.data : {
*(.data)
}
}
More information about the freebsd-hackers
mailing list