From owner-freebsd-current Mon Mar 29 6:43:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from noc.demon.net (server.noc.demon.net [193.195.224.4]) by hub.freebsd.org (Postfix) with ESMTP id 7574B14E92 for ; Mon, 29 Mar 1999 06:43:45 -0800 (PST) (envelope-from fanf@demon.net) Received: by noc.demon.net; id PAA23988; Mon, 29 Mar 1999 15:43:25 +0100 (BST) Received: from fanf.noc.demon.net(195.11.55.83) by inside.noc.demon.net via smap (3.2) id xma023964; Mon, 29 Mar 99 15:43:16 +0100 Received: from fanf by fanf.noc.demon.net with local (Exim 1.73 #2) id 10RdG0-0006C0-00; Mon, 29 Mar 1999 15:43:16 +0100 To: current@freebsd.org From: Tony Finch Subject: booting systems with lots of memory Message-Id: Date: Mon, 29 Mar 1999 15:43:16 +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We have a Quad 400MHz Xeon on evaluation here and we're trying to get a large memory configuration working. The machine is running a recent 3.1-STABLE with the kva patch from -CURRENT (appended below). When we have a working system with 1GB of RAM we'll increase it to 3GB of RAM and see how it runs. The boot blocks are from 3.0-RELEASE and they will boot the old a.out kernel via /boot/loader quite happily. We haven't yet managed to boot an ELF kernel, though (but we haven't tried to boot an unpatched one). It's also somewhat painful to debug because the machine is miles away and its serial console is causing trouble. Are there any obvious things we have missed? I assume the kernel load address is read by /boot/loader from the kernel's ELF header, so that a recent loader can cope. I also assume that the patch included below tweaks all of the required knobs. Tony. -- f.a.n.finch dot@dotat.at fanf@demon.net =================================================================== RCS file: /home/ncvs/src/sys/i386/conf/Makefile.i386,v retrieving revision 1.140 retrieving revision 1.141 diff -p -u -r1.140 -r1.141 --- src/sys/i386/conf/Makefile.i386 1999/03/01 09:54:51 1.140 +++ /home/ncvs/src/sys/i386/conf/Makefile.i386 1999/03/11 18:28:41 1.141 @@ -1,7 +1,7 @@ # Makefile.i386 -- with config changes. # Copyright 1990 W. Jolitz # from: @(#)Makefile.i386 7.1 5/10/91 -# $Id: Makefile.i386,v 1.140 1999/03/01 09:54:51 dt Exp $ +# $Id: Makefile.i386,v 1.141 1999/03/11 18:28:41 dg Exp $ # # Makefile for FreeBSD # @@ -56,7 +56,7 @@ CFLAGS+= -elf CFLAGS+= -aout .endif -LOAD_ADDRESS?= F0100000 +LOAD_ADDRESS?= C0100000 DEFINED_PROF= ${PROF} .if defined(PROF) CFLAGS+= -malign-functions=4 =================================================================== RCS file: /home/ncvs/src/sys/i386/conf/kernel.script,v retrieving revision 1.1 retrieving revision 1.2 diff -p -u -r1.1 -r1.2 --- src/sys/i386/conf/kernel.script 1998/09/30 12:14:39 1.1 +++ /home/ncvs/src/sys/i386/conf/kernel.script 1999/03/11 18:28:42 1.2 @@ -5,7 +5,7 @@ SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/ob SECTIONS { /* Read-only sections, merged into text segment: */ - . = 0xf0100000 + SIZEOF_HEADERS; + . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) } =================================================================== RCS file: /home/ncvs/src/sys/i386/include/pmap.h,v retrieving revision 1.58 retrieving revision 1.59 diff -p -u -r1.58 -r1.59 --- src/sys/i386/include/pmap.h 1999/03/02 16:20:39 1.58 +++ /home/ncvs/src/sys/i386/include/pmap.h 1999/03/11 18:28:46 1.59 @@ -42,7 +42,7 @@ * * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 - * $Id: pmap.h,v 1.58 1999/03/02 16:20:39 dg Exp $ + * $Id: pmap.h,v 1.59 1999/03/11 18:28:46 dg Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -88,13 +88,13 @@ #define VADDR(pdi, pti) ((vm_offset_t)(((pdi)<