From owner-freebsd-arm@FreeBSD.ORG Fri Feb 18 10:13:58 2011 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 1B2AB106566C for ; Fri, 18 Feb 2011 10:13:58 +0000 (UTC) (envelope-from mlfbsd@kanar.ci0.org) Received: from kanar.ci0.org (unknown [IPv6:2a01:e0b:1:50:40:63ff:feea:93a]) by mx1.freebsd.org (Postfix) with ESMTP id ACC118FC0A for ; Fri, 18 Feb 2011 10:13:57 +0000 (UTC) Received: from kanar.ci0.org (pluxor@localhost [127.0.0.1]) by kanar.ci0.org (8.14.2/8.14.3) with ESMTP id p1IAEPgl052604; Fri, 18 Feb 2011 11:14:25 +0100 (CET) (envelope-from mlfbsd@kanar.ci0.org) Received: (from mlfbsd@localhost) by kanar.ci0.org (8.14.2/8.14.3/Submit) id p1IAEPo7052603; Fri, 18 Feb 2011 11:14:25 +0100 (CET) (envelope-from mlfbsd) Date: Fri, 18 Feb 2011 11:14:25 +0100 From: Olivier Houchard To: Daan Vreeken Message-ID: <20110218101425.GA52167@ci0.org> References: <201102180028.34539.Daan@vitsch.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201102180028.34539.Daan@vitsch.nl> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD-arm@freebsd.org Subject: Re: Stamp9261 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: Fri, 18 Feb 2011 10:13:58 -0000 Hi Dean, On Fri, Feb 18, 2011 at 12:28:34AM +0100, Daan Vreeken wrote: > > The board's (64MB of) SDRAM is located at 0x20000000. After tftp-ing the > kernel.bin image to 0x20000000 with u-boot and starting it the board seems to > hang. By printing bytes to the DBGU serial port I've been able to trace the > execution through "arm/locore.S" up to the point where the MMU is enabled > with the following code: > > /* Enable MMU */ > mrc p15, 0, r0, c1, c0, 0 > orr r0, r0, #CPU_CONTROL_MMU_ENABLE > mcr p15, 0, r0, c1, c0, 0 > nop > nop > nop > CPWAIT(r0) > > Either the CPU halts somewhere in this piece of code, or my DBGU printing > macro doesn't work after enabling the MMU and the code halts somewhere > else. ;-) > Well nothing maps the DBGU at this points, so trying to access to it won't work :) That said, there were an issue which I fixed on 02/13 with rev 218666, which would make any board freezing at boot, so I'd suggest trying to update your sources :) Regards, Olivier