From owner-freebsd-arm@FreeBSD.ORG Thu Sep 27 16:21:04 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2A3F16A417 for ; Thu, 27 Sep 2007 16:21:04 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 07DDD13C45D for ; Thu, 27 Sep 2007 16:21:03 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.8/8.13.8) with ESMTP id l8RH3e0M011641; Thu, 27 Sep 2007 19:03:41 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id l8RH3epU011640; Thu, 27 Sep 2007 19:03:40 +0200 (CEST) (envelope-from mlfbsd) Date: Thu, 27 Sep 2007 19:03:39 +0200 From: Olivier Houchard To: Marius Nuennerich Message-ID: <20070927170339.GA11021@ci0.org> References: <20070927171822.0bdec7d9@sol.hackerzberg.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070927171822.0bdec7d9@sol.hackerzberg.local> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: Comment bug in locore.S? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2007 16:21:05 -0000 On Thu, Sep 27, 2007 at 05:18:22PM +0200, Marius Nuennerich wrote: > Hi all, > Hi Marius, > I'm still trying to boot FreeBSD on the neo1973. So far I managed to > put bytes over the serial console so I can see where I am. At the > moment the (virtual) machine crashes in locore.S (1.16) line 170: > ldr pc, .Lvirt_done > > qemu: fatal: Trying to execute code outside RAM or ROM at 0xc0008??? > > Which I don't understand because the section should be mapped by the > MMU to 0x30008??? at that time. > > In line 137 the sequence in the comment is described as > /* # of sections, PA|attr, VA */ > but in line 185 the order is > n_sec, VA, PA|attr > > Is the comment wrong? > No the comment is right, 0xc0000000 should be mapped. Did you define STARTUP_PAGETABLE_ADDR ? It's not marked as such, but it is mandatory now. > Any idea why the mapping doesn't work? > I needed to map the uart with > MMU_INIT(0x50000000, 0x50000000, 1, L1_TYPE_S|L1_S_AP(AP_KRW)) > which worked (I can still put chars after the mmu gets enabled). > > > Kind regards > Marius Regards, Olivier