From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ladislav Michl Date: Thu, 28 Jan 2010 00:13:20 +0100 Subject: [U-Boot] CFI numblocks incorrect? Message-ID: <20100127231320.GA18587@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de it seems CFI flash support is somehow broken. mtd->eraseregions is filled as bellow: erase size blocks correct blocks 00004000 01 01 00002000 01 02 00008000 00 01 00010000 0f 0f 'blocks' is actual numblocks field value while 'correct blocks' is expected value. flinfo gives correct results (it is AM29LV800BB). It seems to be related to cfi_mtd_set_erasesize function, but I'm too tired to debug it further. Just reporting in case anyone has time to look at it. Otherwise I'll do so at Friday. Best regards, ladis