I am curently working on to include to MTD support for a mips based
platform. I am using Intel Starta flash TE28F128J3 ( 16 MB ) and it
used in 16 bit mode.
Physical address of the flash = 0x1c000000
Size = 0x1000000
When I included the MTD support through the menuconfig and enabled the
debug level 3, I am getting the following messages.
I am able to create the device using mknod /dev/mtd0 c 90 0.
Even though the debug output looks fine ( pl correct me if I am worng
) , it looks to me that the cfi commands are not getting into the
flash. Because the base address is 0x0. The base address is used for
sending commands to the flash. It is referenced in the file
variable name: __u32 base = cfi->chips.start
Should this base address be other than 0?
Please let me know ?
Also do let me know if I need to apply patches for the 2.6.6 kernel
for the MTD support?
Looking forward to hear from you.
/************** Debug console output *********************/
:Alternative Vendor Command Set: 0000 (None)
0:No Alternate Algorithm Table
0:Vcc Minimum: 2.7 V
0:Vcc Maximum: 3.6 V
0:No Vpp line
0:Typical byte/word write timeout: 256 ^[%/1Â~@Â~Liso8859-15^BÂµs
0:Maximum byte/word write timeout: 1024 ^[%/1Â~@Â~Liso8859-15^BÂµs
0:Typical full buffer write timeout: 256 ^[%/1Â~@Â~Liso8859-15^BÂµs
0:Maximum full buffer write timeout: 1024 ^[%/1Â~@Â~Liso8859-15^BÂµs
0:Typical block erase timeout: 2048 ms
0:Maximum block erase timeout: 16384 ms
0:Chip erase not supported
0:Device size: 0x1000000 bytes (16 MiB)
0:Flash Device Interface description: 0x0002
0: - supports x8 and x16 via BYTE# with asynchronous interface
0:Max. bytes in buffer write: 0x20
0:Number of Erase Block Regions: 1
0: Erase Region #0: BlockSize 0x20000 bytes, 128 blocks
0: Feature/Command Support: 00CE
0: - Chip Erase: unsupported
0: - Suspend Erase: supported
0: - Suspend Program: supported
0: - Legacy Lock/Unlock: supported
0: - Queued Erase: unsupported
0: - Instant block lock: unsupported
0: - Protection Bits: supported
0: - Page-mode read: supported
0: - Synchronous read: unsupported
0: Supported functions after Suspend: 01
0: - Program after Erase Suspend: supported
Vcc Logic Supply Optimum Program/Erase Voltage: 0.3 V
0:<5>cfi_cmdset_0001: Erase suspend on write enabled
0:<7>number of CFI chips: 1
0:<6>Using buffer write method
0:<5>cmdlinepart partition parsing not available
0:<5>RedBoot partition parsing not available
0:<6>mtd: Giving out device 0 to Physically mapped flash