Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
ui
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

rpizw-rover

A raspberry pi zero w based rover.

Cross Compile Setup

cross compile for arm

# ubuntu
sudo apt-get install -qq gcc-arm-linux-gnueabihf
# arch aur package: arm-linux-gnueabihf-gcc
rustup update stable
rustup override stable
rustup target add arm-unknown-linux-gnueabihf

Building The Raspberry Pi Image

cargo build --release --target=arm-unknown-linux-gnueabihf
cd ui
npm install && npm run build
cd -
sudo ./create-image

USB Serial Interface And Connecting To Wifi

Once the pi has booted you can connect to it via a serial interface over a usb cable by running picocom /dev/ttyAMA0, or using putty on windows. From here you can set the wireless credentials by running wpa_passphrase "<SSID>" "<PASSPHRASE>" >> /etc/wpa_supplicant/wpa_supplicant-wlan0.conf. Once done you can ssh to the pi with ssh rpizw-rover.local if you have zero-conf/avahi configured or you can get the ip address over the serial connection by running ip addr.

The webserver is available at http://rpizw-rover.local:3000, or the ip address obtained above.