summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/README
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-10-19 17:03:52 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2016-10-19 17:09:04 +0200
commitba91ff10e8c974e50e429d072641ac5e0acdd72e (patch)
treea8ef07988845f67e22dfed9bef3602126e831da0 /utils/nwztools/plattools/README
parent13d892eef1c78d14314b7d3a2cb9035e9ba1420c (diff)
downloadrockbox-ba91ff10e8c974e50e429d072641ac5e0acdd72e.tar.gz
rockbox-ba91ff10e8c974e50e429d072641ac5e0acdd72e.zip
nwztools: add a new plattools directory with code to run on the device
This is code is intended to development into a library of code for the NWZ that will be useful to write the "bootloader" on those device. At the same time, it comes with test programs that are easy to run in firmware upgrade mode and also provide a great test bench for the library. At the moment, two test programs are available: - test_display: simply prints two messages using /usr/bin/lcdmsg - test_keys: displays input key event Change-Id: I9d214894ffc9127b528fcdd3eb5d6b61f4e657a7
Diffstat (limited to 'utils/nwztools/plattools/README')
-rw-r--r--utils/nwztools/plattools/README27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/nwztools/plattools/README b/utils/nwztools/plattools/README
new file mode 100644
index 0000000000..e33dfeb354
--- /dev/null
+++ b/utils/nwztools/plattools/README
@@ -0,0 +1,27 @@
1Platform tools
2--------------
3
4Those tools are designed to run on the devices. They are mostly tests that can
5be run in firmware upgrade mode (using exec_file in utils/nwztools/scripts/). To
6compile those, you will need the sony nwz cross compiler. The canonical way to
7run them is as follows:
8
91) Build the tools:
10 cd /path/to/utils/nwztools/plattools
11 make
12Note that the default cross compiler prefix is arm-sony-linux-gnueabi- but it
13can be changed using PREFIX:
14PREFIX="sony-nwz-linux-gnueabi-" make
15
162) Embed the wanted excutable in a firmware upgrade for your device. The README
17in utils/nwztools/scripts contains more documentation on how to select the right
18target. For example if you want to embed test_display for the NWZ-E460 series,
19you should run:
20 cd /path/to/utils/nwztools/scripts
21 make exec_file UPG=test_display_nwze46x.upg NWZ_TARGET=nwz-e46x EXEC=../plattools/test_display.elf
22
233) Put the upgrade file on the device and trigger a firmware upgrade. Assuming
24your NWZ device is /dev/sdb1 and is mounted at /media/pamaury/WALKMAN, run:
25 cd /path/to/utils/nwztools/scripts
26 make copy_fw_upgrade UPG=test_display_nwze46x.upg NWZ_MOUNT=/media/pamaury/WALKMAN/
27 sudo make do_fw_upgrade NWZ_DEV=/dev/sdb1