summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher/main.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-27sansapatcher: rework exit code handling.Dominik Riebeling1-22/+27
- #define all exit codes and use them for indicating further errors. - only enable interactive (i.e. wait for keypress before exiting) mode when built with bootloaders. Change-Id: I6dcbc51226aadc4ab640bf260b6331ddbd4773cc
2020-06-07misc: Remove all 'twiki' references in favor of up-to-date 'wiki' links.Solomon Peachy1-1/+1
(This migration happened over a decade ago!) Change-Id: Ib396414a16f2d763e549af49e3f3b03047dab49c
2013-01-01Provide dealloc function to sansapatcher.Dominik Riebeling1-0/+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-1/+1
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
2011-12-16sansapatcher: allow building without bootloaders.Dominik Riebeling1-0/+10
There is no need to always build sansapatcher with embedded bootloaders. Allow building without similar to ipodpatcher. Interactive mode will obviously not be available if built without bootloaders. Fix rules for creating the source files for the embedded bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31328 a1c6a512-1295-4272-9138-f99709370657
2011-12-04sansapatcher: factor out handling of bundled bootloaders.Dominik Riebeling1-9/+28
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://svn.rockbox.org/rockbox/trunk@31144 a1c6a512-1295-4272-9138-f99709370657
2009-07-10Also bump version in trunkFrank Gevaerts1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21747 a1c6a512-1295-4272-9138-f99709370657
2008-10-23Bump version number to v0.7 with 5.0 bootloaders. Part of FS#9369.Robert Menes1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18868 a1c6a512-1295-4272-9138-f99709370657
2008-07-14Make functions in sansapatcher static and their arguments const if possible.Bertrik Sikken1-4/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18037 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg1-2/+4
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-17Rename variables sectorbuf and verbose to avoid clashes in rbutil. Cleanup ↵Dominik Riebeling1-5/+1
exports a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17730 a1c6a512-1295-4272-9138-f99709370657
2007-10-20Bump version for releaseBarry Wardell1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15227 a1c6a512-1295-4272-9138-f99709370657
2007-10-14Add support for installing/replacing the bootloader in the PPBL section of ↵Barry Wardell1-1/+29
the firmware partition. Allows installation of the Rockbox bootloader in place of the Sandisk one. This expects a plain bootloader binary with no header. Our Rockbox bootloader successfully boots both Rockbox and the OF when installed in this way. This makes it easy to get to a state where e200tool is required, so care is advised. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15108 a1c6a512-1295-4272-9138-f99709370657
2007-10-11Bump version for new release with fixed OF loading on e200.bootloader_e200_v3bootloader_c200_v3Barry Wardell1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15075 a1c6a512-1295-4272-9138-f99709370657
2007-09-22Bump version for new release for C200bootloader_c200_v2Dave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14818 a1c6a512-1295-4272-9138-f99709370657
2007-09-19Cosmetic - Change the way the detected type of Sansa is displayed and bump ↵Dave Chapman1-3/+1
version to 0.4-svn. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14756 a1c6a512-1295-4272-9138-f99709370657
2007-09-19Initial attempt at c200 support - you now need both a "firmware.mi4" file ↵Dave Chapman1-10/+12
(c200 bootloader) and "PP5022.mi4" file (e200 bootloader) to compile. sansapatcher should detect the device type and install the correct bootloader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14755 a1c6a512-1295-4272-9138-f99709370657
2007-09-15Bump version to 0.3 and v2 bootloader in preparation for releaseDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14725 a1c6a512-1295-4272-9138-f99709370657
2007-08-02Add --update-original-firmware (or -of) option to sansapatcher. This allows ↵Barry Wardell1-3/+22
for changing the original firmware version when the rockbox bootloader is also present. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14138 a1c6a512-1295-4272-9138-f99709370657
2007-05-03Make rbutil compile on Mac OS XDave Chapman1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13316 a1c6a512-1295-4272-9138-f99709370657
2007-03-23Bump version to 0.2 with new bootloaderDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12897 a1c6a512-1295-4272-9138-f99709370657
2007-03-21Always display the 'Press ENTER to exit sansapatcher' prompt when there is ↵Dave Chapman1-63/+66
an error in interactive mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12877 a1c6a512-1295-4272-9138-f99709370657
2007-03-17Modify the version string ready for initial releaseDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12825 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Some code rearrangement and function renaming to help incorporation into ↵Dave Chapman1-8/+29
rbutil without clashing with ipodpatcher. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12797 a1c6a512-1295-4272-9138-f99709370657
2007-03-15Implement the ability to embed a bootloader in sansapatcher - the --install ↵Dave Chapman1-16/+37
option installs the embedded bootloader, and running without any parameters will cause a prompt to be displayed asking the user if they want to install, uninstall or cancel. sansapatcher now requres a PP5022.mi4 file (the Rockbox bootloader) in the current directory when building. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12794 a1c6a512-1295-4272-9138-f99709370657
2007-03-15Correct the svn:keywordsDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12793 a1c6a512-1295-4272-9138-f99709370657
2007-03-15Initial commit of sansapatcher - an installation tool for the Sansa E200.Dave Chapman1-0/+293
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12792 a1c6a512-1295-4272-9138-f99709370657