Pixhawk firmware upload failed

Are you trying to upload via usb? ./waf --upload will try to do so via usb.

If the pixhawk doesn’t restart by itself, unplug it and plug it when ./waf --upload sub asks for it.