PX4 setup
参考 https://pixhawk.org/dev/quickstart
=================
sudo apt-get update
sudo apt-get install python-serial python-argparse openocd flex bison libncurses5-dev autoconf texinfo build-essential libftdi-dev libtool zlib1g-dev genromfs git-core wget zip python-empsudo dpkg --add-architecture i386
sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
==============
install
wget https://launchpadlibrarian.net/186124160/gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2
tar -jxf gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2
export PATH=$HOME/gcc-arm-none-eabi-4_8-2014q3/bin:$PATH
ubuntu@ip-172-31-30-154:~$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.4 20140725 (release) [ARM/embedded-4_8-branch revision 213147]
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
=========== build firmware
mkdir px4
cd ~/px4
git clone https://github.com/PX4/Firmware
Fetch the git submodules:
cd Firmware
git submodule init
git submodule update
Building
cd ~/px4/Firmware
make distclean
make archives
make