From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 2 Aug 2007 07:23:21 +0200 Subject: [U-Boot-Users] Update for 5329 In-Reply-To: <02fb01c7d461$677fbf50$1a0510ac@CRAIG> References: <4791E710007FEB4BBF83775D787F462F04934CBB@az33exm22.fsl.freescale.net> <02fb01c7d461$677fbf50$1a0510ac@CRAIG> Message-ID: <200708020723.21431.sr@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 Hi Craig, On Wednesday 01 August 2007, Craig Day wrote: > I've ported u-boot 1.1.6 over to the LPC3180 (arm926ejs core) and have > included NAND support. The nand_write_ecc function in > drivers/nand/nand_base.c appears to be writing pages correctly, but the > pointer to the source data in memory for nand_verify_pages does not seem to > be updated correctly. Specifically, line 1707 in nand_base.c contains: > this->data_poi = bufstart; However, the problem is that bufstart is never > updated, and always points to the beginning of the data source, causing all > nand_page_verify calls to compare the newest written pages in NAND flash to > the beginning of the data source. After the first block NAND writing fails > due to nand_verify_pages failing. To fix this I added in: > bufstart += (1 << this->phys_erase_shift); Thanks for the detailed explanation. But even better would be to send a patch (best with a signed-off line etc.). A patch sometimes explains a problem betten than such an explanation. And if you are correct and it fixes a real problem, the patch could be applied directly. > Have you seen this problem? Or has anyone else run into this problem? Or is > there something I'm missing? We are using the current NAND driver successfully on multiple boards. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================