panda/board/eps_gw/recover.sh

12 lines
238 B
Bash
Executable File

#!/usr/bin/env sh
set -e
DFU_UTIL="dfu-util"
cd ..
GATEWAY=1 EPS_GW=1 scons -u
cd eps_gw
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08004000 -D ../obj/panda.bin.signed
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08000000:leave -D ../obj/bootstub.panda.bin