mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
12 lines
356 B
Bash
Executable File
12 lines
356 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
|
|
DFU_UTIL="dfu-util"
|
|
|
|
scons -u -j$(nproc)
|
|
|
|
PYTHONPATH=.. python3 -c "from python import Panda; Panda().reset(enter_bootstub=True); Panda().reset(enter_bootloader=True)" || true
|
|
sleep 1
|
|
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08020000 -D obj/panda_h7.bin.signed
|
|
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08000000:leave -D obj/bootstub.panda_h7.bin
|