From d10ad7ee9481f54b329b73904c31ecbe59d5ea17 Mon Sep 17 00:00:00 2001 From: "Joseph T. Foley" Date: Sun, 28 Jun 2026 23:48:49 +0000 Subject: [PATCH] added UDC --- Scripts/gadget.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scripts/gadget.sh b/Scripts/gadget.sh index ab978eb..148f635 100755 --- a/Scripts/gadget.sh +++ b/Scripts/gadget.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Adapted from # "Using OTG mode on Raspberry Pi SBCs" # https://pip-assets.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-009276-WP/Using-OTG-mode-on-Raspberry-Pi-SBCs @@ -46,3 +47,7 @@ ln -s functions/acm.usb0 configs/c.1/ ## Ethernet (RNDIS and ECM) mkdir functions/ecm.usb0 ln -s functions/ecm.usb0 configs/c.1/ + +## USB Device Controller update +UDC=`ls /sys/class/udc` +echo $UDC > UDC \ No newline at end of file