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

This commit is contained in:
[CST] Focus
2013-01-29 14:23:50 +04:00
parent d591e90395
commit e739868e7c
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: