[U-Boot] Question about M29W128G CFI QRY bug

Richard Retanubun RichardRetanubun at RuggedCom.com
Mon Apr 13 17:35:26 CEST 2009


Hi Stefan,

As a follow up, This hack seems to fix the issue.

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 631b969..d386143 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -1691,7 +1691,7 @@ static int __flash_detect_cfi (flash_info_t * info, struct cfi_qry *qry)
            the reset command in both Intel and AMD variants, in the hope
            that AMD flash roms ignore the Intel command. */
         flash_write_cmd (info, 0, 0, AMD_CMD_RESET);
-       flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);
+       //flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);

         for (cfi_offset=0;
              cfi_offset < sizeof(flash_offset_cfi) / sizeof(uint);


I don't like it because removes support for the Intel command set, no?
Looks like "the hope" is now dashed by the M29W128G.

Any recommendation on how to proceed?

Thanks for your time.

Richard


More information about the U-Boot mailing list