Let qmake generate an install Makefile target to install the binary. Doesn't handle...
[Rockbox.git] / manual / getting_started / installation.tex
blob23aea0e1d698f4453dccd2ad7809ff9a935bd475
1 % $Id$ %
2 \chapter{Installation}\label{sec:installation}
4 \opt{ipodnano}{
5 \note{Rockbox presently runs only on the original Ipod Nano. Rockbox does
6 \emph{not} run on the newer, second generation Ipod Nano (the all aluminium
7 version). For information on identifying which Ipod you own, see this page on
8 Apple's website: \url{http://www.info.apple.com/kbnum/n61688}
11 \opt{e200,c200}{
12 \note{Rockbox doesn't function on the newer v2 models. They can be identified
13 by checking the Sandisk firmware version number under
14 Settings $\rightarrow$ Info. The v1
15 firmware is named 01.xx.xx, while the v2 firmware begins with 03.}
18 \section{Overview}
19 There are two ways of installing Rockbox: automated and manual. While the
20 manual way is older, more tested and proven to work correctly, the
21 automated installation is based on a nice graphical application that does
22 almost everything that is needed for you. It is still important that you have
23 an overview of the installation process to be able to select the correct
24 installation options.
26 \opt{MASCODEC}{Rockbox itself comes as a single package. There is no need
27 to install additional software for running Rockbox.}
28 \opt{swcodec} {
29 \opt{HAVE_RB_BL_ON_DISK}{There are three separate components,
30 two of which need to be installed in order to run Rockbox.}
31 \opt{HAVE_RB_BL_IN_FLASH}{There are two separate components of Rockbox
32 that need to be installed in order to run Rockbox.}
34 \begin{description}
35 \opt{HAVE_RB_BL_ON_DISK}{
36 \item[The \playerman{} bootloader.]
37 The \playerman{} bootloader is the program that tells your \dap{} how to boot
38 and load the remaining firmware from disk. It is also responsible for the
39 disk mode on your \dap{}.
41 This bootloader is stored in special flash memory in your \playerman{}.
42 It is already installed on your \dap{}, so it is never necessary to modify
43 this in order to install Rockbox.}
45 \item[The Rockbox bootloader.] \index{Bootloader}
46 \opt{HAVE_RB_BL_ON_DISK}{The Rockbox bootloader is loaded from disk by
47 the \playerman{} bootloader. It is responsible for loading the Rockbox
48 firmware and for providing the dual boot function. It directly replaces the
49 \playerman{} firmware on the \daps{} disk.
50 \opt{gigabeatf}{\note{Dual boot does not currently work on the gigabeat.}}}
52 \opt{HAVE_RB_BL_IN_FLASH}{
53 The bootloader is the program that tells your
54 \dap{} how to boot and load other components of Rockbox. This is the
55 component of Rockbox that is installed to the flash memory of your
56 \playerman.}
58 \item[The Rockbox firmware.]
59 \opt{HAVE_RB_BL_IN_FLASH}{Unlike the \playerman{} firmware, which runs
60 entirely from flash memory,}
61 \opt{HAVE_RB_BL_ON_DISK}{Similar to the \playerman{} firmware,}
62 most of the Rockbox code is contained in a
63 ``build'' that resides on your \daps{} drive. This makes it easy to
64 update Rockbox. The build consists of a directory called
65 \fname{.rockbox} containing all of Rockbox' files, which is located in the
66 root of your \daps{} drive.
68 \end{description}
71 \nopt{player} {
72 Apart from the required parts there are some addons you might be interested
73 in installing too.
74 \begin{description}
75 \item[Fonts.] Rockbox can load custom fonts. The fonts itself are
76 distributed as separate package and thus needs to be installed
77 separately. The fonts are not required to run Rockbox itself but
78 a lot of themes require the fonts package to be installed.
80 \item[Themes.] The view of Rockbox can be customized by themes. Depending
81 on your taste you might want to install additional themes to change
82 the look of Rockbox.
83 \end{description}
86 \section{Prerequisites}\label{sec:prerequisites}
87 \index{Installation!Prerequisites}
88 Before installing Rockbox you should make sure you meet the prerequisites.
89 Also you may need some tools for installation. In most cases these will be
90 already available on your computer but if not you need to get some additional
91 software.
93 \begin{description}
94 \item[USB connection.] To transfer Rockbox to your \dap{} you need to
95 connect it to your computer. To proceed you need to know where to access the
96 \dap{}. On Windows this means you need to figure out the drive letter
97 associated with the device. On Linux you need to know the mount point of
98 your \dap{}.
100 \opt{ipod}{
101 Your \dap{} should enter disk mode automatically when connected to a
102 computer via USB. If your computer does not recognise your \dap{}, you may
103 need to enter the disk mode manually. Disconnect your \dap{} from the
104 computer. Hard reset the \dap{} by pressing and holding the \ButtonMenu{} and
105 \ButtonSelect{} buttons simultaneously. As soon as the \dap{} resets, press
106 and hold the \ButtonSelect{} and \ButtonPlay{} buttons simultaneously. Your
107 \dap{} should enter disk mode, and you can try reconnecting to the computer.
110 \opt{ipod3g,ipod4g,ipodcolor,ipodmini}{
111 \note{\index{Firewire}Firewire detection is not supported in Rockbox at
112 the moment. Please use USB only.}
115 \opt{sansa}{\warn{The following steps require you to change the setting in
116 \setting{Settings $\rightarrow$ USB Mode} to \setting{MSC} from within the
117 original firmware. Never extract files to your \dap{} while it is in
118 recovery mode.}}
119 \opt{h10,h10_5gb}{\warn{The following steps require you to use UMS mode and so
120 may require use of the UMS trick as described in the bootloader installation
121 section.}}
122 \opt{gigabeatf}{\warn{During installation, do not connect your \dap{}
123 using the cradle but plug the USB cable directly to the \dap{}.}}
124 \end{description}
125 For manual installation and customization additional software is required.
126 \begin{description}
127 \item[ZIP utility.]\index{zip}
128 Rockbox is distributed as an archive using the
129 \fname{.zip} format. Thus you need a tool to handle that compressed
130 format. Usually your computer should have a tool installed that can
131 handle the \fname{.zip} file format. Windows XP has built-in support for
132 \fname{.zip} files and presents them to you as directories unless you have
133 installed a third party program that handles compressed files. For
134 other operating systems this may vary. If the \fname{.zip} file format
135 is not recognised on your computer you can find a program to handle them
136 at \url{http://www.info-zip.org/} or \url{http://sevenzip.sf.net/} which
137 can be downloaded and used free of charge.
138 \item[Text editor.] As you will see in the following chapters, Rockbox is
139 highly configurable. In addition to saving configurations within Rockbox,
140 Rockbox also allows you to create customised configuration files. If you
141 would like to edit custom configuration files on your computer, you will
142 need a text editor like Windows' ``Wordpad''.
143 \end{description}
145 \opt{ipod}{
146 \note{In addition to the requirements described above, Rockbox only works on
147 Ipods formatted with the FAT32 filesystem (i.e., Ipods initialized by iTunes
148 for Windows). It does not work with the HFS+ filesystem (i.e. Ipods
149 initialized by iTunes for the Mac). More information and instructions for
150 converting an Ipod to FAT32 can be found on the
151 \wikilink{IpodConversionToFAT32} wiki
152 page on the Rockbox website. Note that after conversion, you can still use
153 a FAT32 Ipod on a Mac.
157 \section{Installing Rockbox}\label{sec:installing_rockbox}\index{Installation}
159 \opt{ipodvideo}{\warn{There are separate versions of Rockbox for the 30GB and
160 60GB/80GB models. You must ensure you download the correct version for your
161 \dap{}.}}
163 \subsection{Automated Installation}
165 \opt{mrobe100}{\fixme{NOTE: The m:robe 100 is only supported in rbutil version
166 1.05 or greater which may not be available on the download site yet.}}
168 To automatically install Rockbox download the official installer and
169 housekeeping tool \textsc{Rockbox Utility}. It allows you to
170 \begin{itemize}
171 \item Automatically install all needed components for using Rockbox
172 (``Small Installation'')
173 \item Automatically install all suggested components (``Full Installation'')
174 \item Selectively install any of all available parts of Rockbox
175 \item Install additional themes interactively
176 \item Install voice files and generate talk clips
177 \item Uninstall all components you installed using Rockbox Utility
178 \end{itemize}
179 Prebuilt binaries for Windows, Linux and MacOS~X are
180 available from \download{rbutil/}. As Rockbox Utility is still under
181 development more information including up-to-date download links can be
182 found at \wikilink{RockboxUtility}.
184 \warn{Upon the first start of Rockbox Utility you \emph{need} to set at least
185 the correct player and mountpoint in the configuration dialog. Autodetection
186 can detect most player types. If autodetection failed or was unable to detect
187 the mountpoint make sure to enter the correct values. The mountpoint indicates
188 the location of the \dap{} in your filesystem. On Windows, this is the drive
189 letter the \dap{} gets assigned, on other systems this is a path in the
190 filesystem.}
191 \opt{ipodvideo}{\warn{Autodetection is unable to distinguish between the
192 \playerman{} 30~GB and 60~GB / 80~GB models and defaults to the
193 30~GB model. This will usually work but you might want to check the
194 detected value, especially if you experience problems with Rockbox.}}
196 \note{Rockbox Utility currently lacks some guiding messages. Please have a
197 look at the manual installation instructions if you are stuck
198 during installation.}
200 \subsection{Manual Installation}
202 \subsubsection{Choosing a Rockbox version}\label{sec:choosing_version}
204 There are three different types of firmware binaries from the Rockbox website:
205 \label{Version}
206 Release version, current build and daily build. You need to decide which one
207 you want to install and get the version for your \dap{}.
209 \begin{description}
211 \item[Release.]
212 \opt{archos}{The release version is the latest stable release, free
213 of known critical bugs. The current stable release of Rockbox, version
214 2.5, is available at \url{http://www.rockbox.org/download/}.
216 \opt{swcodec}{
217 There has not yet been a stable release for the \playername{}. Until
218 there is a stable release for \playername{}, use a current build.
221 \item[Current Build.] The current build is built at each source code change to
222 the Rockbox SVN repository, and represent the current state of Rockbox
223 development. This means that the build could contain bugs, but is most of
224 the time safe to use. You can download the current build from
225 \url{http://build.rockbox.org/}.
227 \item[Archived Build.] In addition to the release version and the current build,
228 there is also an archive of daily builds available for download. These are
229 built once a day from the latest source code in the SVN repository. You can
230 download archived builds from \url{http://www.rockbox.org/daily.shtml}.
232 \end{description}
235 Because current builds and daily builds are development versions which change
236 frequently, they may behave differently than described in this manual, or
237 they may introduce new (and maybe annoying) bugs. If you do not want to get
238 undefined behaviour from your \dap{} you should really stick to the current
239 stable release, if there is one for your \dap{}. If you want to help the
240 project development, you can try development builds and help by reporting
241 bugs. Just be aware that these are development builds that are highly
242 functional, but not perfect!
244 \subsubsection{Installing the firmware}\label{sec:installing_firmware}
246 \begin{enumerate}
248 \item Download your chosen version of Rockbox from the links in the
249 previous section.
251 \item Connect your \dap{} to the computer via USB
252 \opt{ipod3g,ipod4g,ipodmini,ipodcolor}{ or Firewire} as described in
253 the manual that came with your \dap{}.
255 \item Take the file that you downloaded above, and use the ``Extract
256 all'' command of your unzip program to extract the files in the
257 \fname{.zip} file onto your \dap{}.
259 Note that the entire contents of the \fname{.zip} file should be
260 extracted directly to the root of your \daps{} drive. Do not try to
261 create a separate directory on your \dap{} for the Rockbox
262 files! The \fname{.zip} file already contains the internal
263 structure that Rockbox needs.
265 \end{enumerate}
267 \opt{archos}{
268 \note{
269 If the contents of the \fname{.zip} file are extracted correctly, you will
270 have a file called \fname{\firmwarefilename} in the main directory of your
271 \daps{} drive, and also a directory called \fname{/.rockbox}, which contains a
272 number of other directories and system files needed by Rockbox. If you receive a
273 ``-1'' error when you start Rockbox, you have not extracted the contents of
274 the \fname{.zip} file to the proper location.
278 % This has nothing to do with swcodec, just that these players need our own
279 % bootloader so we can decide where we want the main binary.
280 \opt{swcodec}{
281 \note{
282 If the contents of the \fname{.zip} file are extracted correctly, you will
283 have a directory called \fname{/.rockbox}, which contains all the files needed
284 by Rockbox, in the main directory of your \daps{} drive. If you receive a
285 ``-1'' error when you start Rockbox, you have not extracted the contents of
286 the \fname{.zip} file to the proper location.
290 \nopt{player}{
291 \subsubsection{Installing the fonts package}{\index{Installation!Fonts}\label{sec:installing_fonts}
292 Rockbox has a fonts package that is available at
293 \url{http://www.rockbox.org/daily.shtml} or from the \emph{extras} link in
294 the menu on the Rockbox website. While the current builds and
295 daily builds change frequently, the fonts package rarely changes. Thus,
296 the fonts package is not included in these builds. (The release version, on
297 the other hand, does not change, so fonts are included when you download a
298 release). When installing Rockbox for the first time, you should install
299 the fonts package.
301 \begin{enumerate}
303 \item Download the fonts package from the link above.
305 \item Take the file that you downloaded above, and use the ``Extract
306 all'' command of your unzip program to extract the files in the
307 \fname{.zip} file onto your \dap{}. As with the firmware installation, the
308 entire contents of the fonts \fname{.zip} should be extracted directly to the
309 root of your \daps{} drive. Do not try to create a separate directory
310 on your \dap{} for the fonts! The \fname{.zip} already contains the
311 correct internal structure.
313 \end{enumerate}
317 \opt{swcodec}{
318 \subsubsection{Installing the bootloader}
319 \opt{h1xx,h300}{\input{getting_started/iriver_install.tex}}
320 \opt{ipod}{\input{getting_started/ipod_install.tex}}
321 \opt{m5,x5}{\input{getting_started/iaudio_install.tex}}
322 \opt{h10,h10_5gb}{\input{getting_started/h10_install.tex}}
323 \opt{gigabeatf}{\input{getting_started/gigabeat_install.tex}}
324 \opt{sansa}{\input{getting_started/sansa_install.tex}}
325 \opt{mrobe100}{\input{getting_started/mrobe100_install.tex}}
326 \opt{gigabeats}{\input{getting_started/gigabeats_install.tex}}
329 \subsection{Enabling Speech Support (optional)}\label{sec:enabling_speech_support}
330 \index{Speech}\index{Installation!Optional Steps}
331 If you wish to use speech support you will also need a voice file, english ones
332 are available from \url{http://www.rockbox.org/daily.shtml}. Download the
333 ``voice'' package for your player and unzip it directly to the root of your \dap.
334 You should now find an \fname{english.voice} in the \fname{/.rockbox/langs}
335 directory on your \dap{}. Voice menus are enabled by default and will come
336 into effect after a reboot. See \reference{ref:Voiceconfiguration} for details
337 on voice settings.
339 \section{Running Rockbox}
340 Remove your \dap{} from the computer's USB port. %
341 \nopt{ipod,e200}{Unplug any connected power supply and turn the unit off. When
342 you next turn the unit on, Rockbox should load. }%
343 \opt{ipod}{Hard resetting the Ipod by holding
344 \opt{IPOD_4G_PAD}{\ButtonMenu{}+\ButtonSelect{}}%
345 \opt{IPOD_3G_PAD}{\ButtonMenu{}+\ButtonPlay{}}
346 for a couple of seconds until the \dap{} resets. Now Rockbox should load.
348 \opt{e200}{Your e200 will automatically reboot and Rockbox should load. }%
349 When you see the Rockbox splash screen, Rockbox is loaded and ready for
350 use.
352 \opt{ipod}{
353 \note{
354 Rockbox starts in the \setting{File Browser}. If you have loaded music onto
355 your player using Itunes, you will not be able to see your music because
356 Itunes changes your files' names and hides them in directories in the
357 \fname{Ipod\_Control} directory. You can view files placed on your \dap{} by
358 Itunes by initializing and using Rockbox's database. See
359 \reference{ref:database} for more information.
363 \section{Updating Rockbox}
364 Updating Rockbox is easy even if you do not use the Rockbox Utility.
365 Download a Rockbox build.
366 (The latest release of the Rockbox software will always be available from
367 \url{http://www.rockbox.org/download/}). Unzip the build to the root directory
368 of your \dap{} like you did in the installation step before. If your unzip
369 program asks you whether to overwrite files, choose the ``Yes to all'' option.
370 The new build will be installed over your current build.
372 \note{If you use Rockbox Utility be aware that it can not detect manually
373 installed components.}
375 \section{Uninstalling Rockbox}\index{Installation!uninstall}
376 \subsection{Automatic Uninstallation}
377 You can uninstall Rockbox automatically by using Rockbox Utility. If you
378 installed Rockbox manually you can still use Rockbox Utility for uninstallation
379 but will not be able to do this selectively.
381 \opt{h1xx,h300}{\note{Rockbox Utility cannot uninstall the bootloader due to
382 the fact that it requires a flashing procedure. To uninstall the bootloader
383 completely follow the manual uninstallation instructions below.}}
385 \subsection{Manual Uninstallation}
386 \opt{archos}{
387 If you would like to go back to using the original \playerman{} software,
388 connect the \dap{} to your computer, and delete the
389 \fname{\firmwarefilename} file.
391 \nopt{gigabeatf,m5,x5,archos,mrobe100}
393 \note{The Rockbox bootloader can start the original firmware on your \dap.
394 (See \reference{ref:Dualboot} for more information.)}}
396 \opt{h10,h10_5gb}{
397 If you would like to go back to using the original \playerman{} software,
398 connect the \dap{} to your computer, and delete the
399 \opt{h10}{\fname{H10\_20GC.mi4}}\opt{h10_5gb}{\fname{H10.mi4}} file and rename
400 \fname{OF.mi4} to \opt{h10}{\fname{H10\_20GC.mi4}}\opt{h10_5gb}{\fname{H10.mi4}}
401 in the \fname{System} directory on your \playertype{}. As in the installation,
402 it may be necessary to first put your device into UMS mode.
405 \opt{mrobe100}{
406 If you would like to go back to using the original \playerman{} software,
407 connect the \dap{} to your computer, and delete the
408 \fname{pp5020.mi4} file and rename
409 \fname{OF.mi4} to \fname{pp5020.mi4}
410 in the \fname{System} directory on your \playertype{}.
413 \opt{e200}{
414 If you would like to go back to using the original \playerman{} software,
415 connect the \dap{} to your computer, and follow the instructions to install
416 the bootloader, but when prompted by sansapatcher, enter 'u' for uninstall,
417 instead of 'i' for install. As in the installation, it may be necessary to
418 first put your device into UMS mode.
421 \optv{ipod}{
422 If you would like to go back to using the original \playerman{} software,
423 connect the \dap{} to your computer, and follow the instructions to install
424 the bootloader, but when prompted by ipodpatcher, enter 'u' for uninstall,
425 instead of 'i' for install.
428 \opt{m5,x5}{
429 If you would like to go back to using the original \playerman{} software,
430 connect the \dap{} to your computer, download the original \playername{}
431 firmware from the \playerman{} website. And copy it to the \fname{FIRMWARE}
432 directory on your \playername{}. Turn off the \dap{}, remove the USB cable
433 and insert the charger. The original firmware will automatically be flashed.
436 \opt{h1xx,h300}{
437 \note{
438 If you want to remove the Rockbox bootloader, simply flash an unpatched
439 \playerman{} firmware. Be aware that doing so will also remove the bootloader
440 USB mode. As that mode can come in quite handy (especially when
441 having disk errors) it is recommended to keep the bootloader. It also
442 gives you the possibility of trying Rockbox anytime later by simply
443 installing the distribution files.
444 \opt{h1xx}{
445 The Rockbox bootloader will automatically start the original firmware if
446 the \fname{.rockbox} directory has been deleted.
448 \opt{h300}{%
449 Although if you retain the Rockbox bootloader, you will need to hold the
450 \ButtonRec{} button each time you want to start the original firmware.
455 If you wish to clean up your disk, you may also wish to delete the
456 \fname{.rockbox} directory and its contents.
457 \nopt{m5,x5}{Turn the \playerman{} off.
458 Turn the \dap{} back on and the original \playerman{} software will load.