From owner-freebsd-ppc@FreeBSD.ORG Sat Sep 27 21:05:14 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDE651065693; Sat, 27 Sep 2008 21:05:14 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id B451A8FC08; Sat, 27 Sep 2008 21:05:14 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from alan-tablet.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K7V005XVH8P6G00@asmtp017.mac.com>; Sat, 27 Sep 2008 14:05:14 -0700 (PDT) Message-id: <11FEA924-DB76-46E1-BF79-A26206F796C0@mac.com> From: Marcel Moolenaar To: Marco Trillo In-reply-to: Date: Sat, 27 Sep 2008 14:05:12 -0700 References: <48DD91A4.2060306@freebsd.org> <263AF44F-FC15-4700-B93B-B0DE07A17B40@mac.com> X-Mailer: Apple Mail (2.929.2) Cc: grehan@freebsd.org, freebsd-ppc@freebsd.org Subject: Re: 8.0-current 200809 snapshot CD boot problem X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2008 21:05:14 -0000 On Sep 27, 2008, at 1:54 PM, Marco Trillo wrote: > On Sat, Sep 27, 2008 at 10:23 PM, Marcel Moolenaar > wrote: >> Let me get it straight... >> >> In the first case (booting from hd:58), does the boot >> fail for start address 0x100100 but not for start >> address 0x13d3c0? >> >> In the second case (booting from CD), does it work in >> both cases? >> >> Or is the second case the same as the first case and >> it is failing for 0x100100 and working for 0x13d3c0? > > Booting from CD fails for 0x100100 kernels, such as the 8.0-current > snapshot, and works for 0x13d3c0 kernels like the 7.1_BETA snapshot. > > Booting kernels from hard disk (both with a loader in an HFS partition > in hard disk or with the loader from the CD) also fails for > 8.0-current kernels with the 0x1001000 address and works for kernels > with a 0x13d3c0 address, either 7.1 or 8.0-current compiled with > revision 1.7 of the "ldscript.powerpc" file . > > Oddly enough, I tried booting the same 8.0-current snapshot CD on a > PowerMac G4 "Sawtooth" (PowerMac3,1) and it boots fine there -- no > errors, as does the 7.1-beta CD... Ok. So while the memmap output differs, the failure mode is the same. Hmmm. The only things I can think of is: o I-cache coherency o Uninitialized memory Typically when we load an ELF image, we read the first page, parse the headers and then read the rest. In this case the failing address (0x100100) is in the first page, whereas the working address (0x13d3c0) isn't. I wonder if we "load" the first page indirectly... Quick question: On ARM and ia64 you need to sync the D-cache before you can make the I-cache coherent. That's because the I-cache is made coherent with memory and not with the D-cache. How's that on PowerPC? -- Marcel Moolenaar xcllnt@mac.com