<div style="direction: ltr;">Hello,<br>Forwarding again since the initial mail didn&#39;t reach the mailing list.<br><br>I have a spansion flash (S71WS256ND0BFWEP) on my board (Freescale imx31<br>ADS).I use CFI driver with the below configuration. But I get the
<br>following error(debug message). Could someone help me to resolve the<br>problem.<br><br>#define CFG_FLASH_BASE 0xa0000000<br>#define CFG_MAX_FLASH_BANKS 1<br>#define CFG_MAX_FLASH_SECT 128<br>#define CFG_FLASH_CFI 1<br>

#define CFG_FLASH_CFI_DRIVER 1<br>#define CFG_FLASH_USE_BUFFER_WRITE 1<br><br><br><br><br>U-Boot 1.2.0 (Apr 17 2007 - 18:43:30)<br><br>U-Boot code: 87F00000 -&gt; 87F1BD48 &nbsp;BSS: -&gt; 87F22370<br>CPU: Freescale i.MX31 at 398 MHz
<br>Board: i.MX31 Litekit<br>RAM Configuration:<br>Bank #0: 80000000 128 MB<br>flash detect cfi<br>fwc addr a0000000 cmd 0 0 8bit x 8 bit<br>fwc addr a0000055 cmd 98 98 8bit x 8 bit<br>is= cmd 51(Q) addr a0000010 is= 14 51
<br>fwc addr a0000555 cmd 98 98 8bit x 8 bit<br>is= cmd 51(Q) addr a0000010 is= 14 51<br>fwc addr a0000000 cmd 0 0000 16bit x 8 bit<br>fwc addr a00000aa cmd 98 9898 16bit x 8 bit<br>is= cmd 51(Q) addr a0000020 is= 0100 5151
<br>fwc addr a0000aaa cmd 98 9898 16bit x 8 bit<br>is= cmd 51(Q) addr a0000020 is= 0051 5151<br>fwc addr a0000000 cmd 0 0000 16bit x 16 bit<br>fwc addr a00000aa cmd 98 0098 16bit x 16 bit<br>is= cmd 51(Q) addr a0000020 is= 0100 0051
<br>fwc addr a0000aaa cmd 98 0098 16bit x 16 bit<br>is= cmd 51(Q) addr a0000020 is= 0051 0051<br>is= cmd 52(R) addr a0000022 is= 0052 0052<br>is= cmd 59(Y) addr a0000024 is= 0059 0059<br>ushort addr is at a0000050 info-&gt;portwidth = 2
<br>addr[0] = 0x1<br>addr[1] = 0x0<br>addr[2] = 0x0<br>addr[3] = 0x0<br>retval = 0x1<br>device interface is 1<br>found port 2 chip 2 port 16 bits chip 16 bits<br>ushort addr is at a0000026 info-&gt;portwidth = 2<br>addr[0] = 0x2
<br>addr[1] = 0x0<br>addr[2] = 0x0<br>addr[3] = 0x0<br>retval = 0x2<br>fwc addr a0000000 cmd f0 00f0 16bit x 16 bit<br>fwc addr a0000aaa cmd aa 00aa 16bit x 16 bit<br>fwc addr a0000554 cmd 55 0055 16bit x 16 bit<br>fwc addr a0000aaa cmd 90 0090 16bit x 16 bit
<br>fwc addr a0000000 cmd f0 00f0 16bit x 16 bit<br>fwc addr a0000aaa cmd 98 0098 16bit x 16 bit<br>ushort addr is at a000002a info-&gt;portwidth = 2<br>addr[0] = 0x40<br>addr[1] = 0x0<br>addr[2] = 0x0<br>addr[3] = 0x0<br>

retval = 0x40<br>a0000020 : 51 00 52 00 59 00 02 00 00 00 40 00 00 00 00 00<br>Q.R.Y.....@.....<br>a0000030 : 00 00 00 00 00 00 17 00 19 00 00 00 00 00 06<br>00 &nbsp;................<br>a0000040 : 09 00 0a 00 00 00 04 00 04 00 03 00 00 00 19
<br>00 &nbsp;................<br>a0000050 : 01 00 00 00 06 00 00 00 03 00 03 00 00 00 80<br>00 &nbsp;................<br>a0000060 : 00 00 fd 00 00 00 00 00 02 00 03 00 00 00 80<br>00 &nbsp;................<br>a0000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
<br>00 &nbsp;................<br>a0000080 : 50 00 52 00 49 00 31 00 34 00 10 00 02 00 01 00<br>P.R.I.1.4.......<br>a0000090 : 00 00 08 00 f3 00 01 00 00 00 85 00 95 00 01<br>00 &nbsp;................<br>manufacturer is 2<br>manufacturer id is 0x1
<br>device id is 0x7e<br>device id2 is 0x3000<br>cfi version is 0x3134<br>size_ratio 1 port 16 bits chip 16 bits<br>found 3 erase regions<br>long addr is at a000005a info-&gt;portwidth = 2<br>addr[0] = 0x3<br>addr[1] = 0x0
<br>addr[2] = 0x0<br>addr[3] = 0x0<br>addr[4] = 0x80<br>addr[5] = 0x0<br>addr[6] = 0x0<br>addr[7] = 0x0<br>erase_region_count = 4 erase_region_size = 32768<br>long addr is at a0000062 info-&gt;portwidth = 2<br>addr[0] = 0xfd
<br>addr[1] = 0x0<br>addr[2] = 0x0<br>addr[3] = 0x0<br>addr[4] = 0x0<br>addr[5] = 0x0<br>addr[6] = 0x2<br>addr[7] = 0x0<br>erase_region_count = 254 erase_region_size = 131072<br>long addr is at a0000000 info-&gt;portwidth = 0
<br>erase_region_count = 65536 erase_region_size = 16776960<br>ushort addr is at a0000000 info-&gt;portwidth = 0<br>retval = 0xffff<br>Flash Size is 0<br>flash_protect ON: from 0xA0000000 to 0xA001BD47<br>flash_protect ON: from 0xA01F0000 to 0xA01FFFFF
<br>Flash: &nbsp;0 kB<br>*** Warning - bad CRC, using default environment<br><br>In: &nbsp; &nbsp;serial<br>Out: &nbsp; serial<br>Err: &nbsp; serial<br>### Set environment from HW MAC addr = &quot;00:04:9F:00:0E:B0&quot;<br>### main_loop entered: bootdelay=3
<br><br>### main_loop: bootcmd=&quot;run bootcmd_net&quot;<br>Hit any key to stop autoboot: &nbsp;0<br>uboot&gt;<br><br>Thanks,<br></div><span>Shiju</span>