]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: flash_erase: Add an option for JFFS2 cleanmarker size
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Tue, 7 Nov 2023 09:23:57 +0000 (18:23 +0900)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 13 Nov 2023 08:03:00 +0000 (09:03 +0100)
commit71edfe3b5a51ea9a7fac9760804db328ea1ec8a0
tree62f9cb8815e5d72799e3b8a72a8d810d9b31e381
parentaaa77f94ce6e03d9730f62004347ec2bbf11cfb1
mtd-utils: flash_erase: Add an option for JFFS2 cleanmarker size

JFFS2 supports buffer mode for ECC'd NOR Flash that cleanmarker size
is rounded up to mtd->writesize, while the '-j' option in flash_erase
utility uses fixed 12 bytes. That makes flash program ops unaligned to
mtd->writesize and causes program error or disables ECC.

The mkfs.jffs2 utility supports '-c' option that allows users to specify
cleanmarker size. This patch implements '-c' option in the flash_erase
that can be used along with '-j' option.

Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/flash_erase.c