Re: USB pen drive quirk not working

2008-07-18 Thread Chris Whitehouse

David Gurvich wrote:

I'm sure someone else knows better, but there is a Makefile
in /usr/src/sys.  Perhaps it's enough to 'make cam' there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Thanks for reply David.

I get

eco# make cam
`cam' is up to date.

even though it's not. Now I'm off for a few days without computer so 
I'll look further when I'm back.


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB pen drive quirk not working

2008-07-18 Thread David Gurvich
You need to remove the directory under /usr/obj that matches your
source.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB pen drive quirk not working

2008-07-16 Thread Chris Whitehouse

Chris Whitehouse wrote:

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(0x),
nVidia(0x), 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(0x),
nVidia(0x), 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




Just wondering if anyone has any suggestion for this.

I tried again with
 {
/*
 * Texet Swivel 1GB Flash Drive
 * PR:
 */
{T_DIRECT, SIP_MEDIA_REMOVABLE, *, Flash Disk, *},
 /*quirks*/ DA_Q_NO_SYNC_CACHE
},

(rebuilding world) but still get the same messages.

I'm wondering if there is another file I should be editing but the 
patches in all the PR's I checked from scsi_da.c only patch the one file 
and /sys/cam/README.quirks didn't provide enlightenment :)


Thanks

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB pen drive quirk not working

2008-07-16 Thread David Gurvich
I'm sure someone else knows better, but there is a Makefile
in /usr/src/sys.  Perhaps it's enough to 'make cam' there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]