Files
msm8916-openwrt/packages/msm8916-usb-gadget/files/msm8916-usb-gadget.conf
T
2025-10-06 18:54:47 +02:00

36 lines
1.2 KiB
Bash

#!/bin/sh
# MSM8916 USB Gadget Configuration
### USB protocols and OS support:
# - RNDIS Ethernet: Linux/Windows supported automatically, macOS needs HoRNDIS driver
# - CDC ECM Ethernet: Linux/macOS 10.14 and earlier supported automatically.
# - CDC NCM Ethernet: Linux/macOS 10.15 and later supported automatically, Windows 11 supported automatically.
# - UMS USB Mass storage: All OS supported automatically.
# - CDC ACM Serial: All OS supported automatically. (Windows <10 needs a custom .inf)
###
# USB Functions Enable/Disable
ENABLE_RNDIS=0 # MS-Windows compatible ethernet
ENABLE_ECM=0 # CDC ECM ethernet
ENABLE_NCM=1 # CDC NCM ethernet (Best Performance)
ENABLE_UMS=0 # Mass storage
ENABLE_ACM=1 # Serial console
# UMS Configuration (if enabled)
UMS_IMAGE="/var/lib/msm8916-gadget/usb_mass_storage.img"
UMS_IMAGE_SIZE="512M" # Size to create if image doesn't exist (M/G suffix supported)
UMS_READONLY=0
# Add shell to ACM
ACM_SHELL=1
# UDC Device (auto-detect if empty)
UDC_DEVICE=""
# USB Device Identification
USB_VENDOR_ID="0x1d6b" # Linux Foundation
USB_PRODUCT_ID="0x0104" # Multifunction Composite Gadget
USB_DEVICE_VERSION="0x0100" # v1.0.0
USB_MANUFACTURER="MSM8916"
USB_PRODUCT="USB Gadget"