From owner-freebsd-arm@FreeBSD.ORG Sun Jan 8 00:40:39 2012 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 3D2561065670 for ; Sun, 8 Jan 2012 00:40:39 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id C3E828FC13 for ; Sun, 8 Jan 2012 00:40:38 +0000 (UTC) Received: by wibhr1 with SMTP id hr1so2832223wib.13 for ; Sat, 07 Jan 2012 16:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HSJaWtUKZRcVvkDtVf3yWa6sJ241xUZeUFmq3h1Pd0w=; b=F4hFV/Z0rRhFRFuHrqIoeqe2JezyLzW3LbN57bHda0shepsS//sKgeziBEo2lClijY Q0fUmfGX0zxjjtUp/QWjBvGo/gnLWT+4pxVIwYrPp16joRjkLipHEkfhB+JodY7AdVPo eAygV5pdpcFSxzM1wCi2taJ7OHAaKtUOV3KuU= MIME-Version: 1.0 Received: by 10.180.93.193 with SMTP id cw1mr20001998wib.5.1325983237639; Sat, 07 Jan 2012 16:40:37 -0800 (PST) Received: by 10.223.160.13 with HTTP; Sat, 7 Jan 2012 16:40:37 -0800 (PST) In-Reply-To: References: <20120103104814.GA95533@ci0.org> <20120103160717.GA1744@ci0.org> Date: Sun, 8 Jan 2012 01:40:37 +0100 Message-ID: From: Aleksander Dutkowski To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: porting freebsd to at91sam9g45 ( SBC6045 board) 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: Sun, 08 Jan 2012 00:40:39 -0000 On Tue, Jan 3, 2012 at 5:07 PM, Olivier Houchard wrote: > > Hmm, I don't know the SAM9G45, but reading the linux stuff, the UART code > should be the same, maybe the way to retrieve the amount of memory changed, > and at91_ramsize() is wrong for your CPU, you can test it quickly by > hardcoding the ram size in at91_ramsize(), or maybe there's some new stuff to > enable the DBGU port ? > > Regards, > > Olivier > ok, so I spent couple of days to read the code, but it still doesn't work ;) I dont know, why AT91_DBGU_BASE and especially AT91SAM9G20_BASE is set to 0xD0000000 when base for Internal Peripherals for sam9g20 is 0xF0000000 (I've fixed it already). Ive also changed AT91SAM9G20_DBGU_BASE to proper value and all at91_cpu_is() function calls. Seems that sam9g45 doesn't have SDRAMC, so I've hardcoded at91_ramsize(), just like you've said. but in sys/arm/at91/at91sam9g20.c:238, the author says that it has to be changed for other CPUs. Seems that there is much more work to do ;) I will still be very pleased, if you're able to give me a hint about lines of code which might give trouble. Regards, Aleksander