diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index f1d1a19de..1d4786889 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -23,6 +23,7 @@ ****************************************************************************/ #include +#include #include #include @@ -296,7 +297,15 @@ out: static int fastboot_flash_erase(int fd) { - return OK; + int ret; + + ret = ioctl(fd, MTDIOC_BULKERASE, 0); + if (ret < 0) + { + printf("Erase device failed\n"); + } + + return ret; } static int