From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 21 14:37:36 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 7219416A4CE for ; Sat, 21 Feb 2004 14:37:36 -0800 (PST) Received: from smtp2.Stanford.EDU (smtp2.Stanford.EDU [171.67.16.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68DBE43D1F for ; Sat, 21 Feb 2004 14:37:36 -0800 (PST) (envelope-from romain@kzsu.stanford.edu) Received: from kzsu.stanford.edu (KZSU.Stanford.EDU [171.66.118.90]) by smtp2.Stanford.EDU (8.12.10/8.12.10) with ESMTP id i1LMbYGj003898; Sat, 21 Feb 2004 14:37:35 -0800 Received: from kzsu.stanford.edu (localhost. [127.0.0.1]) by kzsu.stanford.edu (8.12.10/8.12.10) with ESMTP id i1LMbYaQ043500; Sat, 21 Feb 2004 14:37:34 -0800 (PST) (envelope-from romain@kzsu.stanford.edu) X-Authentication-Warning: kzsu.stanford.edu: Host localhost. [127.0.0.1] claimed to be kzsu.stanford.edu Received: (from romain@localhost) by kzsu.stanford.edu (8.12.10/8.12.9/Submit) id i1LMbYmN043499; Sat, 21 Feb 2004 14:37:34 -0800 (PST) (envelope-from romain) Date: Sat, 21 Feb 2004 14:37:34 -0800 From: "'Romain Kang'" To: Don Bowman Message-ID: <20040221223734.GA43444@kzsu.stanford.edu> Mail-Followup-To: 'Romain Kang' , Don Bowman , hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.38 cc: hackers@freebsd.org 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 22:37:36 -0000 My hardware didn't seem to like the simple .lds change -- the console display filled with a fascinating array of characters and colors. I wound up starting with ldscript.i386 as my template instead (see below). Seems to work... Thanks, Romain Kang Disclaimer: I speak for myself alone, romain@kzsu.stanford.edu except when indicated otherwise. --- /usr/src/sys/conf/ldscript.i386 Thu Sep 20 02:29:23 2001 +++ ldscript.i386 Sat Feb 21 14:36:08 2004 @@ -1,12 +1,20 @@ /* $FreeBSD: src/sys/conf/ldscript.i386,v 1.4.2.1 2001/09/20 09:29:23 peter Exp $ */ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) -ENTRY(btext) +ENTRY(_start) SEARCH_DIR(/usr/lib); SECTIONS { /* Read-only sections, merged into text segment: */ - . = kernbase + 0x00100000 + SIZEOF_HEADERS; + . = 0xc0100000 + SIZEOF_HEADERS; + .bootsect : { *(.bootsect) } + .setup : { *(.setup) } + .memtest : { + _start = . ; + *(.data) + _end = . ; + } + _syssize = (_end - _start + 15) >> 4; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) }