udev events with g_ether (TCP/IP over USB) and USB-B

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

i use linux 2.6.35.3 (upstream kernel from kernel.org) with debian squeeze on armel. I connect an embedded device (USB-B) with a linux/windows PC (USB-A) via USB. When i connect/disconnect the usb-cable, there's no udev event to detect the event. But i need the event to handle network setup.

I get an event (watch with "udevadm --debug monitor") when i remove the g_ether driver with "rmmod g_ether":
### begin ###
KERNEL[1326109330.702269] remove /devices/platform/at91_udc/gadget/net/usb0 (net) UDEV [1326109330.719743] remove /devices/platform/at91_udc/gadget/net/usb0 (net)
KERNEL[1326109330.958320] remove   /module/g_ether (module)
UDEV  [1326109330.962424] remove   /module/g_ether (module)
### end ###

When i load the module (modprobe g_ether) i get (with output of kernel debug console):
### begin ###
KERNEL[1326109414.309668] add /module/g_g_ether gadget: using random self ethernet address
ether (module)
UDEV  [1326109414.312464] add      /module/g_ether (module)
g_ether gadget: using random host ethernet address
KERNEL[1326109414.332187] add /devices/platform/at91_udc/gadget/net/usb0 (net)
usb0: MAC ee:5a:f5:49:26:03
usb0: HOST MAC c2:10:aa:7c:6f:2e
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
UDEV [1326109414.364777] add /devices/platform/at91_udc/gadget/net/usb0 (net)
g_ether gadget: g_ether ready
ADDRCONF(NETDEV_UP): usb0: link is not ready
### end ###

What i get (on kernel debug console) when i connect the cable, is:
### begin ###
g_ether gadget: full speed config #1: CDC Ethernet (ECM)
### end ###
But no udev event. When i remove the cable, i get nothing (no udev event and no output on debug console).

any ideas how to solve the problem?

Tom


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux