Home

Awesome

butter

Episode 3: The ¯\_(ツ)_/¯ Strikes Back

Purpose

This program will enable fastboot on DJI Air Unit (Lite), DJI FPV Goggles V1 and DJI FPV Goggles V2. This means you can recover or forcefully downgrade your devices firmware ignoring antirollback.

Supported platforms

Sorry OS X users, you will need to find a friend with a supported PC. If someone has any ideas on how to make the recovery USB device that shows up for 5 seconds during DJI device power up successfully enumerate on OS X in libusb (or at all) we're all ears.

Usage

First time V2 Goggles users should:

For all other purposes, please find the appropriate package below and follow the included README.txt:

Troubleshooting

Unable to connect to DJI Recovery device

If flashing your device with butter never gets past "[ ] Waiting for DJI Recovery device to enumerate.." here's what you can do:

Usually some combination of cables and USB ports will work. If not, find a friend with a PC willing to help out. Raspberry PIs are also known to work.

Firmware version not changed after flashing

Flashing with butter completes sucsesfully (you see individual partitions such as system, system2, vendor, vendor_2 being flashed with the script) but Assistant still shows me the old version number.

This is normal, the FW version is stored separately in the data partition in flash and doesn't always get wiped during a restore. Just proceed to rooting.

Advanced usage

Windows users need to install drivers first.

To boot your device for fastboot flashing launch the butter binary and power on your device.

butter-x86_64-w64-mingw32.exe [device]

Where device is one of:

If no argument is supplied you can select the device interactively.

Then use fastboot to flash your devices partitions. Note that you will need raw partition images. Methods for using DDD firmware archives will be released at a later date. See Usage for pre-converted archives.

Generating new packages

With Docker

For most users, it's reccomended to run the packager via docker.

Given:

on Linux we need to run:

docker run -v "$(pwd)"/firmwares:/app/firmwares -v "$(pwd)"/packages:/app/packages fpvwtf/butter-packager

on Windows with Powershell we need to run:

docker run -v ${PWD}\firmwares:/app/firmwares -v ${PWD}\packages:/app/packages fpvwtf/butter-packager

Note that ./ becomes "$(pwd)" on Linux or ${PWD} in PowerShell on Windows because docker needs non-relative paths for mounts.

Without Docker

Clone this repository and put your firmware .bin files obtained from DDD into packager/firmwares/. You'll have to figure out any dependency issues as they come up, or see the included Dockerfile for reference.

Then run:

cd packager
make

You should find the output packages in packager/packages/

Building many packages at once

Firmwares can be extracted in parralel, but note the separate invocation for the packages target. The Makefile has some issues.

cd packager
make -j32 firmwares
make packages
make superpack

Todo

Why isn't it spelled wrong?

Because.

Support the effort

If you'd like, you can support the effort on Open Collective.