mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 15:24:32 +01:00
doc: update instructions for linux
This commit is contained in:
@@ -39,6 +39,7 @@ then
|
|||||||
fi
|
fi
|
||||||
for FILE in /dev/tty.*
|
for FILE in /dev/tty.*
|
||||||
do
|
do
|
||||||
|
# Check for port on macOS
|
||||||
if check_port $FILE
|
if check_port $FILE
|
||||||
then
|
then
|
||||||
PORT=$FILE
|
PORT=$FILE
|
||||||
@@ -46,6 +47,14 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -z "$PORT" ]
|
if [ -z "$PORT" ]
|
||||||
|
then
|
||||||
|
# Check for port on linux
|
||||||
|
if check_port /dev/ttyUSB0
|
||||||
|
then
|
||||||
|
PORT=/dev/ttyUSB0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
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."
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
## Instructions to build and run the Sphinx Key signer
|
## Instructions to build and run the Sphinx Key signer
|
||||||
|
|
||||||
### Software setup ( MacOS )
|
### Software setup ( Linux, macOS )
|
||||||
|
|
||||||
- Make sure you have the Apple Command Line Developer tools installed on your machine. If not, run `xcode-select --install`
|
- On macOS, make sure you have the Apple Command Line Developer tools installed on your machine.
|
||||||
- Install rust. You can grab the installation command at https://www.rust-lang.org/tools/install
|
- Install rust. You can grab the installation command at https://www.rust-lang.org/tools/install
|
||||||
- Install brew. Get the installation command at https://brew.sh/
|
- Install python3.
|
||||||
- Install python3. You can run `brew install python3` if necessary.
|
|
||||||
- Run the following commands (the last one will take a while, go for a walk or something 😀):
|
- Run the following commands (the last one will take a while, go for a walk or something 😀):
|
||||||
```
|
```
|
||||||
pip install esptool
|
pip install esptool
|
||||||
rustup install nightly
|
rustup install nightly-2022-10-20
|
||||||
rustup component add rust-src --toolchain nightly
|
rustup component add rust-src --toolchain nightly-2022-10-20
|
||||||
cargo install cargo-espflash ldproxy
|
cargo install cargo-espflash ldproxy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user