summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-06-19jz4740_tools : bin2c.c location has changedRafaël Carré1-4/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21356 a1c6a512-1295-4272-9138-f99709370657
2009-06-13Make bin2c compile with VS2005 and move it to a separate folder as its ↵Dominik Riebeling1-2/+2
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 Riebeling5-65/+90
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 Riebeling1-14/+48
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21270 a1c6a512-1295-4272-9138-f99709370657
2009-06-13Some more MTP_DLL cleanup.Dominik Riebeling7-62/+11
- 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 Riebeling3-20/+25
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 Riebeling10-1039/+1241
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 Riebeling2-1/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21249 a1c6a512-1295-4272-9138-f99709370657
2009-06-10Fix ZenUtils compilationMaurus Cuelenaere11-3185/+756
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21242 a1c6a512-1295-4272-9138-f99709370657
2009-06-08Remove never used code -- libmtp is not used on Windows.Dominik Riebeling1-4/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21227 a1c6a512-1295-4272-9138-f99709370657
2009-06-08Major W32 beastpatcher rework (FS#10220).Dominik Riebeling14-300/+1524
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-28FS#10253 : mkamsboot v1.0mkamsboot_1.0Rafaël Carré1-0/+132
- Bump version to 1.0 - Add Clipv2 target - Make mkamsboot work as a library (work by domonoky : FS#10185, with a few modifications by me) . Use a macro with variadic arguments for error cases in functions which might error. . Add detailed descriptions to functions exported by the library (in the header file) - modify bin2c.c to produce only one pair of .c/.h files with several files embedded in it - move files needing to be built by an ARM cross compiler into dualboot/ - commit produced .c/.h files (containing nrv2e_d8.S and dualboot.S built for Clip, Fuze, e200v2, c200v2, m200v4, Clipv2) - Write a real README file - cosmetics: indent dualboot.S properly, remove trailing spaces, limit lines to 80 characters - comments: add/correct comments in dualboot.S and mkamsboot.c - move back extract_fw.c to utils/AMS/hacking git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21118 a1c6a512-1295-4272-9138-f99709370657
2009-05-16Support building beastpatcher with MinGW.Dominik Riebeling1-0/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20960 a1c6a512-1295-4272-9138-f99709370657
2009-05-07Add the Sansa m200 to tcctool.Robert Menes1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20869 a1c6a512-1295-4272-9138-f99709370657
2009-04-21Update jz4740_tools READMEMaurus Cuelenaere1-1/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20770 a1c6a512-1295-4272-9138-f99709370657
2009-04-10Add new directory under utils for code-analysis tools, and objdiff.py script ↵Andrew Mahone1-0/+54
to display per-symbol size deltas between object files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20672 a1c6a512-1295-4272-9138-f99709370657
2009-04-04Jz4740 USB tool:Maurus Cuelenaere1-6/+4
* Add a slight delay, so that the pre-boot code gets time to execute * Remove an unneeded check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20616 a1c6a512-1295-4272-9138-f99709370657
2009-03-31Fix Jz4740 USB tools warningsMaurus Cuelenaere1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20592 a1c6a512-1295-4272-9138-f99709370657
2009-03-20Make Jz4740 USB tools a bit more configurable by letting you choose what ↵Maurus Cuelenaere3-110/+117
file you want to upload when doing usbtool 10 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20415 a1c6a512-1295-4272-9138-f99709370657
2009-03-04Cosmetic fix: remove duplicate semicolonsBertrik Sikken1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20198 a1c6a512-1295-4272-9138-f99709370657
2009-02-22Initial (untested) attempt at a Windows version. The MTP_DLL.dll library ↵Dave Chapman6-13/+183
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 Chapman6-0/+596
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 Cuelenaere7-99/+150
* 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 Pennequin1-2/+2
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 Mahone1-1/+4
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énius2-5/+12
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-31FS#9638 - temp_cue is unused and wasting memory.Bertrik Sikken2-2/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19890 a1c6a512-1295-4272-9138-f99709370657
2009-01-23ZenUtils: fix offset detectionMaurus Cuelenaere1-4/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19825 a1c6a512-1295-4272-9138-f99709370657
2009-01-04Remove executable property that somehow got setMichael Giacomelli1-0/+0
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 Giacomelli1-0/+143
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-12-12Fix array sizesFrank Gevaerts1-2/+6
Fix some error handling git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19406 a1c6a512-1295-4272-9138-f99709370657
2008-11-21Fix segmentation fault when no key was found.Maurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19164 a1c6a512-1295-4272-9138-f99709370657
2008-10-27Commit DLanalyser tool, made by Jin LeMaurus Cuelenaere3-4/+446
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18896 a1c6a512-1295-4272-9138-f99709370657
2008-10-13Don't exit with code 0 on do_patching() failVitja Makarov1-10/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18795 a1c6a512-1295-4272-9138-f99709370657
2008-10-12Fix a nasty bug spotted by Rob Purchase - the uploaded file was being ↵Dave Chapman1-3/+6
truncated to a multiple of 64 bytes (PACKET_SIZE). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18787 a1c6a512-1295-4272-9138-f99709370657
2008-10-09Fix menu (update to newer one)Maurus Cuelenaere2-4/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18755 a1c6a512-1295-4272-9138-f99709370657
2008-10-09Add Rockbox layout to plugin API documentationMaurus Cuelenaere3-76/+210
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18754 a1c6a512-1295-4272-9138-f99709370657
2008-10-09Improve plugin API documentation updater a bitMaurus Cuelenaere2-2/+47
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18753 a1c6a512-1295-4272-9138-f99709370657
2008-10-09Functionize some stuffMaurus Cuelenaere2-38/+17
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18751 a1c6a512-1295-4272-9138-f99709370657
2008-10-09Fix some issues with generation of plugin API documentation + make it more ↵Maurus Cuelenaere4-49/+185
themeable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18750 a1c6a512-1295-4272-9138-f99709370657
2008-10-06Commit FS#9462: an semi-automatic plugin API documentation generatorMaurus Cuelenaere6-0/+766
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18722 a1c6a512-1295-4272-9138-f99709370657
2008-10-05Add iriver X20 support to tcctool - information contributed by Octavian Voicu.Dave Chapman2-0/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18710 a1c6a512-1295-4272-9138-f99709370657
2008-10-04Move mkamsboot into the rbutil/mkamsboot/ directory - no other changes, so ↵Dave Chapman6-782/+2
this should still work the same as before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18706 a1c6a512-1295-4272-9138-f99709370657
2008-10-02Remove the dependency on sufficient free space in the padding at the end of ↵Dave Chapman2-57/+52
the firmware block by storing the ucl unpack function in the main firmware block, immediately before the compressed firmware image. Also simplify the memcpy function in test.S. This has been tested successfully on a Clip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18682 a1c6a512-1295-4272-9138-f99709370657
2008-10-01It turns out that in-place UCL decompression isn't as easy as we thought, so ↵Dave Chapman1-2/+22
we copy the OF to an unused part of RAM before decompressing it. This works - I have successfully patched m300a-1.1.17A.bin and installed on my Clip with this code. Thanks to Rafael Carre (funman) for the actual patch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18679 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Correct the content of an error message (thanks to Jens for spotting) and ↵Dave Chapman1-2/+2
fix a warning git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18678 a1c6a512-1295-4272-9138-f99709370657
2008-10-01We need to strip the header (26 bytes) from the UCL file - based on the ↵Dave Chapman1-1/+35
information in tools/ucl2src.pl. Also add some sanity checking of the UCL file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18677 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Bug fix #1 for mkamsboot - pass the correct parameters to the ucl unpack ↵Dave Chapman2-3/+6
function. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18676 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Untested (i.e. will almost certainly brick your device if you attempt to use ↵Dave Chapman5-95/+304
it) first attempt at making mkamsboot store the original firmware as a UCL compressed image. If it works, then this means we have about 40KB (depending on target and OF version) for our bootloader code. I repeat: This is UNTESTED and needs reviewing fully before attempting to install on a device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18675 a1c6a512-1295-4272-9138-f99709370657
2008-10-01Original, unmodified version of the ARM thumb implementation of the UCL ↵Dave Chapman1-0/+187
ucl_nrv2e_decompress_8 function from upx-3.03 - licensed under the GPL (v2 or later). This will be used to decompress the original firmware image in the next version of mkamsboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18674 a1c6a512-1295-4272-9138-f99709370657