Re: Accessing USB Mass Storage Device

From: Daniel Rudy (dr2867_at_pacbell.net)
Date: 10/24/05

  • Next message: Bernd Walter: "Re: Accessing USB Mass Storage Device"
    Date: Sun, 23 Oct 2005 19:34:45 -0700
    To: ticso@cicely.de
    
    

    At about the time of 10/20/2005 4:04 AM, Bernd Walter stated the following:
    > On Tue, Oct 18, 2005 at 10:38:45PM -0600, M. Warner Losh wrote:
    >
    >>In message: <43553287.4030907@pacbell.net>
    >> Daniel Rudy <dr2867@pacbell.net> writes:
    >>:
    >>: When the umass driver is compiled into the kernel, and one inserts a USB
    >>: mass storage device, how does one access the device descriptors (serial
    >>: number) while the device is listed as a da device? I would perfer to
    >>: have the OS do all the work of accessing the hardware.
    >>
    >>The serial number can be obtained with devifo. However, since cam
    >>doesn't hook into the device tree, mapping da number to umass number
    >>can be tricky in the arbitrary case.
    >>
    >>devinfo -v | grep umass
    >> umass0 pnpinfo vendor=0x054c product=0x014d devclass=0x00 devsubclass=0x00 release=0x0110 sernum="0052450548137984" intclass=0x08 intsubclass= at port=0 interface=0
    >
    >
    > This is the USB serial number, there might even exist another one
    > at CAM device layer.
    > e.g.:
    > [108]cicely13# camcontrol inquiry -n da -u 1
    > pass1: <General Flash Disk Drive 2.05> Removable Direct Access SCSI-2 device
    > pass1: Serial Number ST92163-2000
    > pass1: 1.000MB/s transfers
    > [110]cicely13# devinfo -v | grep umass0
    > umass0 pnpinfo vendor=0x0483 product=0x1307 devclass=0x00 devsubclass=0x00 sernum="4710765066451" interface=0 intclass=0x08 intsubclass=0x06 at port=1
    >

    That was one of the first things that I tried. It didn't work. All I
    got was a blank line.

    -- 
    Daniel Rudy
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Bernd Walter: "Re: Accessing USB Mass Storage Device"

    Relevant Pages

    • Re: Accessing USB Mass Storage Device
      ... >> at CAM device layer. ... Neither the USB serial number nor the CAM one must exist. ... USB device can have strings in several languages, ... is not an exception here. ...
      (freebsd-hackers)
    • ISO...
      ... Been listening to lots of Warren Zevon lately and have been unable to ... locate my copy of his last David Letterman appearance. ... Cam anyone hook ...
      (rec.music.artists.springsteen)
    • Re: ISO...
      ... locate my copy of his last David Letterman appearance. ... Cam anyone hook ... bluetuna4 AT webtv Dot net ...
      (rec.music.artists.springsteen)