summaryrefslogtreecommitdiff
path: root/rbutil/jztool/README.md
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-13 16:58:15 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-17 20:23:19 +0000
commitb41d53792c4c4e4abd6d810b2765d865775f5104 (patch)
treeae3e02b961c655cd49b3c13bc895a18547ceeec1 /rbutil/jztool/README.md
parent1b8542490da3283dfa0ce0f3363f16eab0609815 (diff)
downloadrockbox-b41d53792c4c4e4abd6d810b2765d865775f5104.tar.gz
rockbox-b41d53792c4c4e4abd6d810b2765d865775f5104.zip
jztool: New utility for installing a bootloader on FiiO M3K
At present, this is just a command line tool for Linux only. Integrating this with the Rockbox utility and porting to other platforms should be straightforward; the README contains more information. Change-Id: Ie66fc837a02ab13c878925360cabc9805597548a
Diffstat (limited to 'rbutil/jztool/README.md')
-rw-r--r--rbutil/jztool/README.md60
1 files changed, 60 insertions, 0 deletions
diff --git a/rbutil/jztool/README.md b/rbutil/jztool/README.md
new file mode 100644
index 0000000000..6a9b78f8d7
--- /dev/null
+++ b/rbutil/jztool/README.md
@@ -0,0 +1,60 @@
1# jztool -- Ingenic device utility & bootloader installer
2
3The `jztool` utility can install, backup, and restore the bootloader on
4Rockbox players based on a supported Ingenic SoC.
5
6## FiiO M3K
7
8To use `jztool` on the FiiO M3K you have to connect the player to your
9computer in USB boot mode.
10
11The easiest way to do this is by plugging in the microUSB cable to the M3K
12and holding the volume down button while plugging the USB into your computer.
13If you entered USB boot mode, the button light will turn on but the LCD will
14turn off.
15
16To install or update the Rockbox bootloader on the M3K, use the command
17`jztool fiiom3k install`. It is recommended that you take a backup of your
18current bootloader so you can restore it in case of any problems.
19
20After any operation finishes, you will have to force a power off of the M3K
21by holding down the power button for at least 10 seconds. This must be done
22whether the operation succeeds or fails. Just don't power off or unplug the
23device in the middle of an operation -- that might make bad things happen.
24
25See `jztool --help` for info.
26
27## TODO list
28
29### Add better documentation and logging
30
31There's only a bare minimum of documentation, and logging is sparse, not
32really enough to debug problems.
33
34Some of the error messages could be friendlier too.
35
36### Integration with the Rockbox utility
37
38Adding support to the Rockbox utility should be mostly boilerplate since the
39jztool library wraps all the troublesome details.
40
41Getting appropriate privileges to access the USB device is the main issue.
42Preferably, the Rockbox utility should not run as root/admin/etc.
43
44- Windows: not sure
45- Linux: needs udev rules or root privileges
46- Mac: apparently does not need privileges
47
48### Porting to Windows
49
50Windows wants to see a driver installed before we can access the USB device,
51the easiest way to do this is by having the user run Zadig, a 3rd party app
52which can install the WinUSB driver. WinUSB itself is from Microsoft and
53bundled with Windows.
54
55Zadig's homepage: https://zadig.akeo.ie/
56
57### Porting to Mac
58
59According to the libusb wiki, libusb works on Mac without any special setup or
60privileges, presumably porting there is easy.