From owner-freebsd-arm@FreeBSD.ORG Thu Sep 27 15:18:19 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 78ACB16A419 for ; Thu, 27 Sep 2007 15:18:19 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id BE28F13C455 for ; Thu, 27 Sep 2007 15:18:18 +0000 (UTC) (envelope-from marius.nuennerich@gmx.de) Received: (qmail invoked by alias); 27 Sep 2007 15:18:16 -0000 Received: from f049170050.adsl.alicedsl.de (EHLO sol.hackerzberg.local) [78.49.170.50] by mail.gmx.net (mp032) with SMTP; 27 Sep 2007 17:18:16 +0200 X-Authenticated: #5707313 X-Provags-ID: V01U2FsdGVkX18EqrtP9+YEPnAGDpdrFQQNisNc0hv7UjxJYyHID3 VtDYdGemHXqvGc Date: Thu, 27 Sep 2007 17:18:22 +0200 From: Marius Nuennerich To: freebsd-arm@freebsd.org Message-ID: <20070927171822.0bdec7d9@sol.hackerzberg.local> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: 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 15:18:19 -0000 Hi all, 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? 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