mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
gui/update_ext.cpp: return error, if sysfs not found;
hack mtd size for apollo
Origin commit data
------------------
Commit: ad48ffd99c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-06-18 (Tue, 18 Jun 2013)
This commit is contained in:
@@ -202,7 +202,14 @@ bool CExtUpdate::applySettings()
|
|||||||
|
|
||||||
CMTDInfo * mtdInfo = CMTDInfo::getInstance();
|
CMTDInfo * mtdInfo = CMTDInfo::getInstance();
|
||||||
std::string mtdFilename = mtdInfo->findMTDsystem(); // /dev/mtdX
|
std::string mtdFilename = mtdInfo->findMTDsystem(); // /dev/mtdX
|
||||||
|
if (mtdFilename.empty())
|
||||||
|
return ErrorReset(0, "error system mtd not found");
|
||||||
|
|
||||||
|
#ifdef BOXMODEL_APOLLO
|
||||||
|
int mtdSize = 65536*1024; // FIXME hack, mtd size more than free RAM
|
||||||
|
#else
|
||||||
int mtdSize = mtdInfo->getMTDSize(mtdFilename);
|
int mtdSize = mtdInfo->getMTDSize(mtdFilename);
|
||||||
|
#endif
|
||||||
int mtdEraseSize = mtdInfo->getMTDEraseSize(mtdFilename);
|
int mtdEraseSize = mtdInfo->getMTDEraseSize(mtdFilename);
|
||||||
mtdNumber = mtdInfo->findMTDNumber(mtdFilename);
|
mtdNumber = mtdInfo->findMTDNumber(mtdFilename);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user