1303 files changed, 32187 insertions, 57138 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c index bf9b739..2a9bd6c 100644 --- a/miscutils/flash_eraseall.c +++ b/miscutils/flash_eraseall.c @@ -9,6 +9,16 @@ * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ +//config:config FLASH_ERASEALL +//config: bool "flash_eraseall" +//config: default n # doesn't build on Ubuntu 8.04 +//config: help +//config: The flash_eraseall binary from mtd-utils as of git head c4c6a59eb. +//config: This utility is used to erase the whole MTD device. + +//applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) + +//kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o //usage:#define flash_eraseall_trivial_usage //usage: "[-jNq] MTD_DEVICE" @@ -147,7 +157,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv) ret = ioctl(fd, MEMGETBADBLOCK, &offset); if (ret > 0) { if (!(flags & OPTION_Q)) - bb_info_msg("\nSkipping bad block at 0x%08x", erase.start); + printf("\nSkipping bad block at 0x%08x\n", erase.start); continue; } if (ret < 0) { |