dragonpilot v2022.07.29 for EON/C2

This commit is contained in:
Dragonpilot Team
2022-07-29 03:49:20 +00:00
commit e31cc875ad
1521 changed files with 491358 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/bash
if [ -z "$BASEDIR" ]; then
BASEDIR="/data/openpilot"
fi
source "$BASEDIR/launch_env.sh"
echo "Installing NEOS update"
NEOS_PY="$BASEDIR/system/hardware/eon/neos.py"
MANIFEST="$BASEDIR/system/hardware/eon/oneplus.json"
$NEOS_PY --swap-if-ready $MANIFEST
$BASEDIR/system/hardware/eon/updater $NEOS_PY $MANIFEST
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
DFU_UTIL="dfu-util"
/data/openpilot/selfdrive/ui/qt/spinner &
python -c "from panda import Panda; Panda().flash('/data/openpilot/panda/board/obj/panda.bin.signed')"
killall spinner &
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env sh
DFU_UTIL="dfu-util"
STANDARD_FW="/data/openpilot/panda/board/obj/panda.bin.signed"
TESTING_FW="/data/openpilot/panda/board/obj/panda.bin.testing.signed"
ATL=`cat /data/params/d/dp_atl`
/data/openpilot/selfdrive/ui/qt/spinner &
python -c "from panda import Panda; Panda().reset(enter_bootstub=True); Panda().reset(enter_bootloader=True)" || true
sleep 1
FW=$STANDARD_FW
if [ -f /data/params/d/dp_atl ] && [ $ATL != "0" ]; then
if [ -f /data/openpilot/panda/board/obj/panda.bin.testing.signed ]; then
echo "Use testing firmware..."
FW=$TESTING_FW
else
echo "Missing testing firmware, use standard firmware instead..."
fi
else
echo "Use standard firmware..."
fi
echo "\n\n\nUpdating panda.bin..."
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08004000 -D $FW
echo "\n\n\nUpdating bootstub.panda.bin..."
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08000000:leave -D /data/openpilot/panda/board/obj/bootstub.panda.bin
sleep 1
killall spinner &
reboot
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
# Stop updater
pkill -2 -f selfdrive.updated
# Remove pending update
rm -f /data/safe_staging/finalized/.overlay_consistent
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
# Send SIGHUP to updater
pkill -1 -f selfdrive.updated