Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2016 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/67eb1c179239c1a7387d77613e1e60cc to your computer and use it in GitHub Desktop.
Save anonymous/67eb1c179239c1a7387d77613e1e60cc to your computer and use it in GitHub Desktop.
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 musb-hdrc.1.auto > UDC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment