This has only been tested with Ubuntu 20.04 Focal Fossa (https://releases.ubuntu.com/20.04/) on an x86_64/AMD64 architecture. This means all ARM systems, including M1 based processors are incompatible with the following process.
Below is the process in order to build the environment in order to compile px4-firmware surrounding the VOXL2.
- Create an account with qualcomm developer network (https://developer.qualcomm.com/)
- After account has been created and confirmed via email, proceed in the following order on the website above: Downloads –> Software Downloads –> Qualcomm Package Manager
- After Qualcomm Package Manager has been downloaded, proceed to untar the download in whatever directory was used. This can be done by running the following in a terminal/bash window:
tar -xz qualcommpackagemanager.lnx_.2.0_installer_20021.2.tar
- Proceed to run the following post untarring the file above.
sudo apt-get update
sudo apt-get upgrade
sudo apt --fix-broken install
sudo apt-get install xterm
sudo dpkg -i multiarch-support_2.19-0ubuntu6.15_amd64.deb
sudo dpkg -i libgnome-keyring-common_3.12.0-1build1_all.deb
sudo dpkg -i libgnome-keyring0_3.12.0-1build1_amd64.deb
sudo dpkg -i QualcommPackageManager.220.127.116.11.Linux-x86.deb
It is now time to install and archive the necessary Hexagon SDK -
version 18.104.22.168 is required, later versions are not compatible with code base as of now (tested)
- In terminal, proceed to run the following:
- Please wait a few minutes as it takes some time for this GUI to load.
- Once GUI has loaded, proceed to select the Hexagon SDK, ensure that in the drop downs, you select version 22.214.171.124 and proceed to select install on the other drop down. This will prompt you to install to a default directory.
- Once this is done, proceed to tar up this directory by typing the following:
tar -czvf sdk.tgz DIRECTORY_TO_SDK/126.96.36.199/
- Move this file into the rb5 directory by typing the following:
mv DIR_TO_SDK/sdk.tgz DIR_TO_RB5/rb5-flight-px4-build-docker
- Once here, it is time to begin building the docker image. This is done in a three step process:
./run.shNOTE: If docker is not within the USER group, it will require you to run these commands in sudo.
Once inside the interactive docker terminal - proceed to clone down the modalAI px4-firmware git repository. This can be done by typing the following:
git clone https://github.com/modalai/px4-firmware
- Once cloned, proceed to do the following steps:
- Checkout whichever branch you intend on using
- Run whichever board firmware you plan on running PX4 on