mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
no hardware test
This commit is contained in:
26
deploy.sh
26
deploy.sh
@@ -66,16 +66,17 @@ then
|
|||||||
PORT=/dev/ttyUSB0
|
PORT=/dev/ttyUSB0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -z "$PORT" ]
|
# if [ -z "$PORT" ]
|
||||||
then
|
# then
|
||||||
echo "ESP likely not connected! Exiting now."
|
# echo "ESP likely not connected! Exiting now."
|
||||||
echo "Make sure the ESP is connected with a data USB cable, and try again."
|
# echo "Make sure the ESP is connected with a data USB cable, and try again."
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
esptool.py erase_flash &&
|
# esptool.py erase_flash &&
|
||||||
git pull &&
|
# git pull &&
|
||||||
cd factory &&
|
cd factory &&
|
||||||
cargo espflash flash --release --port $PORT &&
|
# cargo espflash flash --release --port $PORT &&
|
||||||
|
cargo b -r
|
||||||
cd ../sphinx-key &&
|
cd ../sphinx-key &&
|
||||||
|
|
||||||
if [ $MODE = "release" ]
|
if [ $MODE = "release" ]
|
||||||
@@ -86,8 +87,9 @@ else
|
|||||||
fi &&
|
fi &&
|
||||||
|
|
||||||
esptool.py --chip esp32-c3 elf2image target/riscv32imc-esp-espidf/$MODE/$BIN &&
|
esptool.py --chip esp32-c3 elf2image target/riscv32imc-esp-espidf/$MODE/$BIN &&
|
||||||
esptool.py --chip esp32c3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x50000 target/riscv32imc-esp-espidf/$MODE/$BIN.bin &&
|
# esptool.py --chip esp32c3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x50000 target/riscv32imc-esp-espidf/$MODE/$BIN.bin &&
|
||||||
cd .. &&
|
cd .. &&
|
||||||
shasum --algorithm 256 --check manifest.txt &&
|
shasum --algorithm 256 --check manifest.txt &&
|
||||||
cd sphinx-key &&
|
echo done
|
||||||
cargo espflash monitor --port $PORT
|
# cd sphinx-key &&
|
||||||
|
# cargo espflash monitor --port $PORT
|
||||||
|
|||||||
Reference in New Issue
Block a user