From 9fb1642ecc2ef75abeed9580847750e0415bd5e0 Mon Sep 17 00:00:00 2001
From: Sam Calisch <sam.calisch@cba.mit.edu>
Date: Wed, 4 Oct 2017 15:12:47 -0400
Subject: [PATCH] Add new file

---
 openocd/RaspberryPi.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 openocd/RaspberryPi.md

diff --git a/openocd/RaspberryPi.md b/openocd/RaspberryPi.md
new file mode 100644
index 0000000..504a135
--- /dev/null
+++ b/openocd/RaspberryPi.md
@@ -0,0 +1,16 @@
+## Setting up a Raspberry Pi OpenOCD programmer
+
+1. Set up SD card.  Either download image with openocd from this page (todo: add link), or download a vanilla raspian os from https://www.raspberrypi.org/downloads/raspbian/ This will involve building OpenOCD yourself.  To fit on a 4GB sd card, get the lite version.
+
+1. https://www.raspberrypi.org/documentation/installation/installing-images/
+
+```
+diskutil unmountDisk diskn
+```
+```
+sudo dd bs=1m if=~/Documents/2017-09-07-raspbian-stretch-lite.img of=/dev/rdiskn conv=sync
+```
+
+Wait.
+
+2. Set up ssh.  We prefer over usb: https://www.thepolyglotdeveloper.com/2016/06/connect-raspberry-pi-zero-usb-cable-ssh/
-- 
GitLab