summaryrefslogtreecommitdiff
path: root/utils/MTP
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
2021-06-11sendfirm: fix some minor issuesJames Buren
This patches some compile warnings and also makes it work correctly with modern mingw64. Change-Id: I8cd292bc989ae04bbaa1d7149d58d6d833a51c0a
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
2014-12-13MTP: put libs after files in the Makefile, to please old gcc versionsAmaury Pouly
Change-Id: I6de6771bd8888e40fb9dafa3c84653c8c680bbef
2011-11-06Bulk convert all DOS line endings to UNIX.Torne Wuff
For the git migration we want a nice clean repository with UNIX line endings. git does not use svn:eol-style, we just need the file contents to be sane. Sorry everybody. I know this messes up blame. Scumbag *NIX developer says migrating to git will make line ending issues go away; commits giant change to svn which changes line endings anyway. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
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
2011-06-08Remove superfluous executable bits on a bunch of files.Torne Wuff
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29986 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-13Some more MTP_DLL cleanup.Dominik Riebeling
- don't use precompiled headers. - prepare for direct incorporation of the library. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21269 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
2009-02-19MTP_DLL:Maurus Cuelenaere
* update license to BSD * clean some comments * add README file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20049 a1c6a512-1295-4272-9138-f99709370657
2009-02-18Fix old libmtp detection on Ubuntu systems that don't support echo -e.Nicolas Pennequin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20039 a1c6a512-1295-4272-9138-f99709370657
2009-02-08extract LIBMTP_VERSION from header, and use that to set -DOLDMTP when ↵Andrew Mahone
building sendfirm, rather than trying to build each way git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19945 a1c6a512-1295-4272-9138-f99709370657
2009-02-07Fix compilation of sendfirm with 0.3.x versions of libmtp and keep a (hacky) ↵Nils Wallménius
fallback for building with the older 0.2.x also fix a pair of 64 bit warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19941 a1c6a512-1295-4272-9138-f99709370657
2009-01-04Remove executable property that somehow got setMichael Giacomelli
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19666 a1c6a512-1295-4272-9138-f99709370657
2009-01-04Commit utility to dump the OF from a rockboxed Gigabeat S. Searches the ↵Michael Giacomelli
partition for deleted nk.bin and restores it. Should work if run immediately after install the bootloader, but may not work later. Current version asks the user to md5sum the file, but probably should do it automatically. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19665 a1c6a512-1295-4272-9138-f99709370657
2008-08-27MTP:Maurus Cuelenaere
* Add Win32 progress callback reporting support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18355 a1c6a512-1295-4272-9138-f99709370657
2008-07-04Fix infinite loop in sendfirm_win.cpp and other minor fixesMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17939 a1c6a512-1295-4272-9138-f99709370657
2008-07-04Make sendfirm_win.c compile and workMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17938 a1c6a512-1295-4272-9138-f99709370657
2008-07-03Forgot the actual file..Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17934 a1c6a512-1295-4272-9138-f99709370657
2008-07-03Add example program + fix some mistakesMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17933 a1c6a512-1295-4272-9138-f99709370657
2008-07-03Add sendfirm Windows version, currently in the form of a DLL so it could Maurus Cuelenaere
be easy integrated into programs (will require VS2005 to compile) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17932 a1c6a512-1295-4272-9138-f99709370657