mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-13 03:23:40 +08:00
dragonpilot v2022.07.29 for EON/C2
This commit is contained in:
Executable
+12
@@ -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
|
||||
Executable
+6
@@ -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 &
|
||||
Executable
+31
@@ -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
|
||||
Executable
+7
@@ -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
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Send SIGHUP to updater
|
||||
pkill -1 -f selfdrive.updated
|
||||
Reference in New Issue
Block a user