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/17 04:27] vk2fro |
howto:pyduml [2017/07/29 23:06] paoloone [5. Flashing] |
||
---|---|---|---|
Line 21: | Line 21: | ||
===== 3. Get some firmware ===== | ===== 3. Get some firmware ===== | ||
- | If you are planning to flash new firmware, you obviously need some firmware files. | + | If you are planning to flash new firmware, you obviously need some firmware files. |
===== 4. Identify the port for the USB link to your aircraft ===== | ===== 4. Identify the port for the USB link to your aircraft ===== | ||
Line 28: | Line 28: | ||
* Power on your aircraft | * Power on your aircraft | ||
* Connect USB from your computer to your aircraft | * Connect USB from your computer to your aircraft | ||
+ | * If you're using windows, check in device manager for the port (assistant 2 must be installed for drivers) then skip to step 5. | ||
* 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 48: | Line 49: | ||
* Put the firmware into the same folder as pyduml.py - ~/ | * Put the firmware into the same folder as pyduml.py - ~/ | ||
- | * Open a terminal window and go to our directory | + | * Open a terminal window/command prompt |
+ | < | ||
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 dji_system.bin | ||
+ | </ | ||
+ | If your on windows substitute ' | ||
+ | < | ||
+ | copy V01.03.0700_Mavic_dji_system dji_system.bin | ||
+ | </ | ||
* Deliver the package | * Deliver the package | ||
+ | < | ||
python pyduml.py /dev/`cat / | python pyduml.py /dev/`cat / | ||
+ | </ | ||
+ | For windows users: | ||
+ | python pyduml.py com#: | ||
+ | where # is the comport number you discovered in device manager. | ||
Flashing takes around 10 minutes. Watch the lights on the aircraft. It may reboot during the procedure but donʼt touch it. Once it chimes and the front beacons stop flashing, its done. Be patient - 10 minutes seems like an awfully long time, but you donʼt get a pretty progress bar like when you flash with assistant. | Flashing takes around 10 minutes. Watch the lights on the aircraft. It may reboot during the procedure but donʼt touch it. Once it chimes and the front beacons stop flashing, its done. Be patient - 10 minutes seems like an awfully long time, but you donʼt get a pretty progress bar like when you flash with assistant. | ||
Line 69: | Line 79: | ||
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 | ||
+ | < | ||
+ | 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: | ||
+ | < | ||
+ | copy fireworks.tar dji_system.bin | ||
+ | </ | ||
* Deliver the package | * Deliver the package | ||
- | + | < | |
- | python pyduml.py /dev/`cat / | + | |
+ | </ | ||
+ | Windows users: | ||
+ | python pyduml.py com#: | ||
* Remove temporary file | * Remove temporary file | ||
rm dji_system.bin | rm dji_system.bin | ||
+ | |||
+ | windows users: | ||
+ | del dji_system.bin | ||
===== 7. Open a shell ===== | ===== 7. Open a shell ===== |