Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61446 - lsusb returns bad information
Summary: lsusb returns bad information
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-23 16:01 UTC by Timo Boettcher
Modified: 2004-08-24 15:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Boettcher 2004-08-23 16:01:17 UTC
I have some usb-mp3-stick, that returns "?"-characters in its serial. these show up in sys/proc-fs just fine, but lsusb -v just shows one "



Reproducible: Always
Steps to Reproduce:
1. get a mp3-usb-stick of ebay that returns "?"-characters in its serial
2. compare lsusb and sys/proc-fs output

Actual Results:  
root@notebook timo # cat /proc/scsi/usb-storage/10
   Host scsi10: usb-storage
       Vendor: <USB MF>
      Product: <USB PRODUCT>
Serial Number: ??6?5?2?8?012345
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
root@notebook 2-1 # cd /sys/bus/usb/devices/usb2/2-1/
root@notebook 2-1 # cat idVendor manufacturer idProduct product serial
066f
<USB MF>
8000
<USB PRODUCT>
??6?5?2?8?012345
root@notebook timo # lsusb -v -D  /proc/bus/usb/002/010
Device: ID 066f:8000 SigmaTel, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 Interface
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x066f SigmaTel, Inc.
  idProduct          0x8000
  bcdDevice           10.00
  iManufacturer           1 <USB MF>
  iProduct                2 <USB PRODUCT>
  iSerial                 3 "
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5 Internal Device
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
  Language IDs: (length=4)
     0409 English(US)



Expected Results:  
lsusb should have returned the serial like it is listed in sys/proc-fs

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7-
gentoo-r14)
=================================================================
System uname: 2.6.7-gentoo-r14 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/
share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /
usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://
ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://mirrors.sec.informatik.tu-
darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 avi berkdb bluetooth cdr crypt cups 
divx4linux dvd dvdr encode esd ethereal ffmpeg foomaticdb gdbm gif gnome gpm gtk 
gtk2 imagemagick imap imlib ipv6 irda java jpeg ldap libg++ libwww mad maildir 
mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mpeg4 ncurses nls 
oggvorbis opengl oss pam pcap pcmcia pda pdflib perl php pic png pnp postgres 
python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex 
theora tiff transcode truetype trusted unicode usb x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-08-24 15:19:01 UTC
actually the '?' means that the characters are unprintable (a.k.a. not ASCII)

it doesnt mean the things are actually question marks

you could try e-mailing the peeps upstream at http://usb.cs.tum.edu/ with your info