Squashed 'panda/' content from commit ae816c104

git-subtree-dir: panda
git-subtree-split: ae816c104a99a8cd4d508ccd6abdc7b93053529c
This commit is contained in:
Vehicle Researcher
2019-06-28 21:09:12 +00:00
commit dba8e01e54
322 changed files with 61961 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
*.zip
+40
View File
@@ -0,0 +1,40 @@
#!/bin/bash
if [ ! -d "../../pandaextra" ]; then
echo "No release cert found, cannot build release."
echo "You probably aren't looking to do this anyway."
exit
fi
export RELEASE=1
# make ST + bootstub
pushd .
cd ../board
make clean
make obj/panda.bin
make obj/bootstub.panda.bin
popd
# make ESP
pushd .
cd ../boardesp
make clean
make user1.bin
make user2.bin
popd
# make release
mkdir obj
make -f ../common/version.mk
make obj/gitversion.h
RELEASE_NAME=$(python -c "import sys;sys.stdout.write(open('obj/gitversion.h').read().split('\"')[1])")
echo -en $RELEASE_NAME > /tmp/version
rm -rf obj
# make zip file
pushd .
cd ..
zip -j release/panda-$RELEASE_NAME.zip ~/one/panda/board/obj/bootstub.panda.bin ~/one/panda/board/obj/panda.bin ~/one/panda/boardesp/user?.bin ~/one/panda/boardesp/esp-open-sdk/ESP8266_NONOS_SDK_V1.5.4_16_05_20/bin/boot_v1.5.bin /tmp/version
popd
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
mkdir -p /tmp/panda_firmware
unzip -o $1 -d /tmp/panda_firmware
curl http://192.168.0.10/
echo "flashing user1"
curl http://192.168.0.10/espupdate1 --upload-file /tmp/panda_firmware/user1.bin
echo "flashing user2"
curl http://192.168.0.10/espupdate2 --upload-file /tmp/panda_firmware/user2.bin
echo "waiting 10s for reboot"
sleep 10
echo "flashing st"
curl http://192.168.0.10/stupdate --upload-file /tmp/panda_firmware/panda.bin
sleep 2
curl http://192.168.0.10/
echo "done"