Skip to content

Toolchain Setup for Ubuntu 18.04 (Bionic)

Firmware Download

The supported firmware versions with Ubuntu 18.04 include v1.10, v1.11 and v1.13. Users can download the corresponding branch from our official Github/Gitee repositories.

Github:

git clone --recursive --branch master_kerloud_v1.10.0 --single-branch https://github.com/cloudkernel-tech/Firmware.git

git clone --recursive --branch master_kerloud_v1.11.3 --single-branch https://github.com/cloudkernel-tech/Firmware.git

git clone --recursive --branch master_kerloud_v1.13.0 --single-branch https://github.com/cloudkernel-tech/Firmware.git

Gitee:

git clone --recursive --branch master_kerloud_v1.10.0 --single-branch https://gitee.com/cloudkernel-tech/Firmware.git

git clone --recursive --branch master_kerloud_v1.11.3 --single-branch https://gitee.com/cloudkernel-tech/Firmware.git

git clone --recursive --branch master_kerloud_v1.13.0 --single-branch https://gitee.com/cloudkernel-tech/Firmware.git

If submodules fail to be downloaded, one candidate solution is to modify the host file following instructions in https://blog.csdn.net/qq_44621510/article/details/95251993. Then submodules can be updated with commands:

cd Firmware
git submodule init
git submodule update --recursive

Toolchain Setup with Scripts

Users are advised to run the two convenience scripts: ubuntu.sh, ubuntu_sim_ros_melodic.sh for easy completion.

Users in mainland China may face the troublesome network problem, hence we provide customized scripts in the directory Firmware/Tools/setup/custom, and users can run the scripts via commands:

cd Tools/setup/custom
bash ubuntu.sh
bash ubuntu_sim_ros_melodic.sh

Build and Upload

(1) Kerloud Uno (branch: master_v1.13.0)

The firmware can be built for Kerloud Uno autopilot via the make command:

make kerloud_fmu-v6x_default

and it can be uploaded via:

make kerloud_fmu-v6x_default upload

(2) Kerloud Mini (branches: master_v1.10.0, master_v1.11.3)

The firmware can be built for Kerloud Mini autopilot via the make command:

make px4_fmu-v3_default

and it can be uploaded via:

make px4_fmu-v3_default upload

(3) Users can also download above target firmware for quick start from the link below:

https://pan.baidu.com/s/1PT0UtT32FRztpqFXrdPyFQ

code: trwj

Common Issues

If failure still occurs in the build process, we advise users to perform the following checks in sequence:

  • (i) Make sure that these two convenience scripts have been executed successfully. If not, follow the corresponding error messages in terminal, and users can easily find solutions with the help of google or bing search engine.

  • (ii) Make sure that the GCC compiler path has been set as an environment variable in ~/.bashrc or ~/.profile as the form below:

    export PATH=~/gcc-arm-none-eabi-7-2017-q4-major/bin:$PATH

    Note that the GCC compiler is under rapid upgrade, later versions than 2017 q4 can cause compatibility problems.

  • (iii) If the conda environment is activated by default, we advise users to turn it off temporarily because it can cause mismatch of python dependencies. Users can do so by commenting the conda initialization section in ~/.bashrc.

  • (iv) If users cannot clone the complete firmware source code, please download the source code from below:

https://pan.baidu.com/s/1PT0UtT32FRztpqFXrdPyFQ

code: trwj