Note: The following procedures were tested to work for both raspberry pi 2b and 2b+.
curl https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env
git clone https://github.com/trustnote/rust-trustnote.git
cargo build
Note: You may need to run sudo apt install libssl-dev if you see error messages like this:
error: failed to run custom build command for `openssl-sys v0.9.35`
sudo apt-get install make git-core ncurses-dev gcc-arm*
cd ttt
nano .cargo/config
[target.arm-unknown-linux-gnueabi]
linker = "arm-linux-gnueabi-gcc"
ar = "arm-linux-gnueabi-gcc"
rustup target add armv7-unknown-linux-gnueabihf
cargo build --target arm-unknown-linux-gnueabi
If successful, you will find the executable ttt from target/arm-unknown-linux-gnueabi/debug/ where you can deploy the binary to the target.