Difference between revisions of "Add USB Ethernet to your Raspberry Pi Zero W"
(Created page with "This tutorial is based on: [https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget https://learn.adafruit.com/turning-your-raspberry-pi-ze...") |
(→Step 1. Edit config.txt & cmdline.txt) |
||
Line 10: | Line 10: | ||
Insert the SD card into your computer. Use a text editor to open up the config.txt file that is in the SD card post-burn. | Insert the SD card into your computer. Use a text editor to open up the config.txt file that is in the SD card post-burn. | ||
− | Go to the bottom and add the following to the last line: | + | Go to the bottom and add the following to the last line to <b>/boot/config.txt</b>: |
dtoverlay=dwc2 | dtoverlay=dwc2 | ||
Latest revision as of 10:43, 27 March 2019
This tutorial is based on: https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget
Contents
Prerequisites
You must have the following:
- Raspberry Pi Zero W
- Raspbian Jessie (or Jessie Lite) installed after the May 2016 release
- USB Cable
Steps
Step 1. Edit config.txt & cmdline.txt
Insert the SD card into your computer. Use a text editor to open up the config.txt file that is in the SD card post-burn.
Go to the bottom and add the following to the last line to /boot/config.txt:
dtoverlay=dwc2
Save the config.txt file as plain text and then open up cmdline.txt After rootwait (the last word on the first line) add a space and then:
modules-load=dwc2,g_ether
Step 2: Log into your Pi Zero
Insert the SD into your Pi Zero, connect the console cable, power the Pi & log into via your normal method. To check to see if your USB Ethernet came run the following:
ifconfig -a
You should see usb0 in the device list.
Step 3: Login
You can now login via PUTTY or a BASH terminal. The only difference is now your domain is different. For example:
ssh pi@HOSTNAME.local
Where HOSTNAME is your Pi's hostname.