From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1525 invoked from network); 18 Aug 1998 18:34:26 -0000 Received: from mail11.digital.com (192.208.46.10) by mail2.redhat.com with SMTP; 18 Aug 1998 18:34:26 -0000 Received: from tparch.tay1.dec.com (tparch.tay1.dec.com [16.119.0.10]) by mail11.digital.com (8.8.8/8.8.8/WV1.0g) with SMTP id OAA09951; Tue, 18 Aug 1998 14:34:26 -0400 (EDT) Received: from ives.amt.tay1.dec.com by tparch.tay1.dec.com (5.65/MS-010395) id AA19552; Tue, 18 Aug 1998 14:34:51 -0400 Received: from linux03.hlo.dec.com by ives.amt.tay1.dec.com; (5.65v3.2/1.1.7.2/05Oct95-1258PM) id AA31205; Tue, 18 Aug 1998 14:34:24 -0400 Received: from linux03 (jestabro@localhost [127.0.0.1]) by linux03.hlo.dec.com (8.8.7/8.8.7) with ESMTP id OAA02210; Tue, 18 Aug 1998 14:35:13 -0400 Message-Id: <199808181835.OAA02210@linux03.hlo.dec.com> X-Mailer: exmh version 2.0zeta 7/24/97 X-Exmh-Isig-Comptype: repl X-Exmh-Isig-Folder: debian To: debian-alpha@lists.debian.org, axp-list@redhat.com From: Jay.Estabrook@digital.com Subject: FAQ: MILO gets memory size wrong In-Reply-To: Your message of Tue, 18 Aug 1998 16:27:51 +0200. <35D98F67.4FCB@dracula.gda.osk.pl> Mime-Version: 1.0 Content-Type: text/plain Date: Tue, 18 Aug 1998 14:35:13 -0400 Sender: jestabro@amt.tay1.dec.com >>> Wojtek Puchar said: > > MILO detects only 24MB of RAM (I have 2x32MB RAM) > > I boot MILO from SRM console. > > I will try using aboot... There are two ways in which the LINUX kernel will have accurate information about how much memory is installed in the box: 1. boot the kernel *DIRECTLY* from SRM console (via aboot). 2. boot the kernel via MILO from ARC or AlphaBIOS console. The LINUX kernel expects an array of "memory descriptors" to be pointed to by the HWRPB (see the Alpha Architecture Reference Manual for details on what the HWRPB is, and what the memory descriptors look like). These "descriptors" describe the use of main memory pages (basically "free" or "occupied"). #1 works because the SRM console sets up the HWRPB and "memory descriptors", while reserving some memory for itself, the HWRPB, and PALcode. #2 works because "linload.exe" passes along to MILO memory size information, that it itself gets from ARC or AlphaBIOS. MILO then builds the appropriate "memory descriptors" for the amount of memory it has been told, also keeping some pages for itself, PALcode, HWRPB. So, if you boot MILO from SRM console, MILO gets *NO* information about the size of memory; in this case, which it fortunately detects, it chooses a default size (24 for NONAME/UDB, 32 for the others, IIRC), and builds the "memory descriptors" for that size. Using "set MEMORY_SIZE 64", or some such, will work, as MILO will re-do the memory descriptors appropriately. But it's not the correct solution, IMHO. Remember, on many ALpha platforms, kernels built to boot from SRM will *not* boot from MILO, and vice versa. Fortunately, I believe NONAME/UDB is one of those platforms whose kernels will boot from either... ;-} --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Motherboards - LINUX Project Digital Equipment Corp. (508) 841-3241 or (DTN) 237-3241 334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com -------------------------------------------------------------------------------