[U-Boot-Users] Re: problems with the strataflash driver in U-boot
Josh Fryman
fryman at cc.gatech.edu
Mon Feb 16 01:46:47 CET 2004
no dice. here's the configuration in chip terms, followed by my config
settings, followed by the driver ouput.
suggestions?
-josh
two banks. each bank is 32bit data, 32MB in size, made up of 2 chips in
parallel. each chip is 16MB x 16bit data, organized as (128) 128KB
sectors.
wiring: 0-32MB = 2x Intel 28F128J3A-150
address space 0x0000 0000 - 0200 0000
Shared: Flash A0 = Gnd
Flash A1:A23 = PXA A2:24
Flash CE = PXA FlashBank 0 CE
Separate: Chip A: D00:15 = PXA D00:15
Chip B: D16:31 = PXA D16:31
address space 0x0200 0000 - 0400 0000
Shared: Flash A0 = Gnd
Flash A1:A23 = PXA A2:24
Flash CE = PXA FlashBank 1 CE
Separate: Chip A: D00:15 = PXA D00:15
Chip B: D16:31 = PXA D16:31
config flags:
/*
* FLASH and environment organization
*/
#define CFG_MAX_FLASH_BANKS 2
#define CFG_MAX_FLASH_SECT 256
#define PHYS_FLASH_1 0x00000000
#define PHYS_FLASH_SECT_SIZE 0x00040000 /* 128 KB sectors, but x2 (2chips) */
#define CFG_MONITOR_LEN 0x00040000 /* set aside space for U-boot */
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_ADDR (PHYS_FLASH_1 + 0x03f00000)
#define CFG_ENV_SIZE PHYS_FLASH_SECT_SIZE
#define CFG_FLASH_BASE PHYS_FLASH_1
#define CFG_FLASH_USE_BUFFER_WRITE
#define CFG_FLASH_CFI
#define CFG_FLASH_CFI_DRIVER
#define CFG_MONITOR_BASE CFG_FLASH_BASE /* where does the monitor live? */
output on hardware:
U-Boot 1.0.2 (Feb 15 2004 - 19:37:14)
U-Boot code: A1FE0000 -> A200A798 BSS: -> A203EE88
RAM Configuration:
Bank #0: a1ffaf2c 2592 MB
flash detect cfi
fwc addr 00000000 cmd ff ff 8bit x 8 bit
fwc addr 00000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 00000010 is= 14 51
fwc addr 00000000 cmd ff ffff 16bit x 8 bit
fwc addr 000000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 00000020 is= 0260 5151
fwc addr 00000000 cmd ff ff00 16bit x 16 bit
fwc addr 000000aa cmd 98 9800 16bit x 16 bit
is= cmd 51(Q) addr 00000020 is= 0260 5100
fwc addr 00000000 cmd ff ffffffff 32bit x 8 bit
fwc addr 00000154 cmd 98 98989898 32bit x 8 bit
is= cmd 51(Q) addr 00000040 is= 00510051 51515151
fwc addr 00000000 cmd ff ff00ff00 32bit x 16 bit
fwc addr 00000154 cmd 98 98009800 32bit x 16 bit
is= cmd 51(Q) addr 00000040 is= a1fe0000 51005100
fwc addr 00000000 cmd ff ff000000 32bit x 32 bit
fwc addr 00000154 cmd 98 98000000 32bit x 32 bit
is= cmd 51(Q) addr 00000040 is= a1fe0000 51000000
fwrite addr 00000000 cmd ff ffffffffffffffff 64 bit x 8 bit
fwrite addr 000002a8 cmd 98 9898989898989898 64 bit x 8 bit
is= cmd 51(Q) addr 00000080 is= 070007000a000a00 5151515151515151
fwrite addr 00000000 cmd ff 00ff00ff00ff00ff 64 bit x 16 bit
fwrite addr 000002a8 cmd 98 0098009800980098 64 bit x 16 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0051005100510051
fwrite addr 00000000 cmd ff 000000ff000000ff 64 bit x 32 bit
fwrite addr 000002a8 cmd 98 0000009800000098 64 bit x 32 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0000005100000051
fwrite addr 00000000 cmd ff 00000000000000ff 64 bit x 64 bit
fwrite addr 000002a8 cmd 98 0000000000000098 64 bit x 64 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0000000000000051
not found
## Unknown FLASH on Bank 0 - Size = 0x00000000 = 0 MB
flash detect cfi
fwc addr 00000000 cmd ff ff 8bit x 8 bit
fwc addr 00000055 cmd 98 98 8bit x 8 bit
is= cmd 51(Q) addr 00000010 is= 14 51
fwc addr 00000000 cmd ff ffff 16bit x 8 bit
fwc addr 000000aa cmd 98 9898 16bit x 8 bit
is= cmd 51(Q) addr 00000020 is= 0260 5151
fwc addr 00000000 cmd ff ff00 16bit x 16 bit
fwc addr 000000aa cmd 98 9800 16bit x 16 bit
is= cmd 51(Q) addr 00000020 is= 0260 5100
fwc addr 00000000 cmd ff ffffffff 32bit x 8 bit
fwc addr 00000154 cmd 98 98989898 32bit x 8 bit
is= cmd 51(Q) addr 00000040 is= 00510051 51515151
fwc addr 00000000 cmd ff ff00ff00 32bit x 16 bit
fwc addr 00000154 cmd 98 98009800 32bit x 16 bit
is= cmd 51(Q) addr 00000040 is= a1fe0000 51005100
fwc addr 00000000 cmd ff ff000000 32bit x 32 bit
fwc addr 00000154 cmd 98 98000000 32bit x 32 bit
is= cmd 51(Q) addr 00000040 is= a1fe0000 51000000
fwrite addr 00000000 cmd ff ffffffffffffffff 64 bit x 8 bit
fwrite addr 000002a8 cmd 98 9898989898989898 64 bit x 8 bit
is= cmd 51(Q) addr 00000080 is= 070007000a000a00 5151515151515151
fwrite addr 00000000 cmd ff 00ff00ff00ff00ff 64 bit x 16 bit
fwrite addr 000002a8 cmd 98 0098009800980098 64 bit x 16 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0051005100510051
fwrite addr 00000000 cmd ff 000000ff000000ff 64 bit x 32 bit
fwrite addr 000002a8 cmd 98 0000009800000098 64 bit x 32 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0000005100000051
fwrite addr 00000000 cmd ff 00000000000000ff 64 bit x 64 bit
fwrite addr 000002a8 cmd 98 0000000000000098 64 bit x 64 bit
is= cmd 51(Q) addr 00000080 is= 9c649fe5005096e5 0000000000000051
not found
## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
Flash: 0 kB
*** Warning - bad CRC, using default environment
More information about the U-Boot
mailing list