Skip to content

Instantly share code, notes, and snippets.

View PJTewkesbury's full-sized avatar

Peter T PJTewkesbury

View GitHub Profile
@eballetbo
eballetbo / cdc-acm-serial-device.sh
Created July 13, 2018 10:44
Create a CDC ACM Serial device
#!/usr/bin/env bash
# mount configfs
mount -t configfs none /sys/kernel/config
# load libcomposite module
modprobe libcomposite
# create a gadget
mkdir /sys/kernel/config/usb_gadget/g1
# cd to its configfs node
cd /sys/kernel/config/usb_gadget/g1