From: Wolfgang Denk Date: Fri, 23 May 2003 13:29:29 +0200 Subject: [U-Boot-Users] [patch] MPC8266 March-C memory test In-Reply-To: Your message of "Mon, 19 May 2003 16:26:47 CDT." <9F5558593173D21190EA0008C7B1769873138B@innsys1> Message-ID: <20030523112934.53F2EC6162@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 Dear Rune, in message <9F5558593173D21190EA0008C7B1769873138B@innsys1> you wrote: > > Patch to do full March-C- memory test on the MPC8266ADS board. I hesitate to include this. First, as implemented now the code, while being generic for all boards using 860 class processors, is limited to the MPC8266ADS board. If we implement it, we should make it optional for all these boards. Second, the code duplicates existing functionality (see the memory test code in post/memory.c). Instead of adding new versions of the same stuff again and again (and having to clean it all up later) we rather should get the post/ code working on your board, too. Finally, there are some minor issues with your patch: - there is no README documentation for the new CFG_ variables - there are errors in the code; for example: > +int testdram (void) > +{ > + DECLARE_GLOBAL_DATA_PTR; > + MEMDATATYPE *pstart = (MEMDATATYPE *) CFG_SDRAM_BASE; > + MEMDATATYPE *pend; > + MEMDATATYPE *p; > + uint size; > + uint erraddr; > + pend = (MEMDATATYPE*)gd->ram_size; This should read: pend = pstart + (gd->ram_size / sizeof(MEMDATATYPE)); What do you suggest how to proceed? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de If a train station is a place where a train stops, then what's a workstation?