Skip to content

Instantly share code, notes, and snippets.

@natekc
natekc / rpi_ssh_usb.md
Created December 14, 2025 19:40
Enabling ssh over usb for Raspberry Pi Zero W on Raspbian GNU/Linux 13 (trixie)

Goal

There are many guides on the internet for enabling usb gadget mode on Raspberry Pi. Most of them are accurate, but only for older versions of Raspbian. On Raspbian 13/Trixie, NetworkManager became the default way to manage all connections thus making all previous guides out of date.

Steps to enable USB Gadget Mode

Assumptions

  • Your RPi username is set to pi
  • Your RPi hostname is set to raspberrypi

What is not covered

@natekc
natekc / gist:4053787
Created November 11, 2012 05:05 — forked from snq-/gist:650010
bravo-2.6.32: CPU Vdd levels sysfs interface
diff -urN bravo-2.6.32-gd96f2c0.orightc/arch/arm/mach-msm/acpuclock-scorpion.c bravo-2.6.32-gd96f2c0.snq/arch/arm/mach-msm/acpuclock-scorpion.c
--- bravo-2.6.32-gd96f2c0.orightc/arch/arm/mach-msm/acpuclock-scorpion.c 2010-09-28 14:03:54.000000000 +0200
+++ bravo-2.6.32-gd96f2c0.snq/arch/arm/mach-msm/acpuclock-scorpion.c 2010-10-27 22:27:08.000000000 +0200
@@ -29,6 +29,9 @@
#include "acpuclock.h"
#include "proc_comm.h"
#include "clock.h"
+#ifdef CONFIG_CPU_FREQ_VDD_LEVELS
+#include "board-bravo.h"
+#endif
@natekc
natekc / gist:4053786
Created November 11, 2012 05:05 — forked from snq-/gist:650010
bravo-2.6.32: CPU Vdd levels sysfs interface
diff -urN bravo-2.6.32-gd96f2c0.orightc/arch/arm/mach-msm/acpuclock-scorpion.c bravo-2.6.32-gd96f2c0.snq/arch/arm/mach-msm/acpuclock-scorpion.c
--- bravo-2.6.32-gd96f2c0.orightc/arch/arm/mach-msm/acpuclock-scorpion.c 2010-09-28 14:03:54.000000000 +0200
+++ bravo-2.6.32-gd96f2c0.snq/arch/arm/mach-msm/acpuclock-scorpion.c 2010-10-27 22:27:08.000000000 +0200
@@ -29,6 +29,9 @@
#include "acpuclock.h"
#include "proc_comm.h"
#include "clock.h"
+#ifdef CONFIG_CPU_FREQ_VDD_LEVELS
+#include "board-bravo.h"
+#endif