toys/j3-rs
anjingyu e904daa10b feat: remove binary 2025-01-10 18:50:36 +08:00
..
.cargo chore: migrate 2024-04-14 23:20:38 +08:00
src chore: migrate 2024-04-14 23:20:38 +08:00
Cargo.toml chore: migrate 2024-04-14 23:20:38 +08:00
README.md chore: migrate 2024-04-14 23:20:38 +08:00
build.sh chore: migrate 2024-04-14 23:20:38 +08:00
test.sh chore: migrate 2024-04-14 23:20:38 +08:00

README.md

Rust Demo for J3 Platform

Install the build toolchain into $HOME/Public/J3/gcc-linaro-6.5.0-2018.12-x86_64_aarch64-linux-gnu.

Build & Test

# Make sure you have install the aarch64-unknown-linux-gnu target
# rustup target add aarch64-unknown-linux-gnu

# Build the Release version
# Then you can deploy the program(target/aarch64-unknown-linux-gnu/release/j3rs) to your J3 board
./build.sh --target aarch64-unknown-linux-gnu -r

# Test locally
./build.sh -r
cargo run -r

# Use the cargo alias command
# Build x86_64-unknown-linux-gnu
cargo b
# Build aarch64-unknown-linux-gnu
cargo build