Make sure codec directory exists before creating link file.
[kugel-rb.git] / manual / getting_started / installation.tex
blob982201b0285adbf2d3614d7ae713eec03ddef71b
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 second, third, or fourth generation Ipod Nano.
7 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{ipodvideo}{
12 \note{Rockbox presently runs only on the 5th and 5.5th generation Ipod videos.
13 Rockbox does \emph{not} run on the newer, 6th/Classic generation Ipod.
14 For information on identifying which Ipod you own, see this page on Apple's
15 website: \url{http://www.info.apple.com/kbnum/n61688}.
18 \opt{e200,c200}{
19 \note{Rockbox doesn't function on the newer v2 models. They can be identified
20 by checking the Sandisk firmware version number under
21 Settings $\rightarrow$ Info. The v1
22 firmware is named 01.xx.xx, while the v2 firmware begins with 03.}
25 \section{Overview}
26 There are two ways of installing Rockbox: automated and manual. While the
27 manual way is older, more tested and proven to work correctly, the
28 automated installation is based on a nice graphical application that does
29 almost everything for you. It is still important that you have
30 an overview of the installation process to be able to select the correct
31 installation options.
33 \opt{MASCODEC}{Rockbox itself comes as a single package. There is no need
34 to install additional software for running Rockbox.}
35 \opt{swcodec} {
36 \opt{HAVE_RB_BL_ON_DISK}{There are three separate components,
37 two of which need to be installed in order to run Rockbox:}
38 \opt{HAVE_RB_BL_IN_FLASH}{There are two separate components
39 which need to be installed in order to run Rockbox:}
41 \begin{description}
42 \opt{HAVE_RB_BL_ON_DISK}{
43 \item[The \playerman{} bootloader.]
44 The \playerman{} bootloader is the program that tells your \dap{} how to load
45 and start the original firmware. It is also responsible for any emergency,
46 recovery, or disk modes on your \dap{}. This bootloader is stored in special flash
47 memory in your \playerman{} and comes factory-installed. It is not necessary
48 to modify this in order to install Rockbox.}
50 \item[The Rockbox bootloader.] \index{Bootloader}
51 \opt{HAVE_RB_BL_ON_DISK}{The Rockbox bootloader is loaded from disk by
52 the \playerman{} bootloader. It is responsible for loading the Rockbox
53 firmware and for providing the dual boot function. It directly replaces the
54 \playerman{} firmware in the \daps{} boot sequence.
55 \opt{gigabeatf}{\note{Dual boot does not currently work on the Gigabeat.}}}
57 \opt{HAVE_RB_BL_IN_FLASH}{
58 The bootloader is the program that tells your
59 \dap{} how to load and start other components of Rockbox. This is the
60 component of Rockbox that is installed to the flash memory of your
61 \playerman.}
63 \item[The Rockbox firmware.]
64 \opt{HAVE_RB_BL_IN_FLASH}{Unlike the \playerman{} firmware, which runs
65 entirely from flash memory,}
66 \opt{HAVE_RB_BL_ON_DISK}{Similar to the \playerman{} firmware,}
67 most of the Rockbox code is contained in a
68 ``build'' that resides on your \daps{} drive. This makes it easy to
69 update Rockbox. The build consists of a directory called
70 \fname{.rockbox} which contains all of the Rockbox files, and is
71 located in the root of your \daps{} drive.
73 \end{description}
76 \nopt{player} {
77 Apart from the required parts there are some addons you might be interested
78 in installing.
79 \begin{description}
80 \item[Fonts.] Rockbox can load custom fonts. The fonts are
81 distributed as a separate package and thus need to be installed
82 separately. They are not required to run Rockbox itself but
83 a lot of themes require the fonts package to be installed.
85 \item[Themes.] The view of Rockbox can be customized by themes. Depending
86 on your taste you might want to install additional themes to change
87 the look of Rockbox.
88 \end{description}
91 \section{Prerequisites}\label{sec:prerequisites}
92 \index{Installation!Prerequisites}
93 Before installing Rockbox you should make sure you meet the prerequisites.
94 You may need some additional tools for installation. In most cases these will already be available on your computer, but if not, installing some additional
95 software might be necessary.
97 \begin{description}
98 \item[USB connection.] To transfer Rockbox to your \dap{} you need to
99 connect it to your computer. For manual installation/uninstallation, or
100 should autodetection fail during automatic installation, you need to know
101 where to access the \dap{}. On Windows this means you need to figure out
102 the drive letter associated with the \dap{}. On Linux you need to know the
103 mount point of your \dap{}.
105 \opt{ipod}{
106 Your \dap{} should enter disk mode automatically when connected to a
107 computer via USB. If your computer does not recognise your \dap{}, you may
108 need to enter the disk mode manually. Disconnect your \dap{} from the
109 computer. Hard reset the \dap{} by pressing and holding the \ButtonMenu{} and
110 \ButtonSelect{} buttons simultaneously. As soon as the \dap{} resets, press
111 and hold the \ButtonSelect{} and \ButtonPlay{} buttons simultaneously. Your
112 \dap{} should enter disk mode and you can try reconnecting to the computer.
115 \opt{ipod3g,ipod4g,ipodcolor,ipodmini}{
116 \note{\index{Firewire}Firewire detection is not supported in Rockbox at
117 the moment. Please use USB only.}
119 \opt{x5}{
120 \note{When instructed to connect/disconnect the USB cable, always use
121 the USB port through the subpack, not the side 'USB Host' port! The side port
122 is intended to be used for USB OTG connections only (digital cameras, memory
123 sticks, etc)!}
126 \opt{sansa}{\warn{The following steps require you to change the setting in
127 \setting{Settings $\rightarrow$ USB Mode} to \setting{MSC} from within the
128 original firmware. Never extract files to your \dap{} while it is in
129 recovery mode.}}
130 \opt{h10,h10_5gb}{\warn{The following steps require you to use UMS mode and so
131 may require use of the UMS trick as described in the bootloader installation
132 section.}}
133 \opt{gigabeatf}{\warn{During installation, do not connect your \dap{}
134 using the cradle but plug the USB cable directly to the \dap{}.}}
135 \end{description}
136 For manual installation and customization additional software is required.
137 \begin{description}
138 \item[ZIP utility.]\index{zip}
139 Rockbox is distributed as a compressed archive using the
140 \fname{.zip} format. Your computer will normally already have a means of
141 handling such archive files. Windows XP has built-in support for
142 \fname{.zip} files and presents them to you as directories unless you
143 have installed a third party program that handles compressed files. For
144 other operating systems this may vary. If the \fname{.zip} file format
145 is not recognised on your computer you can find a program to handle them
146 at \url{http://www.info-zip.org/} or \url{http://sevenzip.sf.net/}, both of
147 which can be downloaded and used free of charge.
148 \item[Text editor.] As you will see in the following chapters, Rockbox is
149 highly configurable. In addition to saving configurations,
150 Rockbox also allows you to create customised configuration files. If you
151 would like to edit custom configuration files on your computer, you will
152 need a text editor like Windows' ``Wordpad''.
153 \end{description}
155 \opt{ipod}{
156 \note{In addition to the requirements described above, Rockbox only works on
157 Ipods formatted with the FAT32 filesystem (i.e. Ipods initialized by Itunes
158 for Windows). It does not work with the HFS+ filesystem (i.e. Ipods
159 initialized by Itunes for the Mac). More information and instructions for
160 converting an Ipod to FAT32 can be found on the
161 \wikilink{IpodConversionToFAT32} wiki
162 page on the Rockbox website. Note that after conversion, you can still use
163 a FAT32 Ipod on a Mac.
167 \section{Installing Rockbox}\label{sec:installing_rockbox}\index{Installation}
169 \opt{ipodvideo}{\warn{There are separate versions of Rockbox for the 30GB and
170 60GB/80GB models. You must ensure you download the correct version for your
171 \dap{}.}}
173 \subsection{Automated Installation}
175 \opt{mrobe100}
177 To automatically install Rockbox, download the official installer and
178 housekeeping tool \textsc{Rockbox Utility}. It allows you to:
179 \begin{itemize}
180 \item Automatically install all needed components for using Rockbox
181 (``Small Installation'')
182 \item Automatically install all suggested components (``Full Installation'')
183 \item Selectively install optional components
184 \item Install additional themes
185 \item Install voice files and generate talk clips
186 \item Uninstall all components you installed using Rockbox Utility
187 \end{itemize}
188 Prebuilt binaries for Windows, Linux and MacOS~X are
189 available at the \wikilink{RockboxUtility} wiki page.
191 \warn{When first starting \textsc{Rockbox Utility} run ``Autodetect'',
192 found in the configuration dialog (File $\rightarrow$ Configure). Autodetection
193 can detect most player types. If autodetection fails or is unable to detect
194 the mountpoint, make sure to enter the correct values. The mountpoint indicates
195 the location of the \dap{} in your filesystem. On Windows, this is the drive
196 letter the \dap{} gets assigned, on other systems this is a path in the
197 filesystem.}
199 \opt{ipodvideo}
200 {\warn{Autodetection is unable to distinguish between the
201 \playerman{} 30~GB and 60~GB / 80~GB models and defaults to the
202 30~GB model. This will usually work but you might want to check the
203 detected value, especially if you experience problems with Rockbox.}
206 \note{Rockbox Utility currently lacks some guiding messages. Please have a
207 look at the manual installation instructions if you are stuck
208 during installation.}
210 \subsection{Manual Installation}
212 \subsubsection{Choosing a Rockbox version}\label{sec:choosing_version}
214 There are three different types of firmware binaries available from the
215 Rockbox website:
216 \label{Version}
217 Release version, current build and daily build. You need to decide which one
218 you want to install and get the appropriate version for your \dap{}.
220 \begin{description}
222 \item[Release.] The release version is the latest stable release, free
223 of known critical bugs. The current stable release of Rockbox, version
224 3.0, is available at \url{http://www.rockbox.org/download/}.
226 \item[Current Build.] The current build is built at each source code change to
227 the Rockbox SVN repository and represents the current state of Rockbox
228 development. This means that the build could contain bugs but most of
229 the time is safe to use. You can download the current build from
230 \url{http://build.rockbox.org/}.
232 \item[Archived Build.] In addition to the release version and the current build,
233 there is also an archive of daily builds available for download. These are
234 built once a day from the latest source code in the SVN repository. You can
235 download archived builds from \url{http://www.rockbox.org/daily.shtml}.
237 \end{description}
239 \warn{Because current builds and daily builds are development versions which
240 change frequently, they may behave differently than described in this manual,
241 or they may introduce new (and maybe annoying) bugs. If you do not want to
242 get undefined behaviour from your \dap{}, you should stick to the current
243 stable release if there is one for your \dap{}. If you want to help with
244 project development, you can try development builds and help by reporting bugs.
245 Just be aware that these are development builds that are highly functional
246 but not perfect!}
248 \subsubsection{Installing the firmware}\label{sec:installing_firmware}
250 \begin{enumerate}
252 \item Download your chosen version of Rockbox from the links in the
253 previous section.
255 \item Connect your \dap{} to the computer via USB
256 \opt{ipod3g,ipod4g,ipodmini,ipodcolor}{ or Firewire} as described in
257 the manual that came with your \dap{}.
259 \item Take the \fname{.zip} file that you downloaded and use
260 the ``Extract all'' command of your unzip program to extract
261 the files onto your \dap{}.
263 \note{The entire contents of the \fname{.zip} file should be extracted
264 directly to the root of your \daps{} drive. Do not try to
265 create a separate directory on your \dap{} for the Rockbox
266 files! The \fname{.zip} file already contains the internal
267 structure that Rockbox needs.}
269 \end{enumerate}
271 \opt{archos}{
272 \note{
273 If the contents of the \fname{.zip} file are extracted correctly, you will
274 have a file called \fname{\firmwarefilename} in the main directory of your
275 \daps{} drive, and also a directory called \fname{.rockbox}, which contains a
276 number of other directories and system files needed by Rockbox. If you receive a
277 ``-1'' error when you start Rockbox, you have not extracted the contents of
278 the \fname{.zip} file to the proper location.
282 % This has nothing to do with swcodec, just that these players need our own
283 % bootloader so we can decide where we want the main binary.
284 \opt{swcodec}{
285 \note{
286 If the contents of the \fname{.zip} file are extracted correctly, you will
287 have a directory called \fname{.rockbox}, which contains all the files needed
288 by Rockbox, in the main directory of your \daps{} drive. If you receive a
289 ``-1'' error when you start Rockbox, you have not extracted the contents of
290 the \fname{.zip} file to the proper location.
294 \nopt{player}{
295 \subsubsection{Installing the fonts package}{\index{Installation!Fonts}\label{sec:installing_fonts}
296 Rockbox has a fonts package that is available at
297 \url{http://www.rockbox.org/daily.shtml} or from the \emph{extras} link in
298 the menu on the Rockbox website. While the current builds and
299 daily builds change frequently, the fonts package rarely changes and is
300 therefore not included in these builds. When installing Rockbox for the first
301 time, you should install the fonts package. The release version, on the other hand,
302 does not change, so fonts are included with it.
304 \begin{enumerate}
306 \item Download the fonts package from the link above.
308 \item Take the file that you downloaded above, and use the ``Extract
309 all'' command of your unzip program to extract the files in the
310 \fname{.zip} file onto your \dap{}. As with the firmware installation, the
311 entire contents of the fonts \fname{.zip} should be extracted directly to the
312 root of your \daps{} drive. Do not try to create a separate directory
313 on your \dap{} for the fonts! The \fname{.zip} already contains the
314 correct internal structure.
316 \end{enumerate}
320 \opt{swcodec}{
321 \subsubsection{Installing the bootloader}
322 \opt{h1xx,h300}{\input{getting_started/iriver_install.tex}}
323 \opt{ipod}{\input{getting_started/ipod_install.tex}}
324 \opt{m5,x5}{\input{getting_started/iaudio_install.tex}}
325 \opt{h10,h10_5gb}{\input{getting_started/h10_install.tex}}
326 \opt{gigabeatf}{\input{getting_started/gigabeat_install.tex}}
327 \opt{sansa}{\input{getting_started/sansa_install.tex}}
328 \opt{mrobe100}{\input{getting_started/mrobe100_install.tex}}
329 \opt{gigabeats}{\input{getting_started/gigabeats_install.tex}}
332 \subsection{Enabling Speech Support (optional)}\label{sec:enabling_speech_support}
333 \index{Speech}\index{Installation!Optional Steps}
334 If you wish to use speech support you will also need a voice file, English ones
335 are available from \url{http://www.rockbox.org/daily.shtml}. Download the
336 ``voice'' package for your player and unzip it directly to the root of your \dap.
337 You should now find an \fname{english.voice} in the \fname{/.rockbox/langs}
338 directory on your \dap{}. Voice menus are enabled by default and will come
339 into effect after a reboot. See \reference{ref:Voiceconfiguration} for details
340 on voice settings.
342 \section{Running Rockbox}
343 Remove your \dap{} from the computer's USB port. %
344 \nopt{ipod,e200}{Unplug any connected power supply and turn the unit off. When
345 you next turn the unit on, Rockbox should load. }%
346 \opt{ipod}{Hard resetting the Ipod by holding
347 \opt{IPOD_4G_PAD}{\ButtonMenu{}+\ButtonSelect{}}%
348 \opt{IPOD_3G_PAD}{\ButtonMenu{}+\ButtonPlay{}}
349 for a couple of seconds until the \dap{} resets. Now Rockbox should load.
351 \opt{e200}{Your e200 will automatically reboot and Rockbox should load. }%
352 When you see the Rockbox splash screen, Rockbox is loaded and ready for
353 use.
355 \opt{ipod}{
356 \note{
357 If you have loaded music onto your \dap{} using Itunes,
358 you will not be able to see your music properly in the \setting{File Browser}.
359 This is because Itunes changes your files' names and hides them in
360 directories in the \fname{Ipod\_Control} directory. Files placed on your
361 \dap{} using Itunes can be viewed by initializing and using Rockbox's database.
362 See \reference{ref:database} for more information.
366 \section{Updating Rockbox}
367 Updating Rockbox is easy even if you do not use the Rockbox Utility.
368 Download a Rockbox build.
369 (The latest release of the Rockbox software will always be available from
370 \url{http://www.rockbox.org/download/}). Unzip the build to the root directory
371 of your \dap{} like you did in the installation stage. If your unzip
372 program asks you whether to overwrite files, choose the ``Yes to all'' option.
373 The new build will be installed over your current build.
375 \note{If you use Rockbox Utility be aware that it cannot detect manually
376 installed components.}
378 \section{Uninstalling Rockbox}\index{Installation!uninstall}
380 \nopt{gigabeatf,m5,x5,archos,mrobe100}{
381 \note{The Rockbox bootloader allows you to choose between Rockbox and
382 the original firmware. (See \reference{ref:Dualboot} for more information.)}
385 \subsection{Automatic Uninstallation}
386 You can uninstall Rockbox automatically by using Rockbox Utility. If you
387 installed Rockbox manually you can still use Rockbox Utility for uninstallation
388 but will not be able to do this selectively.
390 \opt{h1xx,h300}{\note{Rockbox Utility cannot uninstall the bootloader due to
391 the fact that it requires a flashing procedure. To uninstall the bootloader
392 completely follow the manual uninstallation instructions below.}}
394 \subsection{Manual Uninstallation}
396 \opt{archos}{
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 \fname{\firmwarefilename} file.
402 \opt{h10,h10_5gb}{
403 If you would like to go back to using the original \playerman{} software,
404 connect the \dap{} to your computer, and delete the
405 \opt{h10}{\fname{H10\_20GC.mi4}}\opt{h10_5gb}{\fname{H10.mi4}} file and rename
406 \fname{OF.mi4} to \opt{h10}{\fname{H10\_20GC.mi4}}\opt{h10_5gb}{\fname{H10.mi4}}
407 in the \fname{System} directory on your \playertype{}. As in the installation,
408 it may be necessary to first put your device into UMS mode.
411 \opt{mrobe100}{
412 If you would like to go back to using the original \playerman{} software,
413 connect the \dap{} to your computer, and delete the
414 \fname{pp5020.mi4} file and rename
415 \fname{OF.mi4} to \fname{pp5020.mi4}
416 in the \fname{System} directory on your \playertype{}.
419 \opt{e200}{
420 If you would like to go back to using the original \playerman{} software,
421 connect the \dap{} to your computer, and follow the instructions to install
422 the bootloader, but when prompted by sansapatcher, enter \texttt{u} for uninstall,
423 instead of \texttt{i} for install. As in the installation, it may be necessary to
424 first put your device into MSC mode.
427 \optv{ipod}{
428 To uninstall Rockbox and go back to using just the original Ipod software, connect
429 the \dap{} to your computer and follow the instructions to install
430 the bootloader but, when prompted by ipodpatcher, enter \texttt{u} for uninstall
431 instead of \texttt{i} for install.
434 \opt{m5,x5}{
435 If you would like to go back to using the original \playerman{} software,
436 connect the \dap{} to your computer, download the original \playername{}
437 firmware from the \playerman{} website, and copy it to the \fname{FIRMWARE}
438 directory on your \playername{}. Turn off the \dap{}, remove the USB cable
439 and insert the charger. The original firmware will automatically be flashed.
442 \opt{h1xx,h300}{
443 \note{
444 If you want to remove the Rockbox bootloader, simply flash an unpatched
445 \playerman{} firmware. Be aware that doing so will also remove the bootloader
446 USB mode. As that mode can come in quite handy (especially when
447 having disk errors) it is recommended to keep the bootloader. It also
448 gives you the possibility of trying Rockbox anytime later by simply
449 installing the distribution files.
450 \opt{h1xx}{
451 The Rockbox bootloader will automatically start the original firmware if
452 the \fname{.rockbox} directory has been deleted.
454 \opt{h300}{%
455 Although if you retain the Rockbox bootloader, you will need to hold the
456 \ButtonRec{} button each time you want to start the original firmware.
461 If you wish to clean up your disk, you may also wish to delete the
462 \fname{.rockbox} directory and its contents.
463 \nopt{m5,x5}{Turn the \playerman{} off.
464 Turn the \dap{} back on and the original \playerman{} software will load.