From owner-freebsd-questions Thu Jul 1 8:42:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 1252E14A13 for ; Thu, 1 Jul 1999 08:41:34 -0700 (PDT) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.2/8.9.2) with ESMTP id RAA21269; Thu, 1 Jul 1999 17:41:13 +0200 (CEST) (envelope-from kheuer@gwdu60.gwdg.de) Date: Thu, 1 Jul 1999 17:41:13 +0200 (CEST) From: Konrad Heuer To: jon giles Cc: freebsd-questions@FreeBSD.ORG Subject: Re: trouble compiling kernel with memory option In-Reply-To: <377B85C5.66ADAE96@clinedavis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 1 Jul 1999, jon giles wrote: > Using top, I found that the 128MB of ram we have in our machine was not > being used. Only about 64MB > is being seen by BSD. >=20 > I found a faq on bsd.org that said that the kernel needs to be told > explicitly how much ram there is in the machine. The faq suggested to > channge MYKERNEL config file by adding this line. >=20 > "options "MAXMEM=3D" >=20 > Where n is your memory in Kilobytes. For a 128 MB machine, you'd want to > use 131072." >=20 > After adding this line, my make came back with this error: >=20 > cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -nostdinc -I- -I. -I../.. -I/usr/include > -DAPM_BROKEN_STATCLOCK -DFAILSAFE -DCOMPAT_43 -DCD9660 -DMSDOSFS -DNFS > -DFFS -DINET -DKERNEL ../../i386/i386/machdep.c > ../../i386/i386/machdep.c: In function `init386': > ../../i386/i386/machdep.c:1157: parse error before `<' > *** Error code 1 >=20 > If I take out the line, if makes fine. >=20 > Any help with this would really be apreciated. >=20 > Here is a copy of my MYKERNEL file: > # > # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks > # =2E.. cut a lot here ... > options VISUAL_USERCONFIG #visual boot -c editor > options "MAXMEM=3D<131072>" #for mem of 128M Try: options MAXMEM=3D131072 '<' and '>' just indicate that the string shall be replaced by an integer number. Regards // // Konrad Heuer ____ ___ _____= __=20 // Gesellschaft f=FCr wissenschaftliche / __/______ ___ / _ )/ __= / _ \ // Datenverarbeitung mbH G=D6ttingen / _// __/ -_) -_) _ |\ \/= // / // Am Fa=DFberg, D-37077 G=D6ttingen /_/ /_/ \__/\__/____/___= /____/=20 // Deutschland (Germany) ----- The Power to Serve ----= - // http://www.freebsd.org // kheuer@gwdu60.gwdg.de // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message