Raspberry Pi SAFE Thread

Thanks for all your help.

Raspberry Pi 4, 8GB

uname -m gave me aarch64

so… i’ll have to reconfirm these notes on a clean droplet but these are some unorganized
notes I jotted down that might help others.

sudo apt update
sudo apt-get install gcc-aarch64-linux-gnu (I think I had to do this instead of the rustup command later)
curl --proto ‘=https’ --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup target add aarch64-unknown-linux-musl
rustup target add aarch64-linux-gnu-gcc

~/.cargo$ cat config
[target.aarch64-unknown-linux-musl]
linker=“aarch64-linux-gnu-gcc”
rustflags = [ “-C”, “target-feature=+crt-static”, “-C”,“link-arg=-lgcc” ]

Then use the following in each repo checked out from maidsafe

CC=aarch64-linux-gnu-gcc cargo build --release --target=aarch64-unknown-linux-musl

4 Likes