5 Install Rust using [`rustup`](https://rustup.rs/).
10 rustup target add powerpc64le-unknown-linux-gnu
11 rustup component add rust-src
15 # Run without FPGA/hardware-simulation
17 Resize your terminal to be at least 100x76.
31 # Run on OrangeCrab v0.2.1
33 Set the OrangeCrab into firmware upload mode by plugging it in to USB while the button is pressed, then run the following commands:
37 make -C rust_voxels_game
38 sudo make FPGA_TARGET=ORANGE-CRAB-0.21 dfuprog DOCKER=1 LITEDRAM_GHDL_ARG=-gUSE_LITEDRAM=false RAM_INIT_FILE=rust_voxels_game/rust_voxels_game.hex MEMORY_SIZE=$((3<<16))
41 Connect a 3.3v USB serial adaptor to the OrangeCrab's TX/RX pins:
43 pins going from the corner closest to the button:
45 | Silkscreen Label | Purpose | Connect to on serial adaptor |
46 |------------------|---------|------------------------------|
47 | GND | Ground | Ground |
51 Then, in a separate terminal that you've resized to be at least 100x76, run
52 (replacing ttyUSB0 with whatever serial device the OrangeCrab is connected to):
54 sudo tio --baudrate=1000000 /dev/ttyUSB0