system/flashtool.cpp: add bad block skip for read/write/erase in case of NAND

Origin commit data
------------------
Commit: e739868e7c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-29 (Tue, 29 Jan 2013)
This commit is contained in:
[CST] Focus
2013-01-29 14:23:50 +04:00
parent 83a2a9b5b1
commit beef75007f
2 changed files with 151 additions and 100 deletions

View File

@@ -37,7 +37,7 @@
#include <string>
#include <vector>
#include <mtd/mtd-user.h>
class CFlashTool
{
@@ -47,6 +47,11 @@ class CFlashTool
std::string mtdDevice;
std::string ErrorMessage;
int fd;
mtd_info_t meminfo;
bool isnand;
bool getInfo();
bool erase(int globalProgressEnd=-1);
public: