mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
system/flashtool.cpp: add bad block skip for read/write/erase in case of NAND
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user