mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
gui/update.cpp: download different image for different system fs erase size
This commit is contained in:
@@ -260,6 +260,15 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
newVersion = versions[selected];
|
newVersion = versions[selected];
|
||||||
file_md5 = md5s[selected];
|
file_md5 = md5s[selected];
|
||||||
fileType = fileTypes[selected];
|
fileType = fileTypes[selected];
|
||||||
|
#ifdef BOXMODEL_APOLLO
|
||||||
|
if(fileType < '3') {
|
||||||
|
int esize = CMTDInfo::getInstance()->getMTDEraseSize(sysfs);
|
||||||
|
printf("[update] erase size is %x\n", esize);
|
||||||
|
if (esize == 0x40000) {
|
||||||
|
filename += ".256k";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("[update] filename %s type %c newVersion %s md5 %s\n", filename.c_str(), fileType, newVersion.c_str(), file_md5.c_str());
|
printf("[update] filename %s type %c newVersion %s md5 %s\n", filename.c_str(), fileType, newVersion.c_str(), file_md5.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user