Josh wrote:2. From the monitor output, pick the path to the top device (not the interface). In my setup, this was:
"/devices/pci0000:00/0000:00:12.2/usb5/5-3". Note that your values will be different.
I got "/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3".
3. Run "udevadm info -a -p <your-path-from above>"
You will get the full attribute tree that can be checked by a rule entry. In
my setup, it contained these lines which are relevant:
ATTR{idVendor}=="12d1"
...
ATTR{idProduct}=="1f16"
If one of these is missing in your setup, there may be an issue with the specific udevd version.
Yeah, I get these lines, along with some others, all with the right values, it seems.
4. Run "udevadm test --action=add <your-path-from above>"
This is a simulation and should clearly name usb_modeswitch as being run.
Hm, I really can't interpret the output, but it seems something is amiss here:
Code: Select all
root@raspberrypi:~# udevadm test --action=add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3
udev_builtin_add_property: ID_SERIAL=Vodafone__Huawei__K5150_FFFFFFFFFFFFFFFF
udev_builtin_add_property: ID_SERIAL_SHORT=FFFFFFFFFFFFFFFF
udev_builtin_add_property: ID_BUS=usb
udev_builtin_add_property: ID_USB_INTERFACES=:080650:020e00:0a0002:
udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/91-permissions.rules:36
udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/012'
udev_node_add: creating device node '/dev/bus/usb/001/012', devnum=189:11, mode=01664, uid=0, gid=0
udev_node_mknod: preserve file '/dev/bus/usb/001/012', because it has correct dev_t
udev_node_mknod: preserve permissions /dev/bus/usb/001/012, 021664, uid=0, gid=0
node_symlink: preserve already existing symlink '/dev/char/189:11' to '../bus/usb/001/012'
udev_device_update_db: created db file '/run/udev/data/c189:11' for '/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3'
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
ACTION=add
BUSNUM=001
DEVNAME=/dev/bus/usb/001/012
DEVNUM=012
DEVPATH=/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_MODEL=K5150
ID_MODEL_ENC=K5150
ID_MODEL_ID=1f16
ID_REVISION=0102
ID_SERIAL=Vodafone__Huawei__K5150_FFFFFFFFFFFFFFFF
ID_SERIAL_SHORT=FFFFFFFFFFFFFFFF
ID_USB_INTERFACES=:080650:020e00:0a0002:
ID_VENDOR=Vodafone__Huawei_
ID_VENDOR_ENC=Vodafone\x20\x28Huawei\x29
ID_VENDOR_ID=12d1
MAJOR=189
MINOR=11
PRODUCT=12d1/1f16/102
SUBSYSTEM=usb
TYPE=0/0/255
UDEV_LOG=6
USEC_INITIALIZED=18983188134