Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
cd /sys/kernel/config/usb_gadget/
mkdir g1
cd g1/
echo "0x0525" > idVendor
echo "0xa4a7" > idProduct
mkdir strings/0x409
echo "serialnumber" > strings/0x409/serialnumber
echo "Manufacturer" > strings/0x409/manufacturer
echo "ACM Gadget" > strings/0x409/product
mkdir functions/acm.usb0
mkdir configs/c.1
mkdir configs/c.1/strings/0x409
echo "Conf 1" > configs/c.1/strings/0x409/configuration
ln -s functions/acm.usb0 configs/c.1
echo > UDC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.