Erasing 4GB NAND flash

Felix Radensky felix at embedded-sol.com
Wed Sep 23 06:39:15 EDT 2009


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.



More information about the linux-mtd mailing list