tools: add firmware recovery helpers