Shop our Airplanes Products Drone Products Sales
Thread Tools
May 30, 2018, 05:57 AM
Registered User
Thread OP
Discussion

OpenTX firmware build made easy


Hey!

While developing stuff for OpenTX on my Mac, I was often annoyed by the requirement list that does not really make it easy to build your own firmware if you're not a highly skilled specialist.

So I used a very simple thing to make it really easy: I went for a Docker image. For those who don't know what it is, let's say it is bringing you very light, single purposed virtual machines.

So, you will still have to download / checkout the OpenTX code from Github yourself (whereby that could be done for you as well in a later version) and select which branch / version / release you want to build, but that's basically it. All the rest is handled by this docker image.

All you need to do is install Docker for whatever OS you are using (Windows, Mac or Linux).

Then you run a "magic" command (you need a shell window ;-)):

- Mac OSX / Linux:
Code:
docker run --rm -it -e "FIRMWARE_FILE=/opentx/opentx-x10-noheli-en.bin" -v ~/Src/opentx:/opentx pafleraf/opentx-fw-build
You need to replace "opentx-x10-noheli-en.bin" with whatever your firmware file normally is named (without the version number), and "~/Src/opentx" with the real path to your OpenTX source code directory.

- Windows:
Code:
docker run --rm -it -e "FIRMWARE_FILE=/opentx/opentx-x10-noheli-en.bin" -v "//c/Users/pafleraf/src/opentx":/opentx pafleraf/opentx-fw-build
Here as well, you need to replace "opentx-x10-noheli-en.bin" with whatever your firmware file normally is named (without the version number), and "//c/Users/pafleraf/src/opentx" with the real path to your OpenTX source code directory ("//c" is the normal "C:" drive).

The most up-to-date instructions are here: https://hub.docker.com/r/pafleraf/opentx-fw-build/

Please note that this docker image works for the current source code from the 2.2 branch only, as some tools required to build OpenTX have changed recently (PyQt is out, python Pillow is used instead), but you don't need to care, that's Docker's magic.

In case you want to know more about Docker, there is tons of resources on the web! Here is an example for OSX: https://medium.com/@deepakshakya/beg...l-4a132c094d75

Warning:
ALWAYS properly test the software before using it for real flying! I will not endorse any responsibility (nor will the rest of OpenTX team) for any lost plane / quad or whatever expensive gear you use / own.
Sign up now
to remove ads between posts
May 30, 2018, 11:48 AM
Registered User
Econoline's Avatar
Good info, thanks. I'm going to try a build on my iMac.


Quick Reply
Message:

Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Data OwnTX / OpenTX - Displays, MCU boards etc. that work with OpenTX and similar firmware xnalpf Radios 6 Oct 26, 2018 07:55 AM
Discussion TH9X OpenTX Firmware Issues FlySkyRC FlySky 1 Dec 09, 2016 04:57 AM
Discussion Update XJT firmware using OpenTX + 9XR Pro??? SKT FrSky 0 Oct 10, 2016 12:35 AM
Discussion What's easier er9x or opentx firmware? jcervantes11 Radios 0 Sep 27, 2015 04:18 AM