From: Wolfgang Denk Date: Wed, 22 Jun 2005 08:50:57 +0200 Subject: [U-Boot-Users] Question about MPC8272 HRCW In-Reply-To: Your message of "Wed, 22 Jun 2005 00:04:29 +0300." <17080.32989.840476.307428@astp0002.localdomain> Message-ID: <20050622065102.ACED2C1510@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <17080.32989.840476.307428@astp0002.localdomain> you wrote: > ... > Raymond> 0xFE00_0000 = 0x1F00100 > 16M, So if my flash is 8M bytes, > Raymond> i can't use this configuration, right? > > Wrong, read again. You will see your flash in the last 8MB > (FF800000-FFFFFFFF). In fact, you will see it repeating itself four ... > For MONITOR_BASE=TEXT_ADDR=0xFFF00000 you need > CFG_FLASH_BASE=0xFF800000. Check BDI initialisations and set the HRCW to Actually I think that using "CFG_FLASH_BASE=0xFF800000" or similar for a high-boot configuration is not optimal, as it does not adjust automatically for varying flash sizes. Usually I use something like #define CFG_FLASH_BASE (0-flash_info[0].size) or even #define CFG_FLASH_BASE (0-flash_info[0].size-flash_info[1].size) in such cases. Just an idea.... Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... :-) - Larry Wall in <1991Aug7.180856.2854@netlabs.com>