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