[U-Boot] Spansion S29JL032H and detecting problem
Roman Mashak
romez777 at gmail.com
Fri Dec 12 08:29:29 CET 2008
Hello
I'm porting U-Boot on ARM926EJ-S based board, which has one NOR flash
(specified in the subject line). For debug purpose I compiled U-Boot
to run from RAM via JTAG; therefore the configuration of flash is as
follows:
#define CFG_FLASH_BASE 0x2C000000
#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define CFG_MAX_FLASH_SECT (71)
As per http://www.spansion.com/datasheets/S29JL032H_00_B7_e.pdf
datasheet this chip contains 71 sectors and is CFI compliant.
Unfortunately U-Boot seems unable to detect this flash chip and
freezes eventually; here is the log:
U-Boot 1.3.4 (Dec 12 2008 - 15:46:25)
U-Boot code: 01000000 -> 0101F62C BSS: -> 01020B38
RAM Configuration:
Bank #0: 00000000 16 MB
flash detect cfi
fwc addr 2c000000 cmd f0 f0 8bit x 8 bit
fwc addr 2c000000 cmd ff ff 8bit x 8 bit
fwc addr 2c000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 2c000010 is= ea 51
fwc addr 2c000555 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 2c000010 is= ea 51
fwc addr 2c000000 cmd f0 f0f0 16bit x 8 bit
fwc addr 2c000000 cmd ff ffff 16bit x 8 bit
fwc addr 2c0000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 2c000020 is= 0051 5151
fwc addr 2c000aaa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 2c000020 is= 0051 5151
fwc addr 2c000000 cmd f0 00f0 16bit x 16 bit
fwc addr 2c000000 cmd ff 00ff 16bit x 16 bit
fwc addr 2c0000aa cmd 98 0098 16bit x 16 bit
is= cmd 51(Q) addr 2c000020 is= 0051 0051
is= cmd 52(R) addr 2c000022 is= 0052 0052
is= cmd 59(Y) addr 2c000024 is= 0059 0059
device interface is 2
found port 2 chip 2 port 16 bits chip 16 bits
00 : 51 52 59 02 00 40 00 00 00 00 00 27 36 00 00 03 QRY.. at .....'6...
10 : 00 09 00 05 00 04 00 16 02 00 00 00 02 07 00 20 ...............
20 : 00 3e 00 00 01 00 00 00 00 00 00 00 00 01 01 f6 .>..............
fwc addr 2c000000 cmd f0 00f0 16bit x 16 bit
fwc addr 2c000aaa cmd aa 00aa 16bit x 16 bit
fwc addr 2c000554 cmd 55 0055 16bit x 16 bit
fwc addr 2c000aaa cmd 90 0090 16bit x 16 bit
Does this indicate the problem with sectors number or this chip is not
supported by CFI drive?
Thanks.
--
Roman Mashak
More information about the U-Boot
mailing list