summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallmpio.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallmpio.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
index 97e96678c9..52a6f351f1 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
@@ -45,31 +45,31 @@ bool BootloaderInstallMpio::install(void)
{
if(m_offile.isEmpty())
return false;
-
+
qDebug() << "[BootloaderInstallMpio] installing bootloader";
-
+
// download firmware from server
emit logItem(tr("Downloading bootloader file"), LOGINFO);
-
+
connect(this, SIGNAL(downloadDone()), this, SLOT(installStage2()));
downloadBlStart(m_blurl);
-
+
return true;
}
void BootloaderInstallMpio::installStage2(void)
-{
+{
qDebug() << "[BootloaderInstallMpio] installStage2";
-
+
int origin = 0xe0000; /* MPIO HD200 bootloader address */
-
+
m_tempfile.open();
QString bootfile = m_tempfile.fileName();
m_tempfile.close();
-
+
int ret = mkmpioboot(m_offile.toLocal8Bit().data(),
bootfile.toLocal8Bit().data(), m_blfile.toLocal8Bit().data(), origin);
-
+
if(ret != 0)
{
QString error;
@@ -106,13 +106,13 @@ void BootloaderInstallMpio::installStage2(void)
error = tr("Unknown error number: %1").arg(ret);
break;
}
-
- qDebug() << tr("Patching original firmware failed: %1").arg(error);
+
+ qDebug() << "[BootloaderInstallMpio] Patching original firmware failed:" << error;
emit logItem(tr("Patching original firmware failed: %1").arg(error), LOGERROR);
emit done(true);
return;
}
-
+
//end of install
qDebug() << "[BootloaderInstallMpio] install successful";
emit logItem(tr("Success: modified firmware file created"), LOGINFO);