User Tools

Site Tools

Translations of this page:

howto:toolchain

This is an old revision of the document!


Toolchain

Many of the wiki pages here require installation of a common tool chain to help execute the scripts to do various things on your aircraft. Instead of including this in multiple places, I have tried to pull all of the toolchain instructions to one page to make this easier.

You may have some or all of these components already… so skip anything that is not applicable. These steps are based on an OSX install.

NOTE: The main difference between linux and OSX is where you do your work. To make it easy on linux, you could just create a directory in the same place that the OSX instructions use… or change the instructions below. Whatever you prefer. Windows users need to install python from here first: https://www.python.org/downloads/release/python-2713/

NOTE: The instructions here for OSX talk about two versions of python. The instructions assume we will keep the Apple provided Python 2.x, and install 3.x via home-brew.

In the headings for each tool, I will list in brackets what the tool is used for to help understand why it is needed. If a tool is not specific for a particular os, it is needed for all.

mkdir ~/Documents

1. Install homebrew (OSX)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install python3 (RedHerring)

brew install python3

windows users can get away with python 2.x - its here: https://www.python.org/downloads/release/python-2713/

3. Install pip (pyduml components)

pip3 comes with python 3. However, python 2.x that comes as part of OSX does not contain PIP. Install it using this command

curl https://bootstrap.pypa.io/get-pip.py | sudo python

windows users can install it using python and this script: https://bootstrap.pypa.io/get-pip.py

python get-pip.py

4. Install pathlib (pyduml)

sudo pip install pathlib

windows users, omit the sudo

 pip install pathlib

5. Install pyusb (pyduml)

sudo pip install pyusb

windows users omit the sudo

 pip install pyusb

6. Install pycrypto (RedHerring)

sudo pip3 install pycrypto

7. Install libusb (RedHerring)

brew install libusb

8. Install android platform tools for ADB access (RedHerring / pyduml)

brew cask install android-platform-tools

windows users can use the file from xda-developer forums:

https://forum.xda-developers.com/showthread.php?t=2588979

Download the installer, and answer yes to all the prompts to install the adb toolchain in windows.

9. Install colorise (RedHerring)

sudo gem install colorize

10. Get sign.jar and apktool.jar (deejayeye-modder)

mkdir -p ~/Documents/tools
cd ~/Documents/tools
curl -O https://github.com/appium/sign/raw/master/dist/sign.jar
curl -O https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.3.jar
mv apktool_2.2.3.jar apktool.jar

11. Install dialog (deejayeye-modder)

This is only required for deejayeye-modder - Not needed for duml or Redherring

brew install dialog

12. Install jdk (deejayeye-modder)

This is only required for deehayeye-modder - Not needed for dual or Redherring

Download jdk (java development kit) from here and install

13. Install lfs (Git Firmware)

To get access to firmware, you will need git, plus lfs. Follow the directions here to install lfs. OSX specific instructions are below.

brew update
brew install git-lfs
git lfs install

14. Install pyserial (pyduml)

sudo pip install pyserial

windows users can type this command too.

Now you're all set up to flash and root your DJI product.

15. Install wget

brew install wget

16. Install pkcs7 (dji_ftpd_aes_unscramble)

sudo pip install pkcs7

17. Install minitar (DUMLrub)

sudo gem install minitar
howto/toolchain.1501361724.txt.gz · Last modified: 2017/07/29 20:55 by czokie