From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from f355.mail.ru ([217.69.140.251]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UVhB6-0001IR-PE for barebox@lists.infradead.org; Fri, 26 Apr 2013 11:51:02 +0000 From: =?UTF-8?B?QWxleGFuZGVyIFNoaXlhbg==?= Mime-Version: 1.0 Date: Fri, 26 Apr 2013 15:50:55 +0400 Message-ID: <1366977055.331524144@f355.mail.ru> In-Reply-To: <20130426114213.GS32299@pengutronix.de> References: <1366971714-32682-1-git-send-email-shc_work@mail.ru> <1366974776.4890563@f83.mail.ru> <20130426114213.GS32299@pengutronix.de> Reply-To: =?UTF-8?B?QWxleGFuZGVyIFNoaXlhbg==?= 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: =?UTF-8?B?UmVbMl06IFtSRkMgb25seV0gQVJNOiBpLk1YOiBGaXggU0RSQU0gc2l6ZSBk?= =?UTF-8?B?ZXRlY3Q=?= To: =?UTF-8?B?U2FzY2hhIEhhdWVy?= Cc: barebox@lists.infradead.org > > > On Fri, Apr 26, 2013 at 02:21:54PM +0400, Alexander Shiyan wrote: > > > > This is a trying to fix problem described in: > > > > http://lists.infradead.org/pipermail/barebox/2013-April/014182.html > > > > > > Sorry, can you explain what the problem is and how this patch fixes > > > that? > > > How I understood it the problem was that your board had the second chip > > > select enabled without having sdram connected there leading to a wrong > > > size detection. > > ... > > > > + arm_add_mem_device("ram0", MX51_CSD0_BASE_ADDR, size); > > > > > > With this patch you imply that imx_v3_sdram_size does not work which was > > > never mentioned in the thread you reference. > > > > > > Can you please post: > > > > > > - Which values the sdram controller is programmed with > > > - How much memory you really have > > > - what barebox detects > > > > Values for ESDCTL is programmed by DCD-data from flash_header. > > Yes, that happens on most i.MX using DCD data > > > Currently both channels are enabled and configured to 256M. > > Barebox is NOT detect size of memory, it just a read back these values. > > Yes. > > > At least on every i.MX51 this is not works correctly. In any words: > > How much we specify in flash_header, this is our "detected" size. > > Yes. > > > I have a two modules (256M and 512M), > > How is the layout? for 256M do you have a single chipselect with 256M or > two chipselects with 128M each? Single chipselect on 256M module. I.e. second is unused. > Can you please post the output of: > > md 0x83fd9000+0x10 Values exactly same as in flash_header. barebox@ConnectCore i.MX51:/ md 0x83fd9000+0x10 83fd9000: b2a20000 3f3584ab b2a20000 3f3584ab ......5?......5? --- _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox