-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi benjamin!
afaik the creation of /dev/serial, /dev/disk, ... symlinks is done by
udev and therefore requires udev installed.
while this could solve the problem, it occupies 166kB (which is more
than all needed USB-serial kernel modules together...)
i tried that anyway. however, after installing the udev package, udevd
doesn't get started during boot and this seems to be an architectural
problem already discussed a couple of years ago (see @9412). starting
udevd manually and then re-plugging the usb wwan does create the
symlink, but this doesn't solve the problem. (i.e. hotplug after udevd
is started works, but coldpluged devices are not getting processed by
udevd as it is started afterward)
according to it's author, running hotplug2 and udevd together is not
really a good idea anyway, see
http://svn.nomi.cz/svn/isteve/hotplug2/README.

i guess i should get hotplug2 to create those symlinks then. in order to
be able to do this, hotplug2 has to be extended to provide the info from
sysfs (path inside /sys/devices, idVendor, idProduct) to the
rule-scripts which could then create meaningful persistent symlinks.
everybody agree so far? any better way to do the same?

cheers

daniel


On 10/25/2010 02:21 PM, Benjamin Henrion wrote:
> On Mon, Oct 25, 2010 at 1:58 PM, Daniel Golle <[email protected]> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> hi everybody!
>> for my current project i need to reliably identify/distinguish several
>> USB-to-serial devices connected to a 4-port hub. in a desktop
>> environment, i would use hal over dbus (or in future probably device-kit
>> over dbus) to select the device by
>> vendor/product/serialno/connected-port. i was thinking of using udev to
>> create symbolic links, but even udev seems like taking a sledgehammer to
>> crack a nut to me...
>> my problem is that, depending on whether i cold-start or reboot the
>> system (a fon2202 btw), the different USB-to-serial gadgets end up to be
>> different ttyUSBx devices. especially the huawei 3g/umts wwan seems to
>> take a greatly varying amount of time before it becomes ready, so on a
>> reboot it becomes visible to the system as ttyUSB0 & ttyUSB1, in a
>> cold-start it's ttyUSB2 & ttyUSB3...
>> what way do you suggest to solve the problem?
> 
> Address the devices by going into the /dev/serial/by-id :
> 
> zoo...@buzek /dev/serial/by-id [18]$ l
> total 0
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if01
> -> ../../ttyACM0
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if03
> -> ../../ttyACM1
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if09
> -> ../../ttyACM2
> 
> The path there should be unique.
> 
> Try to insert all the adaptors, and send me the output of "ls -l
> /dev/serial/by-id".
> 
> --
> Benjamin Henrion <bhenrion at ffii.org>
> FFII Brussels - +32-484-566109 - +32-2-4148403
> "In July 2005, after several failed attempts to legalise software
> patents in Europe, the patent establishment changed its strategy.
> Instead of explicitly seeking to sanction the patentability of
> software, they are now seeking to create a central European patent
> court, which would establish and enforce patentability rules in their
> favor, without any possibility of correction by competing courts or
> democratically elected legislators."
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMxa48AAoJELd9RAts2fh5sZ0H/RRoSlNR7n2b7CHGVs06fZFS
nw49Ze5YSqARr+6SmuhmOtin+CA/vdZotR0oExEeMo4JL6FoKwKo3n0fiOlhPHxp
bmDJqt9GFadHG9NnwdpDTXE9D0Z3C7AFdC7av2MmV7sqpQNqqR3Of+emEq0AcuOI
OT9XW7BO7niCdM3FfSubHAMpUFim23bT3qTE7+iVKa4yIFDrO2oJ1j9ToeIynNkv
PvgCa5AZCIWpNJRow2jgBfQQmWSxtoQObEHHRhVCyL1bz6k3a5cnFI28Nw4Z6OnS
/mr28kTy2P9Q4x58wPGtS06SJArsX7hEqQnEDvgd4QKOWFysCdUKwNpd8QqXQVw=
=/OjV
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to