This is an old revision of the document!
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
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
windows users can get away with python 2.x - its here: https://www.python.org/downloads/release/python-2713/
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
sudo pip install pathlib
windows users, omit the sudo
pip install pathlib
sudo pip install pyusb
windows users omit the sudo
pip install pyusb
sudo pip3 install pycrypto
brew install libusb
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.
sudo gem install colorize
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
This is only required for deejayeye-modder - Not needed for duml or Redherring
brew install dialog
This is only required for deehayeye-modder - Not needed for dual or Redherring
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
sudo pip install pyserial
windows users can type this command too.
Now you're all set up to flash and root your DJI product.
brew install wget
sudo pip install pkcs7
sudo gem install minitar
sudo gem install serialport