Re: usbconfig / hal-device no longer lists usb devices

From: Pieter de Goeje <pieter_at_degoeje.nl>
Date: Sat, 21 Mar 2009 22:22:23 +0100
On Saturday 21 March 2009, Hans Petter Selasky wrote:
> On Saturday 21 March 2009, Pieter de Goeje wrote:
> > Since a couple of weeks usbconfig and hal-device no longer list my usb
> > devices. I know it worked before (also with the new USB stack). I think
> > this causes my mouse to not work in X, while it works fine on the
> > console. I've double checked that I don't have libusb from ports
> > installed. I've rebuild kernel/world, make delete-old && make delete-old
> > libs, recompiled hald, but still no success.
> >
> > $ uname -a
> > FreeBSD nox.student.utwente.nl 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat
> > Mar 21 13:37:32 CET 2009
> > pyotr_at_nox.student.utwente.nl:/usr/obj/FreeBSD/FreeBSD-current/src/sys/GEN
> >ER IC i386
> >
> > $ usbconfig list
> > ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen3.1: <EHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=HIGH
> > (480Mbps) pwr=ON
> > ugen4.1: <UHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen5.1: <UHCI root HUB Intel> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen6.1: <UHCI root HUB Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON
> > ugen7.1: <EHCI root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH
> > (480Mbps) pwr=ON
> >
> > Relevant sections from dmesg
> >
> > uhci0: <Intel 82801I (ICH9) USB controller> port 0xd000-0xd01f irq 16 at
> > device 26.0 on pci0
> > uhci0: [ITHREAD]
> > uhci0: LegSup = 0x2f00
> > usbus0: <Intel 82801I (ICH9) USB controller> on uhci0
> > uhci1: <Intel 82801I (ICH9) USB controller> port 0xd100-0xd11f irq 21 at
> > device 26.1 on pci0
> > uhci1: [ITHREAD]
> > uhci1: LegSup = 0x2f00
> > usbus1: <Intel 82801I (ICH9) USB controller> on uhci1
> > uhci2: <Intel 82801I (ICH9) USB controller> port 0xd500-0xd51f irq 18 at
> > device 26.2 on pci0
> > uhci2: [ITHREAD]
> > uhci2: LegSup = 0x2f00
> > usbus2: <Intel 82801I (ICH9) USB controller> on uhci2
> > ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfc105000-0xfc1053ff
> > irq 18 at device 26.7 on pci0
> > ehci0: [ITHREAD]
> > usbus3: EHCI version 1.0
> > usbus3: <Intel 82801I (ICH9) USB 2.0 controller> on ehci0
> > uhci3: <Intel 82801I (ICH9) USB controller> port 0xd200-0xd21f irq 23 at
> > device 29.0 on pci0
> > uhci3: [ITHREAD]
> > uhci3: LegSup = 0x2f00
> > usbus4: <Intel 82801I (ICH9) USB controller> on uhci3
> > uhci4: <Intel 82801I (ICH9) USB controller> port 0xd300-0xd31f irq 19 at
> > device 29.1 on pci0
> > uhci4: [ITHREAD]
> > uhci4: LegSup = 0x2f00
> > usbus5: <Intel 82801I (ICH9) USB controller> on uhci4
> > uhci5: <Intel 82801I (ICH9) USB controller> port 0xd400-0xd41f irq 18 at
> > device 29.2 on pci0
> > uhci5: [ITHREAD]
> > uhci5: LegSup = 0x2f00
> > usbus6: <Intel 82801I (ICH9) USB controller> on uhci5
> > ehci1: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfc104000-0xfc1043ff
> > irq 23 at device 29.7 on pci0
> > ehci1: [ITHREAD]
> > usbus7: EHCI version 1.0
> > usbus7: <Intel 82801I (ICH9) USB 2.0 controller> on ehci1
> > usbus0: 12Mbps Full Speed USB v1.0
> > usbus1: 12Mbps Full Speed USB v1.0
> > usbus2: 12Mbps Full Speed USB v1.0
> > usbus3: 480Mbps High Speed USB v2.0
> > usbus4: 12Mbps Full Speed USB v1.0
> > usbus5: 12Mbps Full Speed USB v1.0
> > usbus6: 12Mbps Full Speed USB v1.0
> > usbus7: 480Mbps High Speed USB v2.0
> > ugen0.1: <Intel> at usbus0
> > uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
> > ugen1.1: <Intel> at usbus1
> > uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
> > ugen2.1: <Intel> at usbus2
> > uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
> > ugen3.1: <Intel> at usbus3
> > uhub3: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
> > ugen4.1: <Intel> at usbus4
> > uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
> > ugen5.1: <Intel> at usbus5
> > uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
> > ugen6.1: <Intel> at usbus6
> > uhub6: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
> > ugen7.1: <Intel> at usbus7
> > uhub7: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
> >
> > ugen0.2: <Microsoft> at usbus0
> > uhid0: <Microsoft SideWinder Force Feedback 2 Joystick, class 0/0, rev
> > 1.10/a.00, addr 2> on usbus0
> > ugen1.2: <Logitech> at usbus1
> > ums0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/46.02, addr 2> on
> > usbus1 ums0: 16 buttons and [XYZ] coordinates
> > uhid1: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/46.02, addr 2> on
> > usbus1
>
> Make sure that the devices under /dev/usb/xxx have proper permissions.
>
> --HPS

Yes, they all have the same permissions: crw-------. I'm running usbconfig as 
root btw, so it shouldn't matter.

I added a bunch of printf()s to libusb, specifically ugen20_enumerate().
Both ugen0.2 and ugen1.2 failed at ioctl(f, USB_GET_PLUGTIME, &plugtime) 
because it returned EINVAL. The ugenX.2 files were opened successfully.

At this point it looks like the problem lies somewhere in the kernel, which 
makes it a lot harder for me to debug.

-- 
Pieter de Goeje
Received on Sat Mar 21 2009 - 20:22:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC