1.清理之前的编译中间文件,一定要清理一下,能避免很多奇怪的问题 ./waf distclean 2.设置编译目标为针对你的硬件的BootLoader YourBoad是对应你的硬件,例如:CUAVv5 ./waf configure --board YourBoard --bootloader 3.编译Bootloader ./waf bootloader 编译生成的BootLoader文件为“ardupilot\build\YourBoard\bin\AP_Bootloader.bin”