path: root/rbutil/rbutilqt/base/bootloaderinstallsansa.cpp
AgeCommit message (Collapse)AuthorFilesLines
2020-11-19rbutil: Modernize code to use C++11 nullptr.Dominik Riebeling1-2/+2
Change-Id: I112cf95122a896cdb30a823b4c1f49831273dc7e
2016-08-15rbutil: show progress bar during bootloader uninstallCástor Muñoz1-0/+1
Useful for targets that needs multi-stage uninstall. On current targets (with Uninstall capability) the progress is updated to 100% when bootloader uninstall is successfully finished. Change-Id: I61be1c4f5cfc2d2f35fa5005962be9703888447d
2014-01-05Fix potentially problematic sprintf statement.Dominik Riebeling1-2/+2
Change-Id: Ice0d7b0d4c042be991cdbca7a390b613b5bdc5a6
2013-11-04Use cutelogger for Rockbox Utility internal trace.Dominik Riebeling1-4/+6
Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
2013-01-01Provide dealloc function to sansapatcher.Dominik Riebeling1-2/+1
Similar as done with ipodpatcher provide a function to free the allocated sector buffer. Change-Id: Ie51e82f7191496bb48973148af1cc35cd37993d3
2013-01-01sansapatcher: move sectorbuf pointer into sansa_t structure.Dominik Riebeling1-18/+7
Similar as the ipod_t structure for ipodpatcher the sansa_t structure holds all relevant information for sansapatcher. Put the global sansa_sectorbuf pointer into it as well. Change-Id: Iad08ef6aafc49609c3d0d556914246f230ee0179
2012-06-25Add missing class name to System Trace log.Dominik Riebeling1-1/+1
To identify the source for System Trace entries qDebug() calls usually add the class name at the beginning. Add some missing ones and remove some trailing spaces. Change-Id: I3179bb206e96de8b5a1c05c0fc0958936e4513f3
2011-12-04sansapatcher: factor out handling of bundled bootloaders.Dominik Riebeling1-2/+4
Instead of handling bundled bootloaders in the sansapatcher functions leave that to the caller. This removes the need to have Rockbox Utility specific parts in sansapatcher. sansa_add_bootloader() now operates on an already loaded bootloader. For loading a convenience function sansa_read_bootloader() is added. This also introduces a new check on loading to prevent installing an e200 bootloader on a c200 (and vice versa). These changes will allow building a libsansapatcher for linking with Rockbox Utility later. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-10-19Remove svn keyword lines from sources.Dominik Riebeling1-1/+0
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2011-07-17Move some helper functions out of Autodetection.Dominik Riebeling1-2/+2
Those functions are rather general, so put them into the Utils class instead. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-04-27Handle device name resolving failures.Dominik Riebeling1-4/+8
Improve tracing of device name resolving. Explicitly fail if resolving the device name from the mountpoint failed during ipod / sansa bootloader installation. Fixes bootloader installation trying to use an empty device name in some cases which can happen if the mountpoint to get resolved uses an incompatible file system. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-10Revert r24174 following the discussion on mailing-listTomer Shalev1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2010-01-03rbutil: Fix some messagesTomer Shalev1-1/+1
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-11-22FS#10100: Wait for the system to remount the player after bootloader ↵Dominik Riebeling1-3/+23
installation. OS X requires to unmount the player during bootloader installation on Sansas / Ipods. The system remounts the player automatically after a short while. Not waiting for the system to remount the player will result in a changed mount point, making the small / full install write the main build to the wrong location. This currently waits up to 60 seconds for the player to get remounted until it errors out. This value seems to be sufficient, if it's not please report so we can adjust it. Also, the waiting can't be interrupted right now. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-11-22Fix Sansa bootloader installation on OS X.Dominik Riebeling1-10/+12
- adjust the regex to figure the correct drive from the partition name. - move the check for an old bootloader into the first installation step -- it's a fatal problem so it should appear as soon as possible. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-08-09Clean up bootloader installation debug output a bit.Dominik Riebeling1-2/+3
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-05-01Make sure the global buffers for ipodpatcher and sansapatcher get allocated ↵Dominik Riebeling1-3/+9
and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-04-30Bootloader installation for ipod and sansa: override the scanning with the ↵Dominik Riebeling1-55/+45
device pointed to by the mountpoint. This allows selecting the correct player if two of the same brand are connected (FS#10096). git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-04-05Fix a potentially dangerous bug with bootloader installation for Sansas:Dominik Riebeling1-0/+17
check the downloaded bootloader file against the target reported by sansapatcher as otherwise one could install an e200 bootloader to a c200 (and vice versa). git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-01-08Add some more bootloader install progress messages and call processEvents() ↵Dominik Riebeling1-0/+6
more often before performing player disk accesses. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2009-01-08When checking the installed bootloader make sure to properly close the ↵Dominik Riebeling1-0/+4
device afterwards. Fixes "No Sansa found" issues on windows as reported in the forums. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
2008-10-12Separate basic functionality from GUI parts by moving it into a separate ↵Dominik Riebeling1-0/+244
folder. Some files still need to get cleaned up prior moving them too. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657