From 5d2692375d32f7cd2c87d94c1f2b0ee62840765b Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Sat, 14 Sep 2024 14:34:21 -0500 Subject: rbutil: Add erosqnative - Give each brand its own entry, and make ranges of OF versions correspond to hardware changes. - Temporarily disabled target aigoerosq. - Post-install hint enabled. - Added pre-install hint function - Added optional parameter themename, in case the target name does not match the themesite name. - Made Port Status (statusAsString()) only care about platform string prior to first '.' - Manual: Remove note that rbutil does not support this model Issues: - Cannot uninstall the bootloader - manual instructions are available Change-Id: I574aad7943ea3d1e543e9449f68240446fec0709 --- utils/rbutilqt/base/bootloaderinstallhelper.cpp | 31 ++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'utils/rbutilqt/base/bootloaderinstallhelper.cpp') diff --git a/utils/rbutilqt/base/bootloaderinstallhelper.cpp b/utils/rbutilqt/base/bootloaderinstallhelper.cpp index 4a1b24883b..34fcefc5bc 100644 --- a/utils/rbutilqt/base/bootloaderinstallhelper.cpp +++ b/utils/rbutilqt/base/bootloaderinstallhelper.cpp @@ -97,6 +97,34 @@ BootloaderInstallBase::Capabilities return caps; } +//! @brief Return pre install hints string. +//! @param model model string +//! @return hints. +QString BootloaderInstallHelper::preinstallHints(QString model) +{ + bool hint = false; + QString msg = QObject::tr("Before Bootloader installation begins, " + "Please check the following:"); + + msg += "
    "; + if(model.contains("erosqnative")) { + hint = true; + msg += QObject::tr("
  1. Ensure your SD card is formatted as FAT. " + "exFAT is not supported. You can reformat using the " + "Original Firmware on your player if need be. It is located " + "under (System Settings --> Reset --> Format TF Card).
  2. " + "
  3. Please use a quality SD card from a reputable source. " + "The SD cards that come bundled with players are often of " + "substandard quality and may cause issues.
  4. "); + } + msg += "
"; + + if(hint) + return msg; + else + return QString(); +} + //! @brief Return post install hints string. //! @param model model string @@ -114,7 +142,8 @@ QString BootloaderInstallHelper::postinstallHints(QString model) } if(model == "iriverh100" || model == "iriverh120" || model == "iriverh300" || model == "ondavx747" || model == "agptekrocker" - || model == "xduoox3" || model == "xduoox3ii" || model == "xduoox20") { + || model == "xduoox3" || model == "xduoox3ii" || model == "xduoox20" + || model.contains("erosqnative")) { hint = true; msg += QObject::tr("
  • Reboot your player into the original firmware.
  • " "
  • Perform a firmware upgrade using the update functionality " -- cgit v1.2.3