[poky] usb modeswitch problem with udev
matti kaasinen
matti.kaasinen at gmail.com
Tue Nov 15 02:35:34 PST 2016
I have experienced strange behavior how usb_modeswitch works together with
udev in poky/krogoth installation. In fido they worked fine. Usb_modeswitch
is same in both installations (2.2.0), udev version different
udev_182/udev_3.1.5.
1) I don't get logging even though I enable it from /etc/usb_modeswitch.conf
2) Modem shows only as mass storage - no mode switching happens
I inserted printouts to /lib/udev/usb_modeswitch script. From these prints
it shows up that plugging modem triggers:
exec /usr/sbin/usb_modeswitch_dispatcher --switch-mode /2-1:1.0
command twice, but no switching happens.
3) If I run modeswitch command (below) manually switching happens
usb_modeswitch -I -W -c /usr/share/usb_modeswitch/12d1\:14fe
--default-vendor 12d1 --default-product 14fe --target-product 1506
4) I run
udevd monitor
in order to debug udev events => usb_modeswitch logging starts working and
also switching starts working.
Debug printing from /lib/udev/usb_modeswitch script shows that operation
starts identically. However, now also switching proceeds:
after
exec /usr/sbin/usb_modeswitch_dispatcher --switch-mode /2-1:1.0
commands script gets called twice with parameters below
--driver-bind
/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0
12d1/1506/102
following sequence gets repeated twice
--- START ---
script gets called three times with following parameters (? = 0,1 and 2)
--symlink-name
/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.3/ttyUSB2/tty/ttyUSB?
12d1 1506
Which resulted following commands (x and y altering):
exec usb_modeswitch_dispatcher --symlink-name
/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.x/ttyUSB0/tty/ttyUSBy
--- STOP ---
It seems that usb_modeswitch_dispatcher discusses to some udev daemon that
does not start by default in standard installation of poky/krogoth.
What daemon could this be? Naturally I could bring up this udevd monitor,
but I would prefer using the correct one if that exists.
Thanks,
Matti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20161115/4cbf50cb/attachment.html>
More information about the poky
mailing list