Posted in Raspberry Pi

From Zero to Raspberry Pi Zero

I was pretty eager to try out Raspberry Pi Zero after their recent addition of Camera connector in v1.3 version. Luckily I got hold of a Raspberry Pi Zero from Adafruit last week and here goes my setup..

One pain-point in setting-up Raspberry Pi Zero is its needed accessories (mini HDMI-to-HDMI, micro USB OTG cable etc, power cable, monitor, keyboard, mouse, wifi dongle etc..also RPi Zero doesn’t come with USB hub built-in as in its elder bigger brother Rasperry Pi 3) to get it up and running. Thanks to this great article by Andrew, now we can setup RPi Zero as a USB gadget so that I can simply SSH into it from my Macbook via USB.

  1. Once SD card is flashed with latest Raspbian Jessie Lite image (Jessie full works equally good) , open up the boot partition Finder/Windows Explorer on your Mac/PC and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
  2. Open up the cmdline.txt. Be careful, each parameter is seperated by a single space (it does not use newlines). Insert modules-load=dwc2,g_ether after rootwait.
  3. Thats it ! Now hook-up RPi zero to Macbook/PC with micro-USB to USB cable and you can ssh into as


Setting up WiFi dongle

Edit sudo nano /etc/wpa_supplicant/wpa_supplicant.conf as follows:

Mounting USB drives

Type sudo blkid to identify the drive id.

Leave a Reply

Your email address will not be published. Required fields are marked *