LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices



Reply
 
Search this Thread
Old 04-02-2013, 08:20 AM   #1
tangenty
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Rep: Reputation: Disabled
/dev/cdc-wdm0 is not created


I'm using Android/Linux and trying to interface modem module.
The interface of the module is USB and it supports CDC-ACM(Modem Function)and CDC-WDM(Device Management Function)

I can see only /dev/ttyACM0 device node but /dev/cdc-wdm is not created.

Android ICS, Kernel : 3.0.31

Kernel config
kernel/arch/arm/configs/bp50_defconfig
CONFIG_USB_ACM=y
CONFIG_USB_WDM=y

cdc-wdm was complied.
kernel/drivers/usb/class/cdc-wdm.o
kernel/drivers/usb/class/.cdc-wdm.o.cmd
kernel/drivers/usb/class/cdc-wdm.c

from /dev
crwxrwxrwx radio radio 166, 0 2013-03-22 16:09 ttyACM0
but cdc-wdm0 is not seen.

From kernel log
<7>[ 7.179931] usb 1-1.3: default language 0x0409
<7>[ 7.186126] usb 1-1.3: udev 3, busnum 1, minor = 2
<6>[ 7.186126] usb 1-1.3: New USB device found, idVendor=0482, idProduct=0232
<6>[ 7.199127] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 7.207275] usb 1-1.3: Product: KCMP
<6>[ 7.211334] usb 1-1.3: Manufacturer: KYOCERA CORPORATION
<7>[ 7.218200] usb 1-1.3: usb_probe_device
<7>[ 7.222625] usb 1-1.3: configuration #1 chosen from 1 choice
<7>[ 7.229827] usb 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)
<7>[ 7.238281] usbserial_generic 1-1.3:1.0: usb_probe_interface
<7>[ 7.244689] usbserial_generic 1-1.3:1.0: usb_probe_interface - got id
<7>[ 7.252441] usb 1-1.3: adding 1-1.3:1.1 (config #1, interface 1)
<7>[ 7.259765] cdc_acm 1-1.3:1.1: usb_probe_interface
<7>[ 7.259765] cdc_acm 1-1.3:1.1: usb_probe_interface - got id
<6>[ 7.271697] twl6030_bci twl6030_bci: Battery Voltage at Bootup is 0 mV
<6>[ 7.279174] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
<7>[ 7.285980] usb 1-1.3: adding 1-1.3:1.2 (config #1, interface 2)
<7>[ 7.293457] usb 1-1.3: adding 1-1.3:1.3 (config #1, interface 3)
<7>[ 7.301422] cdc_wdm 1-1.3:1.3: usb_probe_interface
<7>[ 7.306823] cdc_wdm 1-1.3:1.3: usb_probe_interface - got id
<7>[ 7.313323] cdc_wdm 1-1.3:1.3: looking for a minor, starting at 176
<6>[ 7.320587] cdc_wdm 1-1.3:1.3: cdc-wdm0: USB WDM device // ==>> Device was binded
<7>[ 7.327087] usb 1-1.3: adding 1-1.3:1.4 (config #1, interface 4)
<6>[ 7.335723] OMAP Watchdog Timer Rev 0x00: initial timeout 30 sec
<6>[ 7.343322] Bluetooth: HCI UART driver ver 2.2
<7>[ 7.348663] usbserial_generic 1-1.3:1.4: usb_probe_interface
<7>[ 7.355041] usbserial_generic 1-1.3:1.4: usb_probe_interface - got id
<6>[ 7.362274] Bluetooth: HCI H4 protocol initialized
<6>[ 7.367950] cpuidle: using governor ladder
<7>[ 7.368377] drivers/usb/core/inode.c: creating file '003'

I guess kernel should send uevent to udev and udev genterate /dev/cdc-wdm device node.

system/core/rootdir/ueventd.rc
/dev/ttyACM0 0777 radio radio
/dev/cdc-wdm0 0777 radio radio

}

device/ti/bluebird/init.bluebird.rc
chmod 0666 /dev/ttyACM0
chown radio radio /dev/ttyACM0
chmod 0666 /dev/cdc-wdm0
chown radio radio /dev/cdc-wdm0


I do not know how to check uevent was generated and whether udev worked properly.

Is there any one who can tell me what I need to check and what I should do more for this ?


Please tell me if there is anything missed .
 
Old 04-02-2013, 10:50 PM   #2
tangenty
LQ Newbie
 
Registered: Apr 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found cdc-wdm0 is created under /sys/class/usb and also uevent.

root@android:/sys/class/usb/cdc-wdm0 # ll
ll
-r--r--r-- root root 4096 2013-04-03 02:44 dev
lrwxrwxrwx root root 2013-04-03 02:44 device -> ../../../1-1.3:1.3
drwxr-xr-x root root 2013-04-03 02:35 power
lrwxrwxrwx root root 2013-04-03 02:44 subsystem -> ../../../../../../../../../../../class/usb
-rw-r--r-- root root 4096 2013-04-03 02:35 uevent

root@android:/sys/class/usb/cdc-wdm0 # cat uevent
cat uevent
MAJOR=180
MINOR=176
DEVNAME=cdc-wdm0

I wonder whether uevent was properly delivered to udev and ueventd was worked properly.

I can't see any udev logs at all.

Please comment anything regarding this problem.
 
Old 04-23-2014, 11:54 PM   #3
yohwa
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
Is it resolved?

I have the same issue when enable MBIM module on android? Could you give me any comments?
 
Old 08-01-2014, 05:54 AM   #4
nonsonstatoio
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
Same exact problem here!
Did you solve the problem? If yes, how?

Thank you.
 
Old 08-03-2014, 09:10 PM   #5
yohwa
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
handle_generic_device_event @./system/core/init/devices.c
static void handle_generic_device_event(struct uevent *uevent)
{
//…
name = parse_device_name(uevent, 64);
if (!name)
return;

if (!strncmp(uevent->subsystem, "usb", 3)) {
if (!strcmp(uevent->subsystem, "usb")||!strcmp(uevent->subsystem, "usbmisc")) {
//…
}
 
Old 08-05-2014, 07:06 AM   #6
nonsonstatoio
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
Great, it worked!
Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID Created with 'mdadm' on /dev/md0, but uses /dev/md3 Hummdis Linux - Software 1 03-12-2010 09:06 AM
missing /dev/ttyACM0 , modprobe cdc-acm agentchange Linux - Software 5 01-26-2010 12:46 AM
Cannot create /dev/md1 using mdadm after /dev/md0 is created dwong05 Linux - Newbie 1 05-04-2009 03:37 AM
how /dev/usb is created seeism Fedora 1 07-02-2008 11:49 AM
how is /dev/dsp created? Eppo Linux - Newbie 4 02-24-2008 12:56 PM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration