Skip to content

Instantly share code, notes, and snippets.

@nd-0r
Last active April 11, 2024 20:01
Show Gist options
  • Save nd-0r/598d94e43fef8b7ee4e83b06bbf16ee2 to your computer and use it in GitHub Desktop.
Save nd-0r/598d94e43fef8b7ee4e83b06bbf16ee2 to your computer and use it in GitHub Desktop.

CS341 Rasberry Pi Setup

Initial flashing

  • Rasberry Pi OS Lite (64-bit), Debian Bookworm, 03-15-2024
  • No WiFi configured
  • Hostname: cs341-testpi
  • Username: pi

Gadget mode setup

  1. Make backup copies of /boot/config.txt and /boot/cmdline.txt

  2. Edit /boot/config.txt by appending the following line to the end of the file:

dtoverlay=dwc2

  1. Edit /boot/cmdline.txt by inserting the following text between rootwait and quiet

modules-load=dwc2,g_ether

  1. Create a new udev rule file. Create /etc/udev/rules.d/90-usb-gadget.rules and insert the following:

SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 up"

Connecting to host computer

For MacOS and Ubuntu it was plug and play for me. For Windows, you may have to follow the instructions here

Connecting over SSH

Run ssh [email protected]. The hostname should resolve through mDNS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment