Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.64 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.64 KB

RITOS

For proposal please refer to here. For weekly meeting notes please refer to notes.

Install suitable rust toolchain

curl https://sh.rustup.rs -sSf             \
    |                                      \
    sh -s --                               \
    --default-toolchain nightly-2019-12-20 \
    --component rust-src llvm-tools-preview rustfmt rls rust-analysis

source $HOME/.cargo/env
cargo install cargo-xbuild cargo-binutils

Firmware for Raspberry Pi 3

The official firmware for RPi 3 B+:

Boot on Raspberry Pi 3

  1. Create an FAT32 partition named boot and then copy the files above and kernel8.img to the microSD card. And create a config.txt file with contents:
init_uart_clock=48000000
  1. Insert the microSD card to RPi 3 and connect the USB series to host PC.

  2. Run screen on the host PC

sudo screen /dev/ttyUSB0 230400

Chainboot

make before demo_payload_rpi3.img become useful. Then you can make chainboot. Need ruby runtime environment and colorize, ruby-progressbar, serialport gem packages.

GPIO and PWM driver

  1. Use gpio().setup(pin, direction, pull) to set up GPIO pins and clear the output bit respectively.

  2. Write or read the status of GPIO pins by using gpio().output(pin, value) and gpio().input(pin)