Problem in chip detection.

Snehaprabha nsnehaprabha at tnint11.telogy.design.ti.com
Sat May 25 20:22:46 EDT 2002


Hi,

I have a board with 32MB flash - (2 chips - x16) Intel E28F640J3A.
with a buswidth of 32 bits. I am running linux kernel version 2.4.17. 
I have a problem; It looks like only one chip gets detected properly, and
the second one gets detected as an alias. So my mtd device shows follwing
details.

dev:    size   erasesize  name
mtd0: 01000000 00040000 "Physically mapped flash"

Note that the actual size is 32MB, but the size shown by "mtd0" is only 
16MB, is of one chip.

Here is my configuration:
CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=3
# CONFIG_MTD_PARTITIONS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set

CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_CFI_B1 is not set
# CONFIG_MTD_CFI_B2 is not set
CONFIG_MTD_CFI_B4=y
# CONFIG_MTD_CFI_B8 is not set
 # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_CFI_B1 is not set
# CONFIG_MTD_CFI_B2 is not set
CONFIG_MTD_CFI_B4=y
# CONFIG_MTD_CFI_B8 is not set
# CONFIG_MTD_CFI_I1 is not set
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
CONFIG_MTD_CFI_INTELEXT=y
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
# CONFIG_MTD_AMDSTD is not set
# CONFIG_MTD_SHARP is not set
# CONFIG_MTD_JEDEC is not set

CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=10000000
CONFIG_MTD_PHYSMAP_LEN=2000000
CONFIG_MTD_PHYSMAP_BUSWIDTH=4
# CONFIG_MTD_CSTM_MIPS_IXX is not set
# CONFIG_MTD_PB1000 is not set
# CONFIG_MTD_PB1500 is not set
# CONFIG_MTD_OCELOT is not set
# CONFIG_MTD_PCI is not set

Here is my console dump : 
...
physmap flash device: 200000 at 10000000.
Number of erase regions: 1
Primary Vendor Command Set 0001 (Intel/Sharp Extended)
Primary lgorithm Table at 0031
Alternative Vndor Command Set: 0000 (None)
No Altrnate Algorithm Table
Vcc Minimum: 27 V
Vcc Maximum: 3.6 V
No Vpp line
Typical byte/word write timeout: 128 s
Maximum byte/word write timeout: 248 µs
Typical full buffer write timeut: 128 µs
Maximum full buffer writetimeout: 2048 µs
Typical block erasetimeout: 1024 µs
Maximum block erasetimeout: 16384 µs
Chip erase not supprted
Device size: 0x800000 bytes (8 iB)
Flash Device Interface descriptin: 0x0002
  - supports x8 and x16 vi BYTE# with asynchronous interface
Mx. bytes in buffer write: 0x20
Numberof Erase Block Regions: 1
  Erase Region #0: BlockSize 0x20000 bytes, 64 blocks
mtd: Giving out device 0 to Physically mapped flash
...


Please help me.
Thanks
SP




More information about the linux-mtd mailing list