linux - Debugging cdc-acm kernel module -
i trying fix problem having on ubuntu (tried different versions including latest 13.10) usb device talking cdc/acm on 1 of interfaces. kernel module handling kind of devices reports
cdc_acm 6-2:1.1: device cannot calls on own. not modem.
cdc_acm: probe of 6-2:1.1 failed error -22
in dmesg , it. nothing "zero length descriptor references" or similar stuff other people report on web. wanted find out problem might be. followed description in http://www.silly-science.co.uk/2012/06/23/lenovo-usb-modem-in-linux-ubuntu-10-04 compile , load custom cdc-acm module. first, changed 2 #undefs debug #defines in cdc-acm.c, still not getting additional output in dmesg.
changing version string in cdc-acm.c's driver_version define else, can verify modified module indeed loaded. looking debug output in wrong place?
i managed debug info cdc_acm in dmesg, , though don't have special share, these steps, using latest kernel of today 4.2-rc5:
- change
debug,verbose_debug#undefs#defines in cdc-acm.c. make -c /lib/modules/$(uname -r)/build m=$(pwd)/drivers/usb/class modulesmodprobe -r cdc_acm; insmod $(pwd)/drivers/usb/class/cdc-acm.kodmesgafter plugging compatible device
[...]
[14035.355036] cdc_acm 2-2:1.1: acm_tty_write - write 1
[14035.368040] cdc_acm 2-2:1.1: acm_softint
[14038.156445] cdc_acm 2-2:1.0: acm_tty_close
[14038.173054] cdc_acm 2-2:1.0: acm_ctrl_msg - rq 0x22, val 0x0, len 0x0, result 0
[14038.173059] cdc_acm 2-2:1.0: acm_port_shutdown
[14038.173640] cdc_acm 2-2:1.0: acm_ctrl_irq - urb shutting down status: -2
[14038.174636] cdc_acm 2-2:1.1: acm_read_bulk_callback - urb 0, len 0
[...]
Comments
Post a Comment