Skip to content

Instantly share code, notes, and snippets.

@tgwaste
Last active January 20, 2020 05:10
Show Gist options
  • Save tgwaste/d813945e4652772212d2702acb6a8647 to your computer and use it in GitHub Desktop.
Save tgwaste/d813945e4652772212d2702acb6a8647 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt install -y wget git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev libhidapi-dev libftdi-dev telnet p7zip-full
cd ~
git clone https://github.com/lupyuen/openocd-spi
cd openocd-spi
./bootstrap
./configure --enable-sysfsgpio --enable-bcm2835gpio --enable-cmsis-dap
make
cd ~
wget https://github.com/lupyuen/pinetime-rust-mynewt/releases/download/v1.0.4/pinetime-rust-mynewt.7z
7z x pinetime-rust-mynewt.7z
mv pinetime-rust-mynewt.7z /tmp/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup default nightly
rustup update
rustup target add thumbv7em-none-eabihf
sudo apt install -y gcc-arm-none-eabi
cd ~/pinetime-rust-mynewt
scripts/install-pi.sh
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
apt-get -y autoremove
apt-get -y update
git clone git@github.com:bosmoment/PineTime-apps.git
cd ~/PineTime-apps
git submodule init
git submodule update
cd ~/PineTime-apps/apps/pinetime
make all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment