summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/README
diff options
context:
space:
mode:
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