Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 1999 17:41:13 +0200 (CEST)
From:      Konrad Heuer <kheuer@gwdu60.gwdg.de>
To:        jon giles <jong@clinedavis.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: trouble compiling kernel with memory option
Message-ID:  <Pine.BSF.4.05.9907011737160.21249-100000@gwdu60.gwdg.de>
In-Reply-To: <377B85C5.66ADAE96@clinedavis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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<n>"
>=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 <n> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9907011737160.21249-100000>