Building and running PX4 Autopilot on BeagleBone® Blue
This article will explain how build and run the PX4 Autopilot on BeagleBone Blue.
Requirements
Windows Subsystem for Linux (WSL) - Ubuntu 20.04.5 LTS
BeagleBone Blue - Debian GNU/Linux 10 (buster)
Arm GNU Toolchain - 8.3-2019.02
USB to UART Bridge - Silicon Labs CP210x
GNSS and Compass M10Q-5883 - Mateksys (optional)
Digital Airspeed Sensor ASPD-4525 - Mateksys (optional)
PX4 1.15.0 BBBlue pre-compiled binaries PX4 1.14.0 BBBlue pre-compiled binaries
Setup
You need to connect the USB to UART Bridge to the UART1 port of the BeagleBone Blue board. The bridge will allow you to connect to the PX4 Autopilot via QGroundControl or to perform hardware-in-the-loop simulations. The image below shows the setup.


Building PX4 Autopilot v1.14.0
Open a WLS window.
Download and unzip the Arm GNU Toolchain (gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz).
Clone the PX4 Autopilot repository. Make sure you checkout v1.14.0.
Open the
init.cmakefile in theboards/beaglebone/blue/ folder.Change the GIT_TAG from
1abcb0ato290e14fand the GIT_REPOSITORY from https://github.com/dagar/librobotcontrol.git to https://github.com/beagleboard/librobotcontrol.git. This change is required for thelibrobotcontrollibrary to compile and work properly.
Open the
default.px4boardfile in theboards/beaglebone/blue/folder.Add (modify) the following lines to (inside) the
default.px4boardfile.
Go back to the PX4-autopilot folder and execute the following commands.
During the build process, you should observe the following output.
Once the build is complete, you must upload the binaries to the BeagleBone Blue board. Use the following command to upload the binaries and the configuration files.
Running PX4 Autopilot v1.14.0
Once the binaries and the configuration files are uploaded to the BeagleBone Blue you can SSH into the BeagleBone Blue and run the px4 binary. To SSH into the BeagleBone Blue and run the px4 binary execute the following commands:

The px4.config file
The px4.config file is specific for every board. The px4.config file below is specific to the BeagleBoneBlue board only.
Last updated
Was this helpful?