Skip to content

final-project-extrasecond created by GitHub Classroom

Notifications You must be signed in to change notification settings

ECS-251-W2020/ritos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

final-project-extrasecond created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •