From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ww0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NuSQi-0006s4-Mh for barebox@lists.infradead.org; Wed, 24 Mar 2010 15:23:41 +0000 Received: by wwb18 with SMTP id 18so1220161wwb.36 for ; Wed, 24 Mar 2010 08:23:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100324150818.GB2328@darwin> References: <20100323133217.GA26177@darwin> <20100323142643.GN2241@pengutronix.de> <20100323150915.GB26177@darwin> <4BA8DEBF.6060305@eukrea.com> <20100323162201.GE26177@darwin> <20100324150818.GB2328@darwin> Date: Wed, 24 Mar 2010 16:23:33 +0100 Message-ID: From: Ivo Clarysse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Barebox working on freescale-mx25-3-stack? To: Matthias Kaehlcke Cc: barebox@lists.infradead.org On Wed, Mar 24, 2010 at 4:08 PM, Matthias Kaehlcke wrote: > > after applying your patch barebox effectivly came up :) > > thanks a lot! > > could you explain in few words why the patch is needed? RAM initialization is implemented in two places: lowlevel_init.S and the "Device Configuration Data" (DCD) block. When booting from an SD card, the i.MX25 reads out the DCD block and applies the settings found there. The RAM initialization in lowlevel_init.S is skipped when booting from SD; by the time board_init_lowlevel gets executed, that routine is already running from RAM, and will skip initializing memory. The DCD table in barebox git contains entries for mDDR memory. This does not work with DDR2 memory. Probably barebox needs a compile-time option to switch between 128 MiB mDDR memory installed on older MCIMX25PDK CPU engine boards and the 64 MiB DDR2 memory found on newer boards. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox