USB Quirk attempts in scsi_da.c failing
Tino Engel
goaengel at gmx.net
Wed Jul 2 05:31:55 UTC 2008
Hi,
Okay the problem is solvable, and as I have supposed, I did something
wrong doing the quirk.
I commented out all synchronize chache stuff in scsi_da.c and voila, I
can mount my device. (it just has only /dev/da0)
So I will engineer the correct format of the quirk and post a patch
then.
Regards,
Tino
On Tue, 1 Jul 2008 23:15:53 +0200
Tino Engel <goaengel at gmx.net> wrote:
> Dear freebsd people,
>
> I am trying to get a new usb mass storage device working.
>
> But every attmpt fails as follows:
>
> root:/usr/src# dmesg | tail -6
> umass0: <Samsung Electronics YP-U3, class 0/0, rev 2.00/2.20, addr 2>
> on uhub2 da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <Samsung YP-U3 1.00> Removable Direct Access SCSI-2 device
> da0: 40.000MB/s transfers
> da0: 3855MB (7895552 512 byte sectors: 255H 63S/T 491C)
> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi
> status == 0x0
>
>
> The problem is:
> elgrande:/home/elgrande/vidz# ls -d /dev/da*
> /dev/da0
>
> /dev/da0s1 is not there, and so i cannot mount the drive, of course...
>
>
> I tried to add the device to scsi_da.c quirk list, and rbuilt the
> kernel. (not world cause /usb/da/atapicam is in my kernel, but i am
> trying this currently, to be sure).
>
> root:/usr/src# diff sys/cam/scsi/scsi_da.c sys/cam/scsi/scsi_da.c.orig
> 516,522d515
> < * SAMSUNG YP-U3
> < */
> < {T_DIRECT, SIP_MEDIA_FIXED, "SAMSUNG", "*", "*"},
> < /*quirks*/ DA_Q_NO_SYNC_CACHE
> < },
> < {
> < /*
>
> Remark: I also tried
> {T_DIRECT, SIP_MEDIA_FIXED, "SAMSUNG", "YP-U3", "*"}
> but it made no difference.
>
> root:/usr/src# usbdevs -v | grep "port 5 addr 2"
> port 5 addr 2: high speed, power 500 mA, config 1, YP-U3(0x507c),
> Samsung Electronics(0x04e8), rev 2.20 But rebuilding and installing
> kernel did not work.
>
>
>
> As additional info I can give:
>
>
> root:/usr/src# usbdevs -v | grep "port 5 addr 2"
> port 5 addr 2: high speed, power 500 mA, config 1, YP-U3(0x507c),
> Samsung Electronics(0x04e8), rev 2.20
>
>
>
> The device is working on several windows pc's at work, as a normal
> external disk drive.
>
>
> I would be very happy to receive help, what i can do, to get it
> working... (I do not have the money for another new player ;))
>
> I really think, that I am doing something wrond with the usb quirk,
> because I still get the "synchronize chache failed" errors, and
> synchronizing is what i tried to disable...
>
> Best regards,
> Tino
> _______________________________________________
> freebsd-hardware at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
> To unsubscribe, send any mail to
> "freebsd-hardware-unsubscribe at freebsd.org"
More information about the freebsd-hardware
mailing list