This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howto:pyduml [2017/07/19 03:46] vk2fro |
howto:pyduml [2017/08/21 17:40] nils [3. Get some firmware] |
||
---|---|---|---|
Line 23: | Line 23: | ||
If you are planning to flash new firmware, you obviously need some firmware files. The primary source is http:// | If you are planning to flash new firmware, you obviously need some firmware files. The primary source is http:// | ||
+ | **NOTE for Spark RC**: Firmware for Spark RC have the ending " | ||
===== 4. Identify the port for the USB link to your aircraft ===== | ===== 4. Identify the port for the USB link to your aircraft ===== | ||
This step will find the TTY for connectivity to your aircraft, and store it in a file / | This step will find the TTY for connectivity to your aircraft, and store it in a file / | ||
Line 31: | Line 32: | ||
* Open a terminal window | * Open a terminal window | ||
+ | < | ||
ls /dev/tty* | sed -e " | ls /dev/tty* | sed -e " | ||
+ | </ | ||
* Disconnect the USB cable | * Disconnect the USB cable | ||
+ | < | ||
ls /dev/tty* | sed -e " | ls /dev/tty* | sed -e " | ||
+ | </ | ||
* Now find what is our tty port for the aircraft | * Now find what is our tty port for the aircraft | ||
+ | < | ||
diff /tmp/dji.on / | diff /tmp/dji.on / | ||
rm /tmp/dji.on / | rm /tmp/dji.on / | ||
cat / | cat / | ||
+ | </ | ||
===== 5. Flashing ===== | ===== 5. Flashing ===== | ||
FULLY CHARGE A BATTERY!!! do not try to flash with a depleted battery - itʼll only end in tears and a dead aircraft. If you aren't interested in changing firmware and you just want to get root access, skip ahead to the next step. | FULLY CHARGE A BATTERY!!! do not try to flash with a depleted battery - itʼll only end in tears and a dead aircraft. If you aren't interested in changing firmware and you just want to get root access, skip ahead to the next step. | ||
Line 51: | Line 52: | ||
* Open a terminal window/ | * Open a terminal window/ | ||
+ | < | ||
cd ~/ | cd ~/ | ||
+ | </ | ||
* Prepare our package for delivery - Rename the firmware | * Prepare our package for delivery - Rename the firmware | ||
+ | < | ||
cp < | cp < | ||
+ | </ | ||
* For example... | * For example... | ||
- | + | < | |
- | cp V01.03.0700_Mavic_dji_system dji_system.bin | + | cp V01.03.0700_Mavic_dji_system.bin dji_system.bin |
+ | </ | ||
If your on windows substitute ' | If your on windows substitute ' | ||
- | + | < | |
- | | + | copy V01.03.0700_Mavic_dji_system.bin dji_system.bin |
+ | </ | ||
* Deliver the package | * Deliver the package | ||
+ | < | ||
python pyduml.py /dev/`cat / | python pyduml.py /dev/`cat / | ||
- | | + | </ |
For windows users: | For windows users: | ||
python pyduml.py com#: | python pyduml.py com#: | ||
Line 77: | Line 80: | ||
Want to watch the process? if you have root, you can issue the following commands in a second terminal session: | Want to watch the process? if you have root, you can issue the following commands in a second terminal session: | ||
- | + | | |
- | * monitor progress with terminal if you already have root: | + | < |
- | + | adb shell | |
- | | + | busybox tail -f / |
- | | + | </ |
* Remove temporary file from the firmware upload that we created before | * Remove temporary file from the firmware upload that we created before | ||
+ | < | ||
rm dji_system.bin | rm dji_system.bin | ||
- | | + | </ |
Windows users can simply del the file | Windows users can simply del the file | ||
+ | < | ||
del dji_system.bin | del dji_system.bin | ||
+ | </ | ||
+ | The optional batteries then can upgraded/ | ||
===== 6. Rooting ===== | ===== 6. Rooting ===== | ||
- | |||
* Prepare our package for delivery | * Prepare our package for delivery | ||
cp fireworks.tar dji_system.bin | cp fireworks.tar dji_system.bin | ||
- | | ||
Windows users: | Windows users: | ||
- | | + | < |
copy fireworks.tar dji_system.bin | copy fireworks.tar dji_system.bin | ||
- | + | </ | |
- | | + | * Deliver the package |
+ | < | ||
| | ||
- | | + | </ |
Windows users: | Windows users: | ||
python pyduml.py com#: | python pyduml.py com#: |