From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Ann Date: Thu, 7 Apr 2005 13:33:51 +0900 Subject: [U-Boot-Users] get_ram_size() returns wrong value In-Reply-To: <20050406132028.4AF62C108D@atlas.denx.de> References: <9b7ca65705040605525c3317b5@mail.gmail.com> <20050406132028.4AF62C108D@atlas.denx.de> Message-ID: <9b7ca6570504062133713b09d2@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Apr 6, 2005 10:20 PM, Wolfgang Denk wrote: > Umm.. this seems bogus to me. If the actual size is != MAX_RAM_SIZE > thenyou will have a hole in your mapping; this is not what you want > to do. See the README how to handle such a situation. Okay this sounds rather dumb, but I cant seem to find it anywhere in READMEs. Any hint ? It looks like values that are defined by CFG_BANKx_START are used way before initdram is called. And initdram only configures the end address using the size it got back from get_ram_size. My question is, looking at board/a3000/a3000.c, is it correct to configure ending address of bank0 only ? -- Daniel