Skip to contentSkip to conversation

Erasing 4GB NAND flash

DISCUSSION Felix Radensky 1 participant 1 message Sep 23, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I think there's a problem with the definition of struct mtd_info_user in include/linux/mtd/mtd-abi.h. The "size" field should be defined as __u64, to match the corresponding field in struct mtd_info. Otherwise MEMGETINFO ioctl returns invalid flash size for >= 4GiB devices.

Also, looks like flash_eraseall (and maybe others) should be modified to use MEMERASE64 and MEMWRITEOOB64. Is that correct ?

Felix.