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

Origin commit data
------------------
Branch: ni/coolstream
Commit: e739868e7c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-29 (Tue, 29 Jan 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-01-29 14:23:50 +04:00
parent 7f9de3998d
commit a916394176
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: