Image backup apollo Part #6

- Menu option for including kernel/uldr/u-boot in the image backup
- Menu option for creating an image with a different erasesize
  Tank <=> Trinity
This commit is contained in:
Michael Liebmann
2013-09-24 23:22:25 +02:00
parent 9188c78751
commit d00cb6f8ec
10 changed files with 252 additions and 7 deletions

View File

@@ -79,19 +79,40 @@ class CFlashExpert : public CProgressWindow
int showFileSelector(const std::string & actionkey);
bool checkSize(int mtd, std::string &backupFile);
void readmtd(int readmtd);
#ifdef BOXMODEL_APOLLO
bool readDevtableFile(std::string &devtableFile, CMkfsJFFS2::v_devtable_t &v_devtable);
void readmtdJFFS2(std::string &filename);
#endif
public:
#ifdef BOXMODEL_APOLLO
bool forceOtherFilename;
std::string otherFilename;
int createimage_other;
#endif
CFlashExpert();
static CFlashExpert* getInstance();
int exec(CMenuTarget* parent, const std::string & actionKey);
void writemtd(const std::string & filename, int mtdNumber);
void readmtd(int readmtd);
};
#ifdef BOXMODEL_APOLLO
class CFlashExpertSetup : public CMenuTarget
{
private:
int width;
int showMenu();
void readMTDPart(int mtd, const std::string &fileName);
public:
CFlashExpertSetup();
// ~CFlashExpertSetup();
int exec(CMenuTarget* parent, const std::string &actionKey);
};
#endif // BOXMODEL_APOLLO
#endif