linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 8/16bit usb minor device number problem
@ 2006-09-27  9:33 Andreas Jellinghaus
  2006-09-27 15:22 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andreas Jellinghaus @ 2006-09-27  9:33 UTC (permalink / raw)
  To: linux-hotplug

I have the minor number of usb devices in /dev/bus/usb trunkated.
where do I look for debugging this problem? kernel? filesystem code?
udev? glibc? something else?

foo:/dev/bus/usb/003# ls -l
total 0
crw-rw-r--  1 root root 189, 0 Sep 26 11:52 001
crw-rw-r--  1 root root 189, 1 Sep 26 11:52 002
foo:/dev/bus/usb/003# cat /sys/class/usb_device/usbdev3.2/dev
189:257
foo:/dev/bus/usb/003#

no wonder my app fails talking to the device, it was
created with the wrong minor device number.

debian package with backport to sarge:
Version: 0.100-1~bpo.1

udev config:
# usbfs-like devices
SUBSYSTEM="usb_device",        PROGRAM="/bin/sh -c 'K=%k;
K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", \
                                 NAME="%c"

for now I can work around it with "rm -rf /dev/bus", but can
someone help me finding the real solution?

Thanks, Andreas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: 8/16bit usb minor device number problem
  2006-09-27  9:33 8/16bit usb minor device number problem Andreas Jellinghaus
@ 2006-09-27 15:22 ` Greg KH
  2006-09-27 16:03 ` Andreas Jellinghaus
  2006-09-27 17:17 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-09-27 15:22 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Sep 27, 2006 at 11:33:13AM +0200, Andreas Jellinghaus wrote:
> I have the minor number of usb devices in /dev/bus/usb trunkated.
> where do I look for debugging this problem? kernel? filesystem code?
> udev? glibc? something else?
> 
> foo:/dev/bus/usb/003# ls -l
> total 0
> crw-rw-r--  1 root root 189, 0 Sep 26 11:52 001
> crw-rw-r--  1 root root 189, 1 Sep 26 11:52 002
> foo:/dev/bus/usb/003# cat /sys/class/usb_device/usbdev3.2/dev
> 189:257
> foo:/dev/bus/usb/003#

This is probably a glibc issue.  Can you manually create a device node
with a minor of 257?

What version of glibc are you using?

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: 8/16bit usb minor device number problem
  2006-09-27  9:33 8/16bit usb minor device number problem Andreas Jellinghaus
  2006-09-27 15:22 ` Greg KH
@ 2006-09-27 16:03 ` Andreas Jellinghaus
  2006-09-27 17:17 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Jellinghaus @ 2006-09-27 16:03 UTC (permalink / raw)
  To: linux-hotplug

Greg KH wrote:
> This is probably a glibc issue.  Can you manually create a device node
> with a minor of 257?
> 
> What version of glibc are you using?

ah, ok.

foo:~# mknod 002 c 189 257
foo:~# ls -l 002
crw-r--r--  1 root root 189, 1 Sep 27 16:01 002
foo:~# ldd /bin/mknod
         libc.so.6 => /lib/tls/libc.so.6 (0xa7e9f000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xa7fda000)
foo:~# dpkg -s libc6
Package: libc6
Status: install ok installed
Priority: required
Section: base
Installed-Size: 15368
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: i386
Source: glibc
Version: 2.3.2.ds1-22sarge4


so latest udev (or at least /dev/bus/usb) and debian sarge is
not a good combination :(

Thanks for your help.

Regards, Andreas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: 8/16bit usb minor device number problem
  2006-09-27  9:33 8/16bit usb minor device number problem Andreas Jellinghaus
  2006-09-27 15:22 ` Greg KH
  2006-09-27 16:03 ` Andreas Jellinghaus
@ 2006-09-27 17:17 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-09-27 17:17 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Sep 27, 2006 at 06:03:32PM +0200, Andreas Jellinghaus wrote:
> Greg KH wrote:
> >This is probably a glibc issue.  Can you manually create a device node
> >with a minor of 257?
> >
> >What version of glibc are you using?
> 
> ah, ok.
> 
> foo:~# mknod 002 c 189 257
> foo:~# ls -l 002
> crw-r--r--  1 root root 189, 1 Sep 27 16:01 002
> foo:~# ldd /bin/mknod
>         libc.so.6 => /lib/tls/libc.so.6 (0xa7e9f000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xa7fda000)
> foo:~# dpkg -s libc6
> Package: libc6
> Status: install ok installed
> Priority: required
> Section: base
> Installed-Size: 15368
> Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
> Architecture: i386
> Source: glibc
> Version: 2.3.2.ds1-22sarge4
> 
> 
> so latest udev (or at least /dev/bus/usb) and debian sarge is
> not a good combination :(

No, mixing and matching things like that is not a good idea.  Try
upgrading the rest of your system if you want to use a newer kernel and
a newer udev.

good luck,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2006-09-27 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27  9:33 8/16bit usb minor device number problem Andreas Jellinghaus
2006-09-27 15:22 ` Greg KH
2006-09-27 16:03 ` Andreas Jellinghaus
2006-09-27 17:17 ` Greg KH

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