summaryrefslogtreecommitdiff
path: root/nand-utils/nandwrite.c
diff options
context:
space:
mode:
authorXiaolei Li <xiaolei.li@mediatek.com>2018-04-10 15:36:55 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2018-04-10 15:38:56 +0200
commita10353584f93334b5687c598a15260c0fc5b8d3e (patch)
treecb2916f76ba8c9cbe131b7cf632027891f94d964 /nand-utils/nandwrite.c
parent044ed4c0dd788f980a3a1a6fc6bf855a239f12e5 (diff)
libmtd: Add support to access OOB available size
This patch exposes OOB available size to user. Then user can use OOB free area according to OOB available size. Steps to get OOB available size: First, access /sys/class/mtd/mtdX/oobavail. If not exist, then try to get ecc layout by ioctl "ECCGETLAYOUT". If none of them work, set OOB available size to 0. Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'nand-utils/nandwrite.c')
0 files changed, 0 insertions, 0 deletions