linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How is /dev/bus/usb created - /dev/bus/usb lost during system
@ 2010-03-18  1:24 Petr Kubánek
  2010-03-18  2:48 ` Greg KH
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Petr Kubánek @ 2010-03-18  1:24 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10)
on Watcher telescope control computer (@Boyden observatory, South
Africa).

I do not see /dev/bus/usb, and lsusb does not show anything. It worked
before, USB devices are present in dmesg, so I think USB subsystem is
working properly.

To debug this it will help me to know how udev creates and
populates /dev/bus/usb - which rule(s) does this, how to debug what
might be wrong.

We hit some problems during system upgrade, and I am pretty sure this is
related to them. I just need to debug the machine, which is while I am
in Europe and machine is in South Africa a bit difficult (and dangerous
to change anything, as it might not boot and then I have a problem
again..).

Thanks a lot for any hint.

Petr


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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
@ 2010-03-18  2:48 ` Greg KH
  2010-03-18  8:51 ` Martin Pitt
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Greg KH @ 2010-03-18  2:48 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Mar 18, 2010 at 02:24:58AM +0100, Petr Kub?nek wrote:
> Hi,
> 
> I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10)
> on Watcher telescope control computer (@Boyden observatory, South
> Africa).

Why not file a bug with Ubuntu?  This sounds like a system configuration
problem on their part.

thanks,

greg k-h

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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
  2010-03-18  2:48 ` Greg KH
@ 2010-03-18  8:51 ` Martin Pitt
  2010-03-18 10:03 ` Petr Kubánek
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Martin Pitt @ 2010-03-18  8:51 UTC (permalink / raw)
  To: linux-hotplug

Hello Petr,

Petr Kubánek [2010-03-18  2:24 +0100]:
> I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10)
> on Watcher telescope control computer (@Boyden observatory, South
> Africa).
> 
> I do not see /dev/bus/usb, and lsusb does not show anything. It worked
> before, USB devices are present in dmesg, so I think USB subsystem is
> working properly.
> 
> To debug this it will help me to know how udev creates and
> populates /dev/bus/usb - which rule(s) does this, how to debug what
> might be wrong.

Those are just created by udev, there is no particular rule for it
(it's using the kernel default name).

$ udevadm test /bus/usb/devices/1-8
[...]
udev_rules_apply_to_event: LINK 'char/189:2' /lib/udev/rules.d/50-udev-default.rules:4
udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rules:62
udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-hal.rules:2
udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/003'
[...]
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8
udevadm_test: DEVNAME=/dev/bus/usb/001/003
[...]

My best guess is that you are running a custom kernel which perhaps
has CONFIG_SYSFS_DEPRECATED_V2 set, or something similar? What does
"uname -a" say?

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
  2010-03-18  2:48 ` Greg KH
  2010-03-18  8:51 ` Martin Pitt
@ 2010-03-18 10:03 ` Petr Kubánek
  2010-03-18 10:21 ` Kay Sievers
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Petr Kubánek @ 2010-03-18 10:03 UTC (permalink / raw)
  To: linux-hotplug

Hi,

no custom kernel - 2.6.26-18-server #59

What I found different running

udevadm test /bus/usb/devices/1-0:1.0

on watcher:

udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
udevadm_test: DEVTYPE=usb_interface
udevadm_test: DRIVER=hub
udevadm_test: DEVICE=/proc/bus/usb/001/001
udevadm_test: PRODUCT\x1d6b/2/206
udevadm_test: TYPE=9/0/0
udevadm_test: INTERFACE=9/0/0
udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00
udevadm_test: ACTION­d
udevadm_test: SUBSYSTEM=usb
udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'


on my laptop, running 2.6.31:

udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
udevadm_test: DEVTYPE=usb_interface
udevadm_test: DRIVER=hub
udevadm_test: PRODUCT\x1d6b/2/206
udevadm_test: TYPE=9/0/0
udevadm_test: INTERFACE=9/0/0
udevadm_test: MODALIAS=usb:v1D6Bp0002d0206dc09dsc00dp00ic09isc00ip00
udevadm_test: ACTION­d
udevadm_test: SUBSYSTEM=usb
udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'


e.g. DEVICE is missing. /proc/bus/usb is empty on Watcher and missing on
my laptop (where lsusb works). Any ideas? I
checked /boot/config-2.6.28-18-server, and it does not have
SYSFS_DEPRECATED set.

Petr

Martin Pitt píše v Čt 18. 03. 2010 v 09:51 +0100:
> Hello Petr,
> 
> Petr Kubánek [2010-03-18  2:24 +0100]:
> > I lost /dev/bus/usb during remote system upgrade (Ubuntu 9.04 -> 9.10)
> > on Watcher telescope control computer (@Boyden observatory, South
> > Africa).
> > 
> > I do not see /dev/bus/usb, and lsusb does not show anything. It worked
> > before, USB devices are present in dmesg, so I think USB subsystem is
> > working properly.
> > 
> > To debug this it will help me to know how udev creates and
> > populates /dev/bus/usb - which rule(s) does this, how to debug what
> > might be wrong.
> 
> Those are just created by udev, there is no particular rule for it
> (it's using the kernel default name).
> 
> $ udevadm test /bus/usb/devices/1-8
> [...]
> udev_rules_apply_to_event: LINK 'char/189:2' /lib/udev/rules.d/50-udev-default.rules:4
> udev_rules_apply_to_event: MODE 0664 /lib/udev/rules.d/50-udev-default.rules:62
> udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-hal.rules:2
> udev_event_execute_rules: no node name set, will use kernel supplied name 'bus/usb/001/003'
> [...]
> udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8
> udevadm_test: DEVNAME=/dev/bus/usb/001/003
> [...]
> 
> My best guess is that you are running a custom kernel which perhaps
> has CONFIG_SYSFS_DEPRECATED_V2 set, or something similar? What does
> "uname -a" say?
> 
> Martin
> 



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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (2 preceding siblings ...)
  2010-03-18 10:03 ` Petr Kubánek
@ 2010-03-18 10:21 ` Kay Sievers
  2010-03-18 10:31 ` Petr Kubánek
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2010-03-18 10:21 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Mar 18, 2010 at 11:03, Petr Kub√°nek <petr@kubanek.net> wrote:
> udevadm test /bus/usb/devices/1-0:1.0

> e.g. DEVICE is missing. /proc/bus/usb is empty on Watcher and missing on
> my laptop (where lsusb works).

DEVICE is a property of the deprecated usbfs, it is not related to
udev and can be ignored.

You need to run "udevadm test" on a usb-device, not on a
usb-interface. Interfaces have no device nodes. There must be no ":"
in the device name.

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

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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (3 preceding siblings ...)
  2010-03-18 10:21 ` Kay Sievers
@ 2010-03-18 10:31 ` Petr Kubánek
  2010-03-18 10:37 ` Martin Pitt
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Petr Kubánek @ 2010-03-18 10:31 UTC (permalink / raw)
  To: linux-hotplug

Ok, running 

udevadm test /bus/usb/devices/2-1

still shows DEVICE=xxx

It looks that the upgrade was left in some strange state. I am finishing
it, hopefully it will help..

Petr

Kay Sievers píše v Čt 18. 03. 2010 v 11:21 +0100:
> On Thu, Mar 18, 2010 at 11:03, Petr Kubánek <petr@kubanek.net> wrote:
> > udevadm test /bus/usb/devices/1-0:1.0
> 
> > e.g. DEVICE is missing. /proc/bus/usb is empty on Watcher and missing on
> > my laptop (where lsusb works).
> 
> DEVICE is a property of the deprecated usbfs, it is not related to
> udev and can be ignored.
> 
> You need to run "udevadm test" on a usb-device, not on a
> usb-interface. Interfaces have no device nodes. There must be no ":"
> in the device name.
> 
> Kay



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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (4 preceding siblings ...)
  2010-03-18 10:31 ` Petr Kubánek
@ 2010-03-18 10:37 ` Martin Pitt
  2010-03-18 10:41 ` Kay Sievers
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Martin Pitt @ 2010-03-18 10:37 UTC (permalink / raw)
  To: linux-hotplug

Petr Kubánek [2010-03-18 11:03 +0100]:
> no custom kernel - 2.6.26-18-server #59

Ubuntu has never shipped 2.6.26 in any release.
Ubuntu 9.10 uses 2.6.31 (linux-image-2.6.31-14-server). Perhaps you removed the
linux-image-server metapackage?

Please try and install linux-image-server, boot that, and check that
/dev/bus/usb is back.

Anyway, this is not an upstream bug, and not an Ubuntu one either. Can
you please refer to https://answers.launchpad.net/ for further
questions?

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (5 preceding siblings ...)
  2010-03-18 10:37 ` Martin Pitt
@ 2010-03-18 10:41 ` Kay Sievers
  2010-03-18 10:42 ` Petr Kubánek
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2010-03-18 10:41 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Mar 18, 2010 at 11:31, Petr Kub√°nek <petr@kubanek.net> wrote:
> Ok, running
>
> udevadm test /bus/usb/devices/2-1
>
> still shows DEVICE=xxx
>
> It looks that the upgrade was left in some strange state. I am finishing
> it, hopefully it will help..

No, DEVICE means nothing, just ignore it, as mentioned in the earlier
mail. It should not even be there if the deprevated usbfs is not
enabled. You look for DEVNAME!

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

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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (6 preceding siblings ...)
  2010-03-18 10:41 ` Kay Sievers
@ 2010-03-18 10:42 ` Petr Kubánek
  2010-03-18 14:26 ` Petr Kubánek
  2010-03-18 16:46 ` Scott James Remnant
  9 siblings, 0 replies; 11+ messages in thread
From: Petr Kubánek @ 2010-03-18 10:42 UTC (permalink / raw)
  To: linux-hotplug

Sorry, I should copy&paste instead of see&write - of course it is
2.6.28.

I do agree it is not Ubuntu bug. Something went wrong during upgrade,
and I just would like to discover what was it. I am finishing upgrade,
hopefully this will help.

Petr

Martin Pitt píše v Čt 18. 03. 2010 v 11:37 +0100:
> Petr Kubánek [2010-03-18 11:03 +0100]:
> > no custom kernel - 2.6.26-18-server #59
> 
> Ubuntu has never shipped 2.6.26 in any release.
> Ubuntu 9.10 uses 2.6.31 (linux-image-2.6.31-14-server). Perhaps you removed the
> linux-image-server metapackage?
> 
> Please try and install linux-image-server, boot that, and check that
> /dev/bus/usb is back.
> 
> Anyway, this is not an upstream bug, and not an Ubuntu one either. Can
> you please refer to https://answers.launchpad.net/ for further
> questions?
> 
> Thanks,
> 
> Martin



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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (7 preceding siblings ...)
  2010-03-18 10:42 ` Petr Kubánek
@ 2010-03-18 14:26 ` Petr Kubánek
  2010-03-18 16:46 ` Scott James Remnant
  9 siblings, 0 replies; 11+ messages in thread
From: Petr Kubánek @ 2010-03-18 14:26 UTC (permalink / raw)
  To: linux-hotplug

Hi,

whatever it was, it is gone - I upgraded to 2.6.31-20, which fixed the
problem. /dev/bus/usb is back, lsusb works.

Thanks a lot for all suggestions.

Petr

Kay Sievers píše v Čt 18. 03. 2010 v 11:41 +0100:
> On Thu, Mar 18, 2010 at 11:31, Petr Kubánek <petr@kubanek.net> wrote:
> > Ok, running
> >
> > udevadm test /bus/usb/devices/2-1
> >
> > still shows DEVICE=xxx
> >
> > It looks that the upgrade was left in some strange state. I am finishing
> > it, hopefully it will help..
> 
> No, DEVICE means nothing, just ignore it, as mentioned in the earlier
> mail. It should not even be there if the deprevated usbfs is not
> enabled. You look for DEVNAME!
> 
> Kay



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

* Re: How is /dev/bus/usb created - /dev/bus/usb lost during system
  2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
                   ` (8 preceding siblings ...)
  2010-03-18 14:26 ` Petr Kubánek
@ 2010-03-18 16:46 ` Scott James Remnant
  9 siblings, 0 replies; 11+ messages in thread
From: Scott James Remnant @ 2010-03-18 16:46 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 335 bytes --]

On Thu, 2010-03-18 at 11:03 +0100, Petr Kubánek wrote:

> no custom kernel - 2.6.26-18-server #59
> 
2.6.26 is well below the supported kernel version for Ubuntu 9.10

Ubuntu 9.10 shipped with 2.6.31, we fully support that kernel and newer
kernel versions - not older ones

Scott
-- 
Scott James Remnant
scott@ubuntu.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-03-18 16:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18  1:24 How is /dev/bus/usb created - /dev/bus/usb lost during system Petr Kubánek
2010-03-18  2:48 ` Greg KH
2010-03-18  8:51 ` Martin Pitt
2010-03-18 10:03 ` Petr Kubánek
2010-03-18 10:21 ` Kay Sievers
2010-03-18 10:31 ` Petr Kubánek
2010-03-18 10:37 ` Martin Pitt
2010-03-18 10:41 ` Kay Sievers
2010-03-18 10:42 ` Petr Kubánek
2010-03-18 14:26 ` Petr Kubánek
2010-03-18 16:46 ` Scott James Remnant

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).