rockbox/utils/nwztools/plattools
Amaury Pouly 06502772a8 nwztools/plattools: improve makefile to build images automatically
Change-Id: Ibf17fe523c6ef534368d6f94f43fce5ac0c91caf
2016-11-20 21:36:54 +01:00
..
data nwztools: rework dualboot 2016-11-12 22:16:48 +01:00
all_tools.c nwztools/plattools: fix black screen issue in dualboot, rework dualboot 2016-11-06 00:12:04 +01:00
dest_tool.c nwztools/plattools: use player database and rework stuff 2016-11-11 16:07:14 +01:00
dualboot.c nwztools: rework dualboot 2016-11-12 22:16:48 +01:00
Makefile nwztools/plattools: improve makefile to build images automatically 2016-11-20 21:36:54 +01:00
nwz_adc.h nwztools/plattools: add adc test 2016-10-19 18:20:27 +02:00
nwz_fb.h nwztools/plattools: fix black screen issue in dualboot, rework dualboot 2016-11-06 00:12:04 +01:00
nwz_keys.h nwztools/plattools: add test_power, rework input, add test_ts (touchscreen) 2016-10-26 20:46:57 +02:00
nwz_lib.c nwztools: rework dualboot 2016-11-12 22:16:48 +01:00
nwz_lib.h nwztools: rework dualboot 2016-11-12 22:16:48 +01:00
nwz_plattools.h nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
nwz_power.h nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
nwz_ts.h nwztools/plattools: add test_power, rework input, add test_ts (touchscreen) 2016-10-26 20:46:57 +02:00
README
test_adc.c nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
test_bl.c nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
test_display.c nwztools/plattools: use player database and rework stuff 2016-11-11 16:07:14 +01:00
test_fb.c forgot file 2016-11-06 00:15:08 +01:00
test_keys.c nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
test_power.c nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00
test_ts.c nwztools/plattools: rework/clean and add an all-in-one tool 2016-10-31 17:50:16 +01:00

Platform tools
--------------

Those tools are designed to run on the devices. They are mostly tests that can
be run in firmware upgrade mode (using exec_file in utils/nwztools/scripts/). To
compile those, you will need the sony nwz cross compiler. The canonical way to
run them is as follows:

1) Build the tools:
    cd /path/to/utils/nwztools/plattools
    make
Note that the default cross compiler prefix is arm-sony-linux-gnueabi- but it
can be changed using PREFIX:
PREFIX="sony-nwz-linux-gnueabi-" make

2) Embed the wanted excutable in a firmware upgrade for your device. The README
in utils/nwztools/scripts contains more documentation on how to select the right
target. For example if you want to embed test_display for the NWZ-E460 series,
you should run:
    cd /path/to/utils/nwztools/scripts
    make exec_file UPG=test_display_nwze46x.upg NWZ_TARGET=nwz-e46x EXEC=../plattools/test_display.elf

3) Put the upgrade file on the device and trigger a firmware upgrade. Assuming
your NWZ device is /dev/sdb1 and is mounted at /media/pamaury/WALKMAN, run:
    cd /path/to/utils/nwztools/scripts
    make copy_fw_upgrade UPG=test_display_nwze46x.upg NWZ_MOUNT=/media/pamaury/WALKMAN/
    sudo make do_fw_upgrade NWZ_DEV=/dev/sdb1