Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2011 11:14:25 +0100
From:      Olivier Houchard <mlfbsd@ci0.org>
To:        Daan Vreeken <Daan@vitsch.nl>
Cc:        FreeBSD-arm@freebsd.org
Subject:   Re: Stamp9261
Message-ID:  <20110218101425.GA52167@ci0.org>
In-Reply-To: <201102180028.34539.Daan@vitsch.nl>
References:  <201102180028.34539.Daan@vitsch.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110218101425.GA52167>