Base repository to cross-compile Rust applications for the Q7S
.cargo | ||
src | ||
.gitignore | ||
bld-deploy-q7s.sh | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
Cross-compiling Rust for the Q7S
Build with cargo
Build debug image:
cargo build --target armv7-unknown-linux-gnueabihf
You can then transfer the application with scp
. It is recommended to use
the q7s-cp.py
utility which is part of the
EIVE OBSW script folder.
If you use this script, you can use the deploy-q7s.sh
script to deploy the
binary conveniently.
Prerequisites
-
Install rust on your development machine using
rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install standard library for target architecture
rustup target add armv7-unknown-linux-gnueabihf
-
Install a cross-compile toolchain for the Cortex-A9 target and add it to your path. It is recommended to take the same toolchain used to compile the Q7S primary OBSW. See the dedicated README for more details and download links.
-
Install
sshpass
sudo apt-get install sshpass