This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
howto:toolchain [2017/07/30 05:31] czokie |
howto:toolchain [2022/05/28 14:45] milo2491 ToDo checked: Instructions for installing GIT for windows users |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Toolchain ====== | ====== Toolchain ====== | ||
- | Many of the wiki pages here require installation of a common | + | Many of the wiki pages here require installation of a common |
+ | These instructions were developed by an OSX user. Others have contributed windows instructions. More recently, I have added an OSX auto installer. Contributions are encouraged to support other platforms. | ||
+ | |||
+ | ===== Auto Install (OSX) ===== | ||
+ | The command below will fetch and execute the most recent installed from Github, and install all required components automagically. | ||
+ | |||
+ | curl -fsSL https:// | ||
+ | |||
+ | There is one other component required if you want to build APK files. [[http:// | ||
+ | |||
+ | **NOTE: If you run this auto install command on OSX, you can skip everything else, unless you want to do a manual install.** | ||
+ | |||
+ | |||
+ | ===== Manual Install ===== | ||
You may have some or all of these components already... so skip anything that is not applicable. | 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. | These steps are based on an OSX install. | ||
Line 14: | Line 27: | ||
mkdir ~/Documents | mkdir ~/Documents | ||
+ | ==== 1. Install homebrew or linuxbrew ==== | ||
- | ===== Auto Install (OSX) ===== | + | Home brew is designed to help with package management |
- | The list of tools is growing. I've added a single line installer script | + | |
- | | + | === OSX === |
+ | / | ||
+ | === Linux === | ||
+ | ruby -e " | ||
- | **NOTE: If you run this auto install command on OSX, you can skip the rest. Its all done automatically for you.** | + | ==== 2. Install base components ==== |
+ | === OSX or LINUX === | ||
+ | Install packages for python, python3, libusb, dialog, wget, git-lfs, and android-platform-tools. Below, | ||
- | ===== 1. Install homebrew (OSX) ===== | + | brew install |
- | + | ||
- | / | + | |
- | + | ||
- | ===== 2. Install python3 (RedHerring) ===== | + | |
brew install python3 | brew install python3 | ||
+ | brew install libusb | ||
+ | brew install dialog | ||
+ | brew install wget | ||
+ | brew install git-lfs | ||
+ | git lfs install | ||
+ | sudo git lfs install --system | ||
+ | brew cask install android-platform-tools | ||
- | windows users can get away with python 2.x - its here: https:// | + | === Windows |
- | + | Windows notes are incomplete at this time. More work required. | |
- | ===== 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:// | + | |
- | windows users can install | + | * Python: Windows users can get away with python 2.x for most of the items we are using. However, this won't work for some of the advanced code like comm_serial2pcap.py. Click [[https:// |
+ | * pip: windows users can install | ||
python get-pip.py | python get-pip.py | ||
- | ===== 4. Install | + | * Python 3 / PIP3 is also needed for some of the advanced tools. |
+ | * Install | ||
+ | * git: TBA | ||
+ | * git-lfs: | ||
+ | * git install git-lfs | ||
+ | * git lfs install | ||
- | sudo pip install pathlib | ||
- | windows users, omit the sudo | + | ==== 3. Install jdk ==== |
- | pip install pathlib | + | This is only required for deejayeye-modder and exploring app.asar |
+ | [[http:// | ||
- | ===== 5. Install | + | ==== 4. Install |
+ | Below is a set of instructions to install Python components. This should work on all platforms if you successfully installed Python 3. | ||
- | | + | |
+ | | ||
+ | pip install pyserial | ||
+ | pip install pkcs7 | ||
+ | pip3 install pycrypto | ||
- | windows users omit the sudo | + | ==== 5. Install |
- | pip install pyusb | + | Below is a set of instructions to install |
- | ===== 6. Install | + | |
- | + | ||
- | sudo pip3 install | + | |
- | ===== 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:// | + | |
- | 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 | sudo gem install colorize | ||
+ | sudo gem install minitar | ||
+ | sudo gem install serialport | ||
+ | sudo gem install highline | ||
- | ===== 10. Get sign.jar and apktool.jar (deejayeye-modder) | + | ==== 6. Get sign.jar and apktool.jar (deejayeye-modder) ==== |
mkdir -p ~/ | mkdir -p ~/ | ||
Line 78: | Line 95: | ||
mv apktool_2.2.3.jar apktool.jar | mv apktool_2.2.3.jar apktool.jar | ||
- | ===== 11. Install dialog (deejayeye-modder) | + | ===== Contribute |
- | This is only required | + | * < |
+ | * <todo # | ||
+ | * <todo # | ||
- | brew install dialog | ||
- | |||
- | ===== 12. Install jdk (deejayeye-modder) ===== | ||
- | This is only required for deehayeye-modder - Not needed for dual or Redherring | ||
- | |||
- | [[http:// | ||
- | |||
- | ===== 13. Install lfs (Git Firmware) ===== | ||
- | To get access to firmware, you will need git, plus lfs. Follow the directions [[https:// | ||
- | |||
- | 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 | ||
- | |||
- | ===== 18. Install serial port (DUMLrub) ===== | ||
- | sudo gem install serialport | ||
- | |||
- | ===== 19. Install highline (DUMLrub/ | ||
- | sudo gem install highline |