rockbox/utils/MTP/beastpatcher
Dominik Riebeling 73f9bde908 Make bin2c compile with VS2005 and move it to a separate folder as its getting used by different tools now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21272 a1c6a512-1295-4272-9138-f99709370657
2009-06-13 14:15:50 +00:00
..
vs2005 Build beastpatcher by incorporating the MTP_DLL code instead of linking the DLL. 2009-06-13 08:58:48 +00:00
beastpatcher.c Refactor sendfirm functionality in beastpatcher and do some code police. 2009-06-13 14:03:31 +00:00
beastpatcher.h Refactor sendfirm functionality in beastpatcher and do some code police. 2009-06-13 14:03:31 +00:00
main.c Refactor sendfirm functionality in beastpatcher and do some code police. 2009-06-13 14:03:31 +00:00
Makefile Make bin2c compile with VS2005 and move it to a separate folder as its getting used by different tools now. 2009-06-13 14:15:50 +00:00
mtp_common.h Implement sendfirm functionality in beastpatcher. Set svn:eol-style properties. 2009-06-12 16:35:34 +00:00
mtp_libmtp.c Refactor sendfirm functionality in beastpatcher and do some code police. 2009-06-13 14:03:31 +00:00
mtp_win32.c Refactor sendfirm functionality in beastpatcher and do some code police. 2009-06-13 14:03:31 +00:00
pstdint.h Implement sendfirm functionality in beastpatcher. Set svn:eol-style properties. 2009-06-12 16:35:34 +00:00
README Initial (untested) attempt at a Windows version. The MTP_DLL.dll library 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. 2009-02-22 23:35:29 +00:00
README.pstdint Implement sendfirm functionality in beastpatcher. Set svn:eol-style properties. 2009-06-12 16:35:34 +00:00
TODO

beastpatcher - a tool for installing the Rockbox bootloader on the Gigabeat S

Unlike most other parts of the Rockbox project, this tool is
distributed under the BSD license.  This is due to the fact that the
Windows version links with the Microsoft MTP library.



Building instructions - All OSes
--------------------------------

For all versions, you need to copy a "bootloader.bin" file (containing
the Rockbox bootloader) into this directory.

This can be built from the Rockbox source by selecting "41" and then
"B" when running tools/configure.

You need the Rockbox toolchain to build any Rockbox target binaries -
this can be downloaded and built with the tools/rockboxdev.sh script.

The latest officially released bootloader can always be downloaded from:

http://download.rockbox.org/bootloader/gigabeat-s/



Linux
-----

The Unix versions requires libmtp, which in turn requires libusb.

beastpatcher is built to statically link to these libraries and
expects them to exist as /usr/lib/libmtp.a and /usr/lib/libusb.a
respectively.  Change the definition of LIBS in the Makefile if this
is not the case for your system.

After this, just type "make" to get a 



OS X
----

[Not yet implemented]

The OS X build is a universal binary statically linked with libusb and libmtp.



Windows
-------

The MTP_DLL.dll requires VC2005 to compile - see instructions in
MTP_DLL/README

To compile beastpatcher itself, you can either cross-compile from
Linux using the mingw32 package, or compile in Cygwin.  Just type
"make beastpatcher.exe" (in Linux) or "make" (in Cygwin).

To run beastpatcher.exe, you need MTP_DLL.dll in the same directory
(or the Windows DLL path).