summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallmpio.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
index d6db46f0ae..97e96678c9 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallmpio.cpp
@@ -67,7 +67,8 @@ void BootloaderInstallMpio::installStage2(void)
67 QString bootfile = m_tempfile.fileName(); 67 QString bootfile = m_tempfile.fileName();
68 m_tempfile.close(); 68 m_tempfile.close();
69 69
70 int ret = mkmpioboot(m_offile.toLocal8Bit().data(), bootfile.toLocal8Bit().data(), m_blfile.toLocal8Bit().data(), origin); 70 int ret = mkmpioboot(m_offile.toLocal8Bit().data(),
71 bootfile.toLocal8Bit().data(), m_blfile.toLocal8Bit().data(), origin);
71 72
72 if(ret != 0) 73 if(ret != 0)
73 { 74 {
@@ -81,7 +82,7 @@ void BootloaderInstallMpio::installStage2(void)
81 error = tr("Could not read the original firmware."); 82 error = tr("Could not read the original firmware.");
82 break; 83 break;
83 case -3: 84 case -3:
84 error = tr("Loaded firmware file does not look like MPIO OF file."); 85 error = tr("Loaded firmware file does not look like MPIO original firmware file.");
85 break; 86 break;
86 case -4: 87 case -4:
87 error = tr("Could not open downloaded bootloader."); 88 error = tr("Could not open downloaded bootloader.");
@@ -96,13 +97,13 @@ void BootloaderInstallMpio::installStage2(void)
96 error = tr("Bootloader checksum error."); 97 error = tr("Bootloader checksum error.");
97 break; 98 break;
98 case -8: 99 case -8:
99 error = tr("Could not open outputfile."); 100 error = tr("Could not open output file.");
100 break; 101 break;
101 case -9: 102 case -9:
102 error = tr("Could not write outputfile."); 103 error = tr("Could not write output file.");
103 break; 104 break;
104 default: 105 default:
105 error = tr("Unknown errornumber: %1").arg(ret); 106 error = tr("Unknown error number: %1").arg(ret);
106 break; 107 break;
107 } 108 }
108 109
@@ -113,7 +114,7 @@ void BootloaderInstallMpio::installStage2(void)
113 } 114 }
114 115
115 //end of install 116 //end of install
116 qDebug() << "[BootloaderInstallMpio] install successfull"; 117 qDebug() << "[BootloaderInstallMpio] install successful";
117 emit logItem(tr("Success: modified firmware file created"), LOGINFO); 118 emit logItem(tr("Success: modified firmware file created"), LOGINFO);
118 logInstall(LogAdd); 119 logInstall(LogAdd);
119 emit done(false); 120 emit done(false);