linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev seems to not recognize some devices when plugging them
@ 2010-10-13  9:34 Pedro Aguilar
  2010-10-13 12:00 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Pedro Aguilar @ 2010-10-13  9:34 UTC (permalink / raw)
  To: linux-hotplug

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 2533 bytes --]

Hi,

I'm working on a set-top-box that needs a wireless network using an
usb wireless adapter such as the d-link dwl-122 that is supported
under Linux.
I have a kernel 2.6.23.17, libc 2.6 and udev 129. For several reasons
I cannot upgrade the kernel :(

My problem is that after compiling the kernel with all the necessary
wireless modules (like mac80211), compiling and insmoding the usb
wireless driver (rt73), copying its fw, and connecting the usb
adapter, I have the following behaviour:

There isn't any change in /sys/. I would expect a new dir in
/sys/class/net (something like /sys/class/net/wlan0).
# ls /sys/class/net/
eth0  lo

If I write a 00-test.rules, when I connect the usb adapter it matches
and calls the test.sh script.
ACTION="add", SUBSYSTEM="usb", ATTR{idVendor}="07d1",
ATTR{idProduct}="3c0f", RUN+="/usr/bin/test.sh"
so I think the kernel is sending the event to udev, but I don't see
any net iface.

iwconfig doesn't give any wireless interface:
# iwconfig
eth0      no wireless extensions.
lo        no wireless extensions.

lsusb and cat /proc/bus/usb/devices give the right ouput:
# lsusb
Bus 001 Device 011: ID 07d1:3c0f D-Link System
...

# cat /proc/bus/usb/devices
T:  Bus\x01 Lev\x02 Prnt\x02 Port\x02 Cnt\x01 Dev#= 11 SpdH0 MxCh= 0
D:  Ver= 2.00 Cls\0(>ifc ) Sub\0 Prot\0 MxPSd #Cfgs=  1
P:  Vendor\ad1 ProdID<0f Rev= 1.01
S:  Manufacturer=Ralink
S:  Product\x11g Adapter
S:  SerialNumber=1.0
C:* #Ifs= 1 Cfg#= 1 Atr€ MxPwrE0mA
I:* If#= 0 Alt= 0 #EPs= 7 Clsÿ(vend.) Subÿ Protÿ Driver=(none)
E:  Ad(I) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x01(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x02(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x03(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x04(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x05(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad\x06(O) Atr\x02(Bulk) MxPS= 512 Ivl=0ms

Here's the output I get when I connect the usb wireless adapter with
the kernel's usb debugging active:

usb 1-1.3: new high speed USB device using stm-ehci and address 10
usb 1-1.3: Product: 11g Adapter
usb 1-1.3: Manufacturer: Ralink
usb 1-1.3: SerialNumber: 1.0
usb 1-1.3: configuration #1 chosen from 1 choice

Other devices like usb mass storage devices work smoothly as well as
usb mice and keyboards. This happens with the usb wireless adapter
that I have tested.

I'm not sure if the problem is because I have old versions of
udev/kernel/libc or if I'm missing something.
Any ideas/hints?

Thanks in advance!

Regards,
--
Pedro Aguilar
http://www.paguilar.org/blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-19 14:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13  9:34 udev seems to not recognize some devices when plugging them Pedro Aguilar
2010-10-13 12:00 ` Kay Sievers
2010-10-13 13:40 ` Greg KH
2010-10-14 17:04 ` Pedro Aguilar
2010-10-14 17:39 ` Jim Paris
2010-10-14 18:19 ` Greg KH
2010-10-19 14:32 ` Pedro Aguilar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).