diff options
Diffstat (limited to 'utils/nwztools/plattools/README')
-rw-r--r-- | utils/nwztools/plattools/README | 27 |
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 @@ | |||
1 | Platform tools | ||
2 | -------------- | ||
3 | |||
4 | Those tools are designed to run on the devices. They are mostly tests that can | ||
5 | be run in firmware upgrade mode (using exec_file in utils/nwztools/scripts/). To | ||
6 | compile those, you will need the sony nwz cross compiler. The canonical way to | ||
7 | run them is as follows: | ||
8 | |||
9 | 1) Build the tools: | ||
10 | cd /path/to/utils/nwztools/plattools | ||
11 | make | ||
12 | Note that the default cross compiler prefix is arm-sony-linux-gnueabi- but it | ||
13 | can be changed using PREFIX: | ||
14 | PREFIX="sony-nwz-linux-gnueabi-" make | ||
15 | |||
16 | 2) Embed the wanted excutable in a firmware upgrade for your device. The README | ||
17 | in utils/nwztools/scripts contains more documentation on how to select the right | ||
18 | target. For example if you want to embed test_display for the NWZ-E460 series, | ||
19 | you 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 | |||
23 | 3) Put the upgrade file on the device and trigger a firmware upgrade. Assuming | ||
24 | your 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 | ||