From 45bb3350e17d5d0a4b955b46d3574d827edeaebe Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 14 Oct 2019 16:03:31 +1000 Subject: [PATCH 1/2] fix reset_update script --- reset_update.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reset_update.sh b/reset_update.sh index 3b8412999..4941106b1 100755 --- a/reset_update.sh +++ b/reset_update.sh @@ -1,3 +1,7 @@ #!/usr/bin/bash -#cd /data/openpilot && git reset --hard && git pull && reboot -cd /data/openpilot && git status \ No newline at end of file + +export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib +export HOME=/data/data/com.termux/files/home +export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin + +cd /data/openpilot && git reset --hard && git pull && reboot \ No newline at end of file From bfd61871d491195db5260ad52337687cf3909905 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 14 Oct 2019 16:03:44 +1000 Subject: [PATCH 2/2] add a script for update panda firmware --- update_panda_firmware.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 update_panda_firmware.sh diff --git a/update_panda_firmware.sh b/update_panda_firmware.sh new file mode 100755 index 000000000..857c743a3 --- /dev/null +++ b/update_panda_firmware.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib +export HOME=/data/data/com.termux/files/home +export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin + +cd /data/openpilot/panda ; pkill -f boardd ; PYTHONPATH=..; python -c "from panda import Panda; Panda().flash()" \ No newline at end of file