[Hacklab_pisa] problemi usb

Delete this message

Reply to this message
Author: lik
Date:  
To: hacklab_pisa
Subject: [Hacklab_pisa] problemi usb
ciao cari
a casa ho messo un computerino che fa da server e router tra l'adsl e la
mia rete locale. solamente che ho un problema.
per collegarmi all'adsl utilizzo un modem usb con un fw proprietario.
solamente che questo modem funziona solamente se, una volta caricato
tutto quanto, attacco il modem al computer, mentre se il modem e'
attaccato prima dell'accensione del computer allora non funziona (dice
proprio che non trova il modem).
mi ripeto: accendo il computer con il modem attaccato, ma il modem non
funziona, stacco il cavo usb del modem e lo riattacco, e allora udev lo
riconosce e lo installa, carica il firmware e va tutto bene.
dato che la rete dovrebbe essere piu' stabile possibile (se salta la
corrente il computer dovrebbe riaccendersi da solo e collegarsi con il
modem) questa cosa mi rompe un po'.
credo che in qualche modo il problema sia legato a udev ma non ho idea
di come risolverlo perche' non mi e' mai stato tanto simpatico udev...

nel frattempo incollo un output di udevmonitor. la prima parte e'
stampata quando stacco il modem, la seconda quando lo riattacco (sono
divise da una linea bianca).

avete idea di come risolvere il problema, anche con un workaround (ad
esempio.. e' possibile generare manualmente degli uevent "add" per far
partire la procedura?)

lik
-----------------------------------

udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent

UDEV [1219417725.910587] remove /class/usb_endpoint/usbdev1.4_ep81
(usb_endpoint)
UEVENT[1219417725.910694] remove /class/usb_endpoint/usbdev1.4_ep01
(usb_endpoint)
UEVENT[1219417725.910707] remove /class/usb_endpoint/usbdev1.4_ep82
(usb_endpoint)
UEVENT[1219417725.910718] remove /class/usb_endpoint/usbdev1.4_ep02
(usb_endpoint)
UEVENT[1219417725.910730] remove /class/usb_endpoint/usbdev1.4_ep83
(usb_endpoint)
UEVENT[1219417725.910743] remove /class/usb_endpoint/usbdev1.4_ep03
(usb_endpoint)
UEVENT[1219417725.910754] remove /class/usb_endpoint/usbdev1.4_ep84
(usb_endpoint)
UEVENT[1219417725.910765] remove /class/atm/cxacru0 (atm)
UEVENT[1219417725.910775] remove
/devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0 (usb)
UEVENT[1219417725.910786] remove /class/usb_device/usbdev1.4 (usb_device)
UEVENT[1219417725.910797] remove /class/usb_endpoint/usbdev1.4_ep00
(usb_endpoint)
UEVENT[1219417725.910809] remove
/devices/pci0000:00/0000:00:02.0/usb1/1-1 (usb)
UDEV [1219417725.913320] remove /class/usb_endpoint/usbdev1.4_ep01
(usb_endpoint)
UDEV [1219417725.916520] remove /class/usb_endpoint/usbdev1.4_ep82
(usb_endpoint)
UDEV [1219417725.919816] remove /class/usb_endpoint/usbdev1.4_ep02
(usb_endpoint)
UDEV [1219417725.923238] remove /class/usb_endpoint/usbdev1.4_ep83
(usb_endpoint)
UDEV [1219417725.926725] remove /class/usb_endpoint/usbdev1.4_ep03
(usb_endpoint)
UDEV [1219417725.929998] remove /class/usb_endpoint/usbdev1.4_ep84
(usb_endpoint)
UDEV [1219417725.932728] remove /class/atm/cxacru0 (atm)
UDEV [1219417725.935805] remove
/devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0 (usb)
UDEV [1219417725.941168] remove /class/usb_device/usbdev1.4 (usb_device)
UDEV [1219417725.946315] remove /class/usb_endpoint/usbdev1.4_ep00
(usb_endpoint)

UEVENT[1219417731.753854] add
/devices/pci0000:00/0000:00:02.0/usb1/1-1 (usb)
UEVENT[1219417731.753921] add      /class/usb_endpoint/usbdev1.5_ep00
(usb_endpoint)
UEVENT[1219417731.756741] add
/devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0 (usb)
UDEV  [1219417731.773019] add
/devices/pci0000:00/0000:00:02.0/usb1/1-1 (usb)
UDEV  [1219417731.783268] add      /class/usb_endpoint/usbdev1.5_ep00
(usb_endpoint)
UDEV  [1219417731.785706] add
/devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0 (usb)
UEVENT[1219417733.763196] add      /class/firmware/1-1:1.0 (firmware)
UDEV  [1219417733.769862] add      /class/firmware/1-1:1.0 (firmware)
UEVENT[1219417733.799836] add      /class/usb_endpoint/usbdev1.5_ep81
(usb_endpoint)
UEVENT[1219417733.799935] add      /class/usb_endpoint/usbdev1.5_ep01
(usb_endpoint)
UEVENT[1219417733.799945] add      /class/usb_endpoint/usbdev1.5_ep82
(usb_endpoint)
UEVENT[1219417733.799956] add      /class/usb_endpoint/usbdev1.5_ep02
(usb_endpoint)
UEVENT[1219417733.799966] add      /class/usb_endpoint/usbdev1.5_ep83
(usb_endpoint)
UEVENT[1219417733.799976] add      /class/usb_endpoint/usbdev1.5_ep03
(usb_endpoint)
UEVENT[1219417733.799985] add      /class/usb_endpoint/usbdev1.5_ep84
(usb_endpoint)
UEVENT[1219417733.799994] add      /class/usb_device/usbdev1.5 (usb_device)
UDEV  [1219417733.809735] add      /class/usb_endpoint/usbdev1.5_ep81
(usb_endpoint)
UDEV  [1219417733.814015] add      /class/usb_endpoint/usbdev1.5_ep01
(usb_endpoint)
UDEV  [1219417733.830382] add      /class/usb_endpoint/usbdev1.5_ep82
(usb_endpoint)
UDEV  [1219417733.834599] add      /class/usb_endpoint/usbdev1.5_ep02
(usb_endpoint)
UDEV  [1219417733.850857] add      /class/usb_endpoint/usbdev1.5_ep83
(usb_endpoint)
UDEV  [1219417733.854681] add      /class/usb_endpoint/usbdev1.5_ep03
(usb_endpoint)
UDEV  [1219417733.870167] add      /class/usb_endpoint/usbdev1.5_ep84
(usb_endpoint)
UDEV  [1219417733.947464] add      /class/usb_device/usbdev1.5 (usb_device)