toys/openwrt-rs
anjingyu 5b9e3898e1 feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
..
.cargo feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
src feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
Cargo.toml feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
README.md feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
build.sh feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00
test.sh feat: openwrt QUECTEL EC200R 2025-05-18 11:06:48 +08:00

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