RPI: Headless USB

From Frotmail Projects
Jump to navigation Jump to search

Only works on Raspberry Pi Zero, Zero W and 4b!!!

Edit /boot/config.txt in [all] section:

dtoverlay=dwc2

cmdline.txt, after rootwait (take care the line does not break up!!)

modules-load=dwc2,g_ether g_ether.host_addr=dc:a6:32:xx:xx:xx  g_ether.dev_addr=dc:a6:32:xx:xx:yy 
g_ether.dev_addr is the Pi Zero interface.
g_ether.host_addr is the host PC interface.

Reboot!