usb-cfs-howto

1)

##########################################

# cd /config
# ls
# cd usb_gadget
# mkdir g1
# ls
# cd g1
# ls
...
# cd /config/usb_gadget/g1
# echo ${sys.usb.controller} > UDC
##########################################

2) Create configuration
# mkdir configs/c.1  
 
format: *.num
*: any string
num: usb configuration value, which should be started from 1

This string length should be less than 40

call-stack:
gadgets_make
--->
config_desc_make

3) Create function
# mkdir functions/acm.GS0

format: func_name.instance_name

call-stack:
gadgets_make
--->
function_make

4) echo string
# echo "oem-demo" > xxx/strings/0x409/xxx

call-stack:
gadget_strings_langid_attrs

你可能感兴趣的:(usb-cfs-howto)