Raspberry Pi OS adds easier USB gadget mode support
Key Points:
- Raspberry Pi OS Trixie, from version 20.10.2025 onwards, now includes out-of-the-box support for USB gadget mode via the rpi-usb-gadget package, simplifying USB-based network connections to Raspberry Pi boards without a router.
- This feature allows the Raspberry Pi to present itself as a USB Ethernet device, enabling direct SSH access using the hostname set during imaging, and can provide internet access through USB if the connected PC has an active connection with Internet Connection Sharing enabled.
- USB gadget mode functions similarly to phone USB tethering and is compatible with Windows, macOS, and Linux, but requires connecting to specific USB ports that support OTG (device mode) depending on the Raspberry Pi model.