From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 21 13:50:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A790216A4CF for ; Sat, 21 Feb 2004 13:50:43 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0266143D2D for ; Sat, 21 Feb 2004 13:50:43 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2657.72) id <15P45LTH>; Sat, 21 Feb 2004 16:50:41 -0500 Message-ID: From: Don Bowman To: 'Romain Kang' , hackers@freebsd.org Date: Sat, 21 Feb 2004 16:50:33 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: memtest86 for FreeBSD boot? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 21:50:43 -0000 > From: Romain Kang [mailto:romain@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) } }