From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 23 11:04:43 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11DED1065670 for ; Mon, 23 Feb 2009 11:04:43 +0000 (UTC) (envelope-from alexf@vsi.ru) Received: from serv1.vsi.ru (serv1.vsi.ru [80.82.32.12]) by mx1.freebsd.org (Postfix) with ESMTP id 89F068FC17 for ; Mon, 23 Feb 2009 11:04:42 +0000 (UTC) (envelope-from alexf@vsi.ru) Received: from serv1 (serv1 [80.82.32.12]) by serv1.vsi.ru (8.13.8+Sun/8.13.8) with ESMTP id n1NB4fWu014664; Mon, 23 Feb 2009 14:04:41 +0300 (MSK) Date: Mon, 23 Feb 2009 14:04:40 +0300 (MSK) From: Aleksey V Fedorov X-X-Sender: alexf@serv1 To: Rafal Jaworowski In-Reply-To: <49A2704F.4060703@semihalf.com> Message-ID: References: <49A2704F.4060703@semihalf.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ppc@freebsd.org Subject: Re: boot process X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 11:04:43 -0000 On Mon, 23 Feb 2009, Rafal Jaworowski wrote: > 2. Hack e500_init() routine in the kernel to hard code some config data it > normally gets from loader, like physical RAM size, memory regions number etc., > CCSR base address, CCB clock frequency, maybe something more, see e500_init() > for details. I see that CCSRBAR address is hardcoded in vmparam.h /* * Kernel CCSRBAR location. We make this the reset location. */ #define CCSRBAR_VA 0xfef00000 #define CCSRBAR_SIZE 0x00100000 Who change them: loader(8) or U-boot ? In Linux dts it's on another address: # grep CCSRBAR *.dts mpc8540ads.dts: reg = ; // CCSRBAR 1M mpc8541cds.dts: reg = ; // CCSRBAR 1M mpc8544ds.dts: reg = ; // CCSRBAR 1M mpc8548cds.dts: reg = ; // CCSRBAR 1M mpc8555cds.dts: reg = ; // CCSRBAR 1M --