Skip to content

Instantly share code, notes, and snippets.

@superdodd
superdodd / pizero-setup.md
Created September 1, 2016 05:15
Set up a Raspberry Pi Zero (with only a USB cable) via OS X
  1. Download the Raspbian Lite image from https://downloads.raspberrypi.org/raspbian_lite_latest (add .torrent to get a torrent)
  2. Unzip the download to extract the .img file
  3. Insert a FAT32-formatted SD card, and copy the image over:
    • diskutil list to identify the disk number, e.g. /dev/disk2
    • diskutil unmountDisk /dev/disk2
    • sudo dd bs=1m if=image.img of=/dev/rdisk2
  4. Before unmounting, edit a couple of files to activate internet-over-USB. The image mounted for me at /Volumes/boot.
    • In config.txt, add this as the last line of the file: dtoverlay=dwc2
    • In cmdline.txt, add this as a parameter, just after the rootwait parameter: modules-load=dwc2,g_ether
  5. Unmount the SD card (via Finder) and stick it in the Raspberry Pi.

Keybase proof

I hereby claim:

  • I am superdodd on github.
  • I am superdodd (https://keybase.io/superdodd) on keybase.
  • I have a public key whose fingerprint is A6D9 8F5D 14A0 DF8F 5A9A 9BD3 49D8 E5D2 50EC B175

To claim this, I am signing this object: