The FAT file system operates on sectors (pages), so use the new mtd_write_page() and mtd_read_page() functions. This also avoids the wrap-around after reading/writing past 4 GiB.
The FAT file system operates on sectors (pages), so use the new mtd_write_page() and mtd_read_page() functions. This also avoids the wrap-around after reading/writing past 4 GiB.