USB pen drive quirk not working

Chris Whitehouse cwhiteh at onetel.com
Fri Jul 11 22:25:10 UTC 2008


Hi,

I have a USB pen drive which gives warning messages like the ones in this PR
http://www.freebsd.org/cgi/query-pr.cgi?pr=96133

I've put this


         {
                 /*
                  * Texet Swivel 1GB Flash Drive
                  * PR:
                  */
                 {T_DIRECT, SIP_MEDIA_REMOVABLE, "Flash Disk 5.00"},
                  /*quirks*/ DA_Q_NO_SYNC_CACHE
         },



in /usr/src/sys/cam/scsi/scsi_da.c and rebuilt world and kernel but I
still get the messages.

Why doesn't this work?

Also do I have to build world each time I want to test or is there a way
to just build and install the changed file? I know this question is not
really on topic but it's relevant to my main question so I hope it's ok
to ask it here as well.

eco# camcontrol inq 6:0:0
pass1: < Flash Disk 5.00> Removable Direct Access SCSI-2 device
pass1: Serial Number
40.000MB/s transfers

eco# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
nVidia(0x0000), rev 1.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
nVidia(0x0000), rev 1.00
  port 1 addr 2: high speed, power 100 mA, config 1, Flash Disk(0x6025),
vendor 0x0204(0x0204), rev 1.00
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 powered

 From my dmesg after insertion of pen drive:

umass0: <vendor 0x0204 Flash Disk, class 0/0, rev 2.00/1.00, addr 2> on
uhub1
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < Flash Disk 5.00> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 976MB (1998848 512 byte sectors: 64H 32S/T 976C)
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
GEOM_LABEL: Label for provider da0s1 is msdosfs/NEW VOLUME.
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present


Thanks

Chris



More information about the freebsd-questions mailing list