blob: 6a25bbfdd292451b32154e1b78ef9f1966efe888 [file] [log] [blame]
Dave Chapmanc06071e2009-02-22 13:54:46 +00001beastpatcher - a tool for installing the Rockbox bootloader on the Gigabeat S
2
3Unlike most other parts of the Rockbox project, this tool is
4distributed under the BSD license. This is due to the fact that the
5Windows version links with the Microsoft MTP library.
6
7
8
9Building instructions - All OSes
10--------------------------------
11
12For all versions, you need to copy a "bootloader.bin" file (containing
13the Rockbox bootloader) into this directory.
14
15This can be built from the Rockbox source by selecting "41" and then
16"B" when running tools/configure.
17
18You need the Rockbox toolchain to build any Rockbox target binaries -
19this can be downloaded and built with the tools/rockboxdev.sh script.
20
21The latest officially released bootloader can always be downloaded from:
22
Dave Chapmana9f3dde2009-10-31 00:25:29 +000023http://download.rockbox.org/bootloader/toshiba/gigabeat-s/
Dave Chapmanc06071e2009-02-22 13:54:46 +000024
25
26
27Linux
28-----
29
30The Unix versions requires libmtp, which in turn requires libusb.
31
32beastpatcher is built to statically link to these libraries and
33expects them to exist as /usr/lib/libmtp.a and /usr/lib/libusb.a
34respectively. Change the definition of LIBS in the Makefile if this
35is not the case for your system.
36
37After this, just type "make" to get a
38
39
40
41OS X
42----
43
Barry Wardell304fcbe2009-10-30 13:31:04 +000044The OS X build is a universal binary statically linked with libusb and libmtp.
45It has been tested with libusb version 0.1.12 and libmtp version 1.0.1.
Dave Chapmanc06071e2009-02-22 13:54:46 +000046
Barry Wardell304fcbe2009-10-30 13:31:04 +000047The following files are expected the beaspatcher source directory:
Dave Chapmanc06071e2009-02-22 13:54:46 +000048
Barry Wardell304fcbe2009-10-30 13:31:04 +000049Intel:
50 libusb: usb.h libusb-i386.a
51 libmtp: libmtp.h libmtp-i386.a
52
53PowerPC:
54 libusb: usb.h libusb-ppc.a
55 libmtp: libmtp.h libmtp-ppc.a
56
57These are easily compiled from source using the standard
58'./configure && make'. Look in .libs for libusb.a and src/.libs for libmtp.a,
59and make sure to rename them to their -i386/-ppc filenames when copying into
60the beastpatcher directory.
61
62After this, just type "make beastpatcher-mac" to get a universal binary. If you
63only want a binary for a particular architecture, you can use
64"make beastpatcher-i386" or "make beastpatcher-ppc" instead. In this case, you
65only need the libusb and libmtp library for your desired architecture.
Dave Chapmanc06071e2009-02-22 13:54:46 +000066
67
68Windows
69-------
70
Dave Chapmanc06071e2009-02-22 13:54:46 +000071The MTP_DLL.dll requires VC2005 to compile - see instructions in
72MTP_DLL/README
73
74To compile beastpatcher itself, you can either cross-compile from
75Linux using the mingw32 package, or compile in Cygwin. Just type
76"make beastpatcher.exe" (in Linux) or "make" (in Cygwin).
77
Dave Chapman93f4bd32009-02-22 23:35:29 +000078To run beastpatcher.exe, you need MTP_DLL.dll in the same directory
79(or the Windows DLL path).
Dominik Riebeling1992c382009-10-28 20:51:41 +000080
81Alternatively, beastpatcher can be built as binary that includes the
82MTP functionality and thus doesn't require the MTP_DLL. Building has
83the additional requirements as building the MTP_DLL. A VS2005 project
84file is available.
85