udev + usb gprs modems
am experiencing some troubles with udev on embedded linux (running on kernel 22.214.171.124). The embedded system has 2 USB ports width 2 identical USB GPRS modems. But each modem has different SIM and is supposed to comunicate with different peers. What I need is to distinguish these two modems not by name (kernel assign names like ttyACM0 and ttyACM1 in order in witch the modems were plugged in) but by the topology position, for example:
/dev/modem1 for device plugged in usb port 1
/dev/modem2 for device plugged in usb port 2
I tried to run udev on system with these rules:
KERNELS=="1-1:1.0", SUBSYSTEM=="tty", SYMLINK+="modem1"
KERNELS=="1-2:1.0", SUBSYSTEM=="tty", SYMLINK+="modem2"
but the symlinks are not created when pluging the devices. Even udevtest for /class/tty/ttyACM0 doesn't seem to find any suitable rules to add. But if I add a rule for network, like:
the udevtest /class/net/eth0 prints a message that a symlink called test_net would by created, so udev is probably working. I tried to modify rules such as SUBSYSTEM=="usb" (just for test) and still nothing happened. Am I missing something?
|All times are GMT -5. The time now is 12:52 AM.|