Flash appears to be ROM, readonly.
dross at iders.ca
Wed Feb 13 11:41:16 EST 2002
I'm running the mtd_debug.c app, and when I use the
"info" switch, I get the following:
mtd.type = MTD_ROM
mtd.flags = MTD_CAP_ROM
mtd.size = 8388608 (8M)
mtd.erasesize = 65536 (64K)
mtd.oobblock = 0
mtd.oobsize = 0
mtd.ecctype = MTD_ECC_NONE
regions = 0
If I try to write or erase a sector, the app immediately
exits as soon as it tries to open the file discriptor
with O_RDWR flag set.
If I run a "cat /proc/mtd" I get:
dev: size erasesize name
mtd0: 00800000 00010000 "flash"
mtd1: 0000c000 00000010 "SRAM"
mtd2: 00000080 00010000 "BootROM"
The hardware details are:
CDB89712 (rev B) development board.
Flash TE28F320 B Jedec, not CFI
Will later be using C for final product, which is CFI
Kernel is 2.4.6-rmk1-rayl1, and we also have 2.4.16-rmk2
We can upgrade mtd drivers if necessary.
More information about the linux-mtd