summaryrefslogtreecommitdiff
path: root/manual/getting_started/jztool_install.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual/getting_started/jztool_install.tex')
-rw-r--r--manual/getting_started/jztool_install.tex156
1 files changed, 156 insertions, 0 deletions
diff --git a/manual/getting_started/jztool_install.tex b/manual/getting_started/jztool_install.tex
new file mode 100644
index 0000000000..c492b6987e
--- /dev/null
+++ b/manual/getting_started/jztool_install.tex
@@ -0,0 +1,156 @@
1You need a computer running Windows, Linux, or Mac to install the bootloader.
2The installation utility \fname{jztool} is a command line tool used to load the
3Rockbox bootloader on your \dap{}. Please note that it \emph{only} loads the
4Rockbox bootloader and does not modify your \dap{} in any way. Flashing the
5bootloader happens entirely on the \dap{}, without the intervention of your PC.
6
7It's possible to install Rockbox alongside any original firmware version.
8\opt{fiiom3k}{This includes the ``unofficial'' XVortex firmware.}
9It's also possible to update the original firmware after installing the Rockbox
10bootloader, but this will erase the Rockbox bootloader and you will have to
11install it again if you want to keep using Rockbox.
12
13\begin{itemize}\label{ref:jztool_load_bootloader}
14\item Download the Rockbox bootloader, \bootfilename{}, from
15 \opt{fiiom3k}{\download{bootloader/fiio/m3k/}.}
16 \opt{shanlingq1}{\download{bootloader/shanling/q1/}.}
17\item Download \fname{jztool} from \download{bootloader/fiio/m3k/}.
18\item Connect your player in USB boot mode:
19 \begin{enumerate}
20 \item Make sure your player is fully powered off.
21 \item Connect a USB cable to your player -- but don't plug it in to your
22 computer yet!
23 \item While holding the \ActionIngenicUSBBoot{} button, plug the other end
24 of the USB cable into your computer.
25 \item If your player has entered USB boot mode%
26 \opt{fiiom3k}{the button light will light up and the LCD will remain
27 black. The \playerman{} splash screen will not be displayed.}
28 \opt{shanlingq1}{the LCD will remain black and the \playerman{} splash
29 screen will not be displayed.}
30 \end{enumerate}
31\item Windows users need to follow \reference{ref:install_usb_driver} now
32 to make the \playertype{} accessible to \fname{jztool} before continuing.
33\item Open a command prompt or terminal in the folder where you downloaded
34 \fname{jztool}. Copy \bootfilename{} to that folder so you can easily refer
35 to it on the command line.
36
37 On Windows, run this command to load the bootloader onto your \dap{}.
38 \begin{code}
39 jztool.exe \jztoolsubcommand{} load \bootfilename{}
40 \end{code}
41 Linux or Mac users should run this command. Linux users need to run
42 \fname{jztool} as root to allow it access the USB device.
43 \begin{code}
44 ./jztool \jztoolsubcommand{} load \bootfilename{}
45 \end{code}
46\item If your \dap{} is showing the Rockbox recovery menu, then the Rockbox
47 bootloader has been loaded correctly.
48 % TODO: Screenshot of the recovery menu
49\end{itemize}
50
51To finish the install, you need to flash the Rockbox bootloader to your \dap{}
52using the recovery menu.
53
54\begin{itemize}
55\item Copy \bootfilename{} to the root of a FAT32-formatted SD card, and insert
56 it into your \dap{}.
57\item Select \emph{Backup bootloader} to back up the original firmware's
58 bootloader. This will create a file \bootbackupfilename{} on the root of your
59 SD card. You should back up this file somewhere safe before continuing with
60 the installation. In the unlikely event anything goes wrong, you can copy
61 \bootbackupfilename{} onto your SD card and choose \emph{Restore bootloader}
62 to restore the original \playerman{} bootloader.
63\item Select \emph{Install/update bootloader} from the menu. The installation
64 takes less than a second and once it has finished successfully, you can
65 unplug and power off your \dap{}.
66\end{itemize}
67
68Rarely, a new bootloader might be released to fix bugs or add certain features.
69Updating the bootloader follows the same process as the initial installation.
70Taking a backup is not necessary if you are only updating an existing Rockbox
71bootloader.
72
73Normally the installation will complete without incident, but you may encounter
74one of the following errors. Some are benign and easily corrected while others
75are more serious. You should seek help on one of the Rockbox support channels
76if you get a serious error.
77
78\begin{description}
79\item[File not found.]
80 If you selected \emph{Install/update bootloader}, the missing file is
81 \bootfilename{}; if you selected \emph{Restore bootloader}, the missing file
82 is \bootbackupfilename{}. Copy the missing file to your SD card, and make
83 sure your card is formatted to FAT32, then try again.
84\item[Bad archive.]
85 The file \bootfilename{} appears to be corrupted or doesn't contain the
86 expected contents. Try deleting it from your SD card and copying it again.
87 If the error persists, you might have a corrupted download; try downloading
88 the bootloader again.
89\item[NAND open/read/write error.]
90 This indicates a problem accessing your \daps{} internal flash memory.
91 Write errors are the most serious -- your existing bootloader may be
92 corrupted, leaving your \dap{} unbootable. Seek assistance if you encounter
93 any of these errors \emph{before} retrying the installation.
94\item[Disk I/O error.]
95 There was a problem reading or writing data on the SD card. This message can
96 also be displayed by \emph{Restore bootloader} if the backup file
97 \bootbackupfilename{} does not have the correct size.
98\item[Out of memory or Unknown error.]
99 These are serious errors indicating some low-level system problem.
100 They should never be encountered in normal circumstances.
101\end{description}
102
103\subsubsection{Install the USB driver}\label{ref:install_usb_driver}
104\note{This section is only applicable if you are running \fname{jztool} from
105a Windows computer. Linux and Mac users can safely ignore this section.}
106
107To use \fname{jztool} on a Windows computer, you need to install a USB driver
108so it can access the \dap{} in USB boot mode. \fname{jztool} uses a library
109called \fname{libusb} to access your \dap{}, and on Windows \fname{libusb} can
110use a number of different back-end drivers to access USB devices.
111
112Zadig (\url{https://zadig.akeo.ie/}) is a third-party tool which allows you to
113install various back-end drivers for use with \fname{libusb}-based programs.
114The recommended driver is WinUSB, which is provided by Microsoft and comes
115bundled with recent versions of Windows.
116
117\note{The Rockbox project is not associated with Zadig or its development.
118 In the unlikely event you encounter a Zadig-specific issue that cannot be
119 resolved on Rockbox support channels you may need to seek help elsewhere.}
120
121You will need administrator access to run Zadig. When you are ready, follow the
122steps below to install the driver.
123
124\begin{itemize}
125\item Download Zadig from \url{https://zadig.akeo.ie/}.
126\item Make sure your \dap{} is connected in USB boot mode
127 (see \reference{ref:jztool_load_bootloader}).
128\item Run Zadig and select the USB device corresponding to your player.
129 The USB ID of the \playername{} is \texttt{A108 1000} when it is connected in
130 USB boot mode.
131 % TODO: Screenshot of Zadig window
132 \warn{Be careful not to select the wrong USB device in Zadig! Zadig allows
133 you to override the USB driver of any USB device, and accidentally
134 overwriting the driver for an important device like your mouse or keyboard
135 can cause major problems. Always double check the device before clicking
136 install.}
137\item Select the WinUSB driver from the list and click \emph{Install}.
138\item Wait for the installation to finish, then close Zadig.
139\end{itemize}
140
141If the installation was successful you can return to
142\reference{ref:jztool_load_bootloader} and run \fname{jztool}. If you get
143``Cannot open USB device'' errors from \fname{jztool} or any
144\fname{libusb}-related errors, you can try some of the steps below to fix the
145problem.
146
147\begin{itemize}
148\item Unplug your \dap{} and force a power-off by holding the power button
149 for 10 seconds. Then reconnect it and try running \fname{jztool} again.
150\item Restart your computer and try again.
151\item Try installing a different USB driver, for example ``libusbK''.
152 Some users have reported difficulties with the WinUSB driver and have
153 had success by trying an alternate driver.
154\end{itemize}
155
156If problems persist you should ask for help on the Rockbox support channels.