Skip to content

Instantly share code, notes, and snippets.

@xros
Created July 18, 2024 01:31
Show Gist options
  • Save xros/08047038a012f1e84d74e1d86ffbfe12 to your computer and use it in GitHub Desktop.
Save xros/08047038a012f1e84d74e1d86ffbfe12 to your computer and use it in GitHub Desktop.
Building Custom EdgeTX firmware cmake commands in browser using GitPod.io

Building radio firmware in a webbrowser with Gitpod

https://github.com/EdgeTX/edgetx/wiki/Building-radio-firmware-in-a-webbrowser-with-Gitpod

Request a firmware build - 2.7.1 #1951

EdgeTX/edgetx#1951

Build Instructions under Ubuntu 20.04

https://github.com/EdgeTX/edgetx/wiki/Build-Instructions-under-Ubuntu-20.04

Go https://gitpod.io/#https://github.com/edgetx/edgetx/tree/main by signing in with your GitHub account

cd edgetx_main && mkdir build-output && cd build-output

cmake then make


cmake commands

cmake options (for building custom firmwares)

https://github.com/EdgeTX/edgetx/wiki/Compilation-options

settings for radiomaster tx16s mark2

cmake -Wno-dev -DPCB=X10 -DPCBREV=TX16S -DPPM_UNIT=US -DHELI=Y -DBLUETOOTH=Y -DLUA_MIXER=Y -DINTERNAL_GPS=Y -DLUA=Y -DLUA_COMPILER=Y -DINTERNAL_MODULE_MULTI=Y -DMULTIMODULE=Y -DGHOST=Y -DGVARS=Y -DSBUS=Y -DUSB_SERIAL=Y -DFLIGHT_MODES=Y -DDEFAULT_MODE=2 -DPPM_UNIT=US -DCMAKE_BUILD_TYPE=Release ..

I have 2 radios: radiomaster tx16s mark 2 and frsky taranis x9d plus (v2015)

Use the smaller sized firmware if the MCU is out of memory such as X9D plus.


settings for frsky taranis x9d plus (v2015), (huge firmware)

cmake -Wno-dev -DPCB=X9D+ -DAFHDS3=N -DPPM_UNIT=US -DHELI=Y -DBLUETOOTH=Y -DLUA_MIXER=Y -DINTERNAL_GPS=Y -DLUA=Y -DLUA_COMPILER=Y -DINTERNAL_MODULE_MULTI=N -DMULTIMODULE=Y -DGHOST=Y -DXJT=Y -DGVARS=Y -DSBUS=Y -DUSB_SERIAL=Y -DFLIGHT_MODES=Y -DDEFAULT_MODE=2 -DPPM_UNIT=US -DCMAKE_BUILD_TYPE=Release ..


settings for frsky taranis x9d plus (v2015), (lite firmware no ghost)

cmake -Wno-dev -DPCB=X9D+ -DAFHDS3=N -DPPM_UNIT=US -DHELI=Y -DBLUETOOTH=Y -DLUA_MIXER=Y -DINTERNAL_GPS=Y -DLUA=Y -DLUA_COMPILER=Y -DINTERNAL_MODULE_MULTI=N -DMULTIMODULE=Y -DGHOST=N -DXJT=Y -DGVARS=Y -DSBUS=Y -DUSB_SERIAL=Y -DFLIGHT_MODES=Y -DDEFAULT_MODE=2 -DPPM_UNIT=US -DCMAKE_BUILD_TYPE=Release ..


settings for frsky taranis x9d plus (v2015), (lite firmware no bluetooth)

cmake -Wno-dev -DPCB=X9D+ -DAFHDS3=N -DPPM_UNIT=US -DHELI=Y -DBLUETOOTH=N -DLUA_MIXER=Y -DINTERNAL_GPS=Y -DLUA=Y -DLUA_COMPILER=Y -DINTERNAL_MODULE_MULTI=N -DMULTIMODULE=Y -DGHOST=Y -DXJT=Y -DGVARS=Y -DSBUS=Y -DUSB_SERIAL=Y -DFLIGHT_MODES=Y -DDEFAULT_MODE=2 -DPPM_UNIT=US -DCMAKE_BUILD_TYPE=Release ..


frsky taranis x9d plus (v2015), (lite firmware no heli)

cmake -Wno-dev -DPCB=X9D+ -DAFHDS3=N -DPPM_UNIT=US -DHELI=N -DBLUETOOTH=N -DLUA_MIXER=Y -DINTERNAL_GPS=Y -DLUA=Y -DLUA_COMPILER=Y -DINTERNAL_MODULE_MULTI=N -DMULTIMODULE=Y -DGHOST=Y -DXJT=Y -DGVARS=N -DSBUS=Y -DUSB_SERIAL=Y -DFLIGHT_MODES=Y -DDEFAULT_MODE=2 -DPPM_UNIT=US -DCMAKE_BUILD_TYPE=Release ..


make

make configure
make -j`nproc` firmware
cd arm-none-eabi
mv firmware.bin edgetx_main_tx16s_lua-ppmus-mode2_debug.bin

Then flash the firmware edgetx_main_tx16s_lua-ppmus-mode2_debug.bin to your radio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment