summaryrefslogtreecommitdiff
path: root/utils/MTP/beastpatcher
AgeCommit message (Collapse)Author
2021-06-17mknkboot: optimize verifyfirmJames Buren
The checksum only needs to be calculated once. A small oversight on my initial implementation. Change-Id: Ie23faf36f5add7ed7f146769b604dbd8204c2605
2021-06-12mknkboot/beastpatcher: implement basic firmware validationJames Buren
This imports the MD5 code used by other utilities and creates a function for checking the provided NK.bin against known original firmware checksums. Integration into mknkboot and beastpatcher is also added. For the sake of consistency with beastpatcher, mknkboot had its printf statements rewrote to print to stderr like beastpatcher does. Change-Id: I0e52271d8d627a5b02302ab5cd1da2815b7cec1e
2021-06-11beastpatcher: fix some minor issuesJames Buren
This mainly fixes some compiler warnings and makes it work with mingw64. Change-Id: Iabd13b5bed3427869ae78ceeb7e2255e68a6f7bd
2020-08-05beastpatcher: don't hardcode lib paths.Dominik Riebeling
Let the linker find libmtp / libusb. Also don't insist on linking them statically -- current Debian doesn't have a static libmtp. Set STATIC to force linking statically. Change-Id: I3ce9cea832705c87f08054435eadf9f169afedb2
2011-10-30Fix a typo spotted from r30864.Robert Menes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30865 a1c6a512-1295-4272-9138-f99709370657
2011-10-30beastpatcher: check WMP version.Dominik Riebeling
The current implementation fails silently if Windows Media Player is version 10. Add a check and inform the user if the version installed is too old to work properly with beastpatcher. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30864 a1c6a512-1295-4272-9138-f99709370657
2011-08-25Don't close file descriptor twiceThomas Jarosch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30352 a1c6a512-1295-4272-9138-f99709370657
2010-06-19Add error messages to a few more failure cases to beastpatcher.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26978 a1c6a512-1295-4272-9138-f99709370657
2010-06-17Make sure files which aren't windows-specific use \n line endings onlyRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26893 a1c6a512-1295-4272-9138-f99709370657
2009-12-04Revert an accidental commit that I didn't want to go in.Robert Menes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23839 a1c6a512-1295-4272-9138-f99709370657
2009-12-03Another round of plugin keymaps for the Philips GoGear SA9200.Robert Menes
Just a few more to go... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23838 a1c6a512-1295-4272-9138-f99709370657
2009-11-01Adjust mknkboot sources path to recently changed location.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23458 a1c6a512-1295-4272-9138-f99709370657
2009-10-31Correct the bootloader download path.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23431 a1c6a512-1295-4272-9138-f99709370657
2009-10-30Add support for building OSX disk image of beastpatcher.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23424 a1c6a512-1295-4272-9138-f99709370657
2009-10-30Get beastpatcher working on OSX.Barry Wardell
I don't know why we need to split the compiling and linking steps on OSX, but this was the only way I could get static linking against libusb and libmtp to work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23418 a1c6a512-1295-4272-9138-f99709370657
2009-10-28Update bootloader download location and add a note about building with VS2005.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23381 a1c6a512-1295-4272-9138-f99709370657
2009-10-27Move mknkboot.[ch] to beastpatcher folder.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23372 a1c6a512-1295-4272-9138-f99709370657
2009-09-24Make beastpatcher build with VS2005 again.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22821 a1c6a512-1295-4272-9138-f99709370657
2009-09-24Add non-interactive mode to beastpatcher.Dominik Riebeling
- Extend beastpatcher() to optionally work non-interactively. - Don't ask for confirmation if beastpatcher was started with command line arguments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22820 a1c6a512-1295-4272-9138-f99709370657
2009-09-20Integrate mknkboot into beastpatcher.Dominik Riebeling
Add a new option to beastpatcher to patch and upload an original firmware file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22745 a1c6a512-1295-4272-9138-f99709370657
2009-09-18Fix signedness mismatch.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22733 a1c6a512-1295-4272-9138-f99709370657
2009-08-23Extend beastpatcher command line.Dominik Riebeling
- prepare for building without included bootloader binary - allow specifying a bootloader.bin file on the command line git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22479 a1c6a512-1295-4272-9138-f99709370657
2009-06-13Make bin2c compile with VS2005 and move it to a separate folder as its ↵Dominik Riebeling
getting used by different tools now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21272 a1c6a512-1295-4272-9138-f99709370657
2009-06-13Refactor sendfirm functionality in beastpatcher and do some code police.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21271 a1c6a512-1295-4272-9138-f99709370657
2009-06-13Build beastpatcher by incorporating the MTP_DLL code instead of linking the DLL.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21270 a1c6a512-1295-4272-9138-f99709370657
2009-06-12Fix beastpatcher on linux and code police.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21263 a1c6a512-1295-4272-9138-f99709370657
2009-06-12Implement sendfirm functionality in beastpatcher. Set svn:eol-style properties.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21260 a1c6a512-1295-4272-9138-f99709370657
2009-06-11Allow building beastpatcher with libmtp 0.2.[0-5].Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21249 a1c6a512-1295-4272-9138-f99709370657
2009-06-08Remove never used code -- libmtp is not used on Windows.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21227 a1c6a512-1295-4272-9138-f99709370657
2009-06-08Major W32 beastpatcher rework (FS#10220).Dominik Riebeling
Update beastpatcher to scan for the device separately, rework MTP_DLL and modify to allow building with VS2005. - include pstdint.h when building with VS2005 as VS doesn't have inttypes.h - don't use bool in the DLL as VS doesn't support type bool in C. - rearrange DLL files to avoid filename ambiguities with sendfirm. - include MTP_DLL.h instead of duplicating prototypes. Adjust header for easy inclusion. - make MTP_DLL project file also copy the resulting dll to MTP folder for convenience. - extend MTP_DLL API for separate device scanning. Note that this (intentionally) breaks compatibility of the dll. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21221 a1c6a512-1295-4272-9138-f99709370657
2009-05-16Support building beastpatcher with MinGW.Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20960 a1c6a512-1295-4272-9138-f99709370657
2009-02-22Initial (untested) attempt at a Windows version. The MTP_DLL.dll library ↵Dave Chapman
needs expanding to offer the same API as mtp_libmtp.c, but this needs someone with access to a MS compiler. Ideally we should also stop using a separate DLL and compile a single standalone beastpatcher.exe. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20088 a1c6a512-1295-4272-9138-f99709370657
2009-02-22Initial version of a BSD-licensed beastpatcher utility for Gigabeat S ↵Dave Chapman
installation. Currently only compiles on Linux, but Windows and OS X support are planned. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20083 a1c6a512-1295-4272-9138-f99709370657