![]() |
||
---|---|---|
.. | ||
.cargo | ||
src | ||
Cargo.toml | ||
README.md | ||
build.sh | ||
test.sh |
README.md
Rust Demo for OpenWRT(QUECTEL EC200R) Platform
Install the build toolchain into $HOME/Documents/projs/work/sixents/tbox-foton/toolchains/z4
.
Build & Test
# Make sure you have install the aarch64-unknown-linux-gnu target
# rustup target add armv7-unknown-linux-musleabihf
# Build the Release version
# Then you can deploy the program(target/armv7-unknown-linux-musleabihf/release/openwrtrs) to your MPU board
./build.sh --target armv7-unknown-linux-musleabihf -r
# Test locally
./build.sh -r
cargo run -r
# Use the cargo alias command
# Build x86_64-unknown-linux-gnu
cargo b
# Build armv7-unknown-linux-musleabihf
cargo build