arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Building the bootloader

Instructions for building the bootloader from source using the console.

hashtag
Pre-built bootloader binary

It is not (always) required to build the bootloader youself. We provide a pre-built bootloader binary on the Downloads page:

Downloadschevron-right

hashtag
Building the PX4 bootloader from source

To build the bootloader, you will need the , which you should have setup in your development virtual machine. When the toolchain has been installed, you can run the following commands in the command line tool available on your operating system or installed through the development toolchain.

  • First, clone the PX4 bootloader repository: git clone https://github.com/PX4/Bootloader

  • Then, change your working directory to the just cloned repository: cd Bootloader/

  • Synchronize submodules: git submodule sync --recursive

The bootloader is now available under Bootloader/build/fmuk66v3_bl/fmuk66v3_bl.bin

hashtag
Updating your local clone of the PX4 Bootloader repository

In case you already have the bootloader repository cloned, you can pull in the most recent changes and rebuild the bootloader binary. Open a console and go to your local clone of the PX4 Bootloader repository

If you want to checkout another branch, or switch back to master branch, you can do that first.

  • Fetch available branches in the remote (online) repository: git fetch

  • Checkout another branch: git checkout branchname

Now make sure your local repository is up-to-date with the latest upstream changes:

  • Pull in new changes: git pull

  • Synchronize submodules: git submodule sync --recursive

  • Update the submodules:git submodule update --recursive --init

You can now rebuild the RDDRONE-FMUK66 PX4 bootloader: make fmuk66v3_bl

hashtag
Writing the bootloader

Instructions for are availabe in the user guide. for programming binaries onto the FMU are available in the developer guide.

  • Update the submodules:git submodule update --recursive --init

  • Build the RDDRONE-FMUK66 PX4 bootloader: make fmuk66v3_bl

  • PX4 development toolchain
    writing the bootloader to the board
    More detailed instructions