
Hi TsiChung,
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);
Have you seen this problem? Or has anyone else run into this problem? Or is there something I'm missing?
cheers, Craig
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Liew Tsi Chung-r5aahp Sent: Wednesday, August 01, 2007 9:13 AM To: u-boot-users@lists.sourceforge.net Cc: Stefan Roese; Wilson Callan Subject: [U-Boot-Users] Update for 5329
Stefan,
Here is the updates: 1. Update-CONFIG_MCFUART.patch 2. Added-common-define-CONFIG_CF_MII-for-do_mii.patch 3. Moved-sync-from-m5329evb.c-to-include-asm-m68k-io.patch 4. Added-uart_gpio_conf-for-port-configuration.patch 5. Update-timer.patch 6. Added-fsl_i2c-header-file.patch 7. Added-NAND-Flash-support-and-I2C-support.patch 8. Added-GPIO-enabled-for-I2C-signals.patch
Note: NAND support still partially incomplete, unable to read/write. Erase, bad, markbad, lock, unlock and info seems working.
Thanks,
Regards, TsiChung