-
Edit /boot/firmware/config.txt and add
dtoverlay=dwc2 atthe bottom -
Edit /boot/firmware/cmdline.txt and add
modules-load=dwc2,g_etherafter rootwait (or at the end if there’s no rootwait) -
Add the following to /etc/netplan/50-cloud-init.yaml
network:
ethernets:
usb0: