nand-utils: add flash_erase utility

flash_erase utility allows to erase MTD partitions on NAND flash.
Useful when you want to clean or write an MTD partition from scratch.

e.g., before using kobs-ng to flashing SPL images it's recommended
to erase the MTD partition to ensure it's empty.

Signed-off-by: Adrià Llaudet <adria.llaudet@gmail.com>
This commit is contained in:
Adrià Llaudet 2018-03-26 16:32:22 +02:00 committed by Hauke Mehrtens
parent d674422a81
commit 482bc646a5

View file

@ -47,7 +47,7 @@ endef
define Package/nand-utils define Package/nand-utils
$(call Package/mtd-utils/Default) $(call Package/mtd-utils/Default)
TITLE:=Utilities for nand flash read/write/test TITLE:=Utilities for nand flash erase/read/write/test
endef endef
define Package/nand-utils/description define Package/nand-utils/description
@ -72,7 +72,7 @@ endef
define Package/nand-utils/install define Package/nand-utils/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) \ $(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/sbin/{nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/ $(PKG_INSTALL_DIR)/usr/sbin/{flash_erase,nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/
endef endef
$(eval $(call BuildPackage,ubi-utils)) $(eval $(call BuildPackage,ubi-utils))