Files
openpilot-evo/panda/release/ota_release.sh
T
Vehicle Researcher 6c702630ac Merge commit '9b8e11b10c8e13193eeb95c5f94ab4bf3f021980' as 'panda'
old-commit-hash: 14fb17e22fe4020a46b7be8ef486dddb5210ef08
2017-12-23 17:10:42 -08:00

19 lines
491 B
Bash
Executable File

#!/bin/bash
mkdir -p /tmp/panda_firmware
unzip -o $1 -d /tmp/panda_firmware
curl http://192.168.0.10/
echo "flashing user1"
curl http://192.168.0.10/espupdate1 --upload-file /tmp/panda_firmware/user1.bin
echo "flashing user2"
curl http://192.168.0.10/espupdate2 --upload-file /tmp/panda_firmware/user2.bin
echo "waiting 10s for reboot"
sleep 10
echo "flashing st"
curl http://192.168.0.10/stupdate --upload-file /tmp/panda_firmware/panda.bin
sleep 2
curl http://192.168.0.10/
echo "done"