Skip to content

Instantly share code, notes, and snippets.

@zmanian
Created June 12, 2020 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zmanian/f6000ae8a51db81f22df862a7cf774d2 to your computer and use it in GitHub Desktop.
Save zmanian/f6000ae8a51db81f22df862a7cf774d2 to your computer and use it in GitHub Desktop.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
export PATH=$PATH:$HOME/.cargo/bin
git clone https://github.com/iqlusioninc/usbarmory.rs
cd usbarmory.rs
git checkout develop
cd host/usbc
cargo install --path .
cd ../usd && cargo install --path .
cargo install --git https://github.com/japaric/flip-lld
rustup component add llvm-tools-preview
rustup target add armv7a-none-eabi
cd ../../firmware
COLD_BOOT=1 cargo run --example blinky
unplug USB device and re-plug it
COLD_BOOT=1 cargo run --example rtfm-8-usb
in a new window: usbc hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment