Re: USB storage device not recognized
>>> Is there a way to actively probe out for a device from a usb port? >> New problem... the kernel is picking up what might be a second >> LUN and throwing a lot of errors. If this LUN is real and intentional >> I have no idea what purpose it would be for. It is not accessible >> in a usual way with dd... >> dd: /dev/da1: Device not configured >> >> [Update: This has both soldered flash and microSD slot, >> the second LUN may be the SD slot. Will test...] Tested... the second LUN is the SD slot. With card in both da0 and da1 are then usable in parallel. > There is a quirk to force a single LUN: > usbconfig -d X.Y add_quirk UQ_MSC_NO_GETMAXLUN This quiets the errors when that empty LUN, but I wouldn't add it as default to the kernel because then it does not detect card in slot. Here is device quirk if anyone wants... VID=0x054c PID=0x082a REVLO=0x0100 REVHI=0x0100 QUIRK=UQ_MSC_NO_GETMAXLUN >> Also the kernel does not print USB 'port' number except on disconnect... >> kernel: umass0: at uhub3, port 5, addr 2 (disconnected) >> It needs to print a corresponding 'connected' line on connect, >> or perhaps add the 'port' in here... >> kernel: umass0: on usbus3 In addition to fixing the above port printf, I believe this sense string needs to delete the ' to ready change' part. (probe0:umass-sim0:0:0:1): SCSI status error (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 00 20 00 00 00 00 (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI status: Check Condition (probe0:umass-sim0:0:0:1): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) (probe0:umass-sim0:0:0:1): Retrying command (per sense data) Thanks. ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
On 09/02/14 23:39, grarpamp wrote: Is there a way to actively probe out for a device from a usb port? [The other ports act the same way... a usbstick is recognized, this device isn't.] The problem was bad cable mating... power pair connected but data pair did not. Cutting back some plastic shroud let USB seat further in and fixed it. Mountable and files accessible now. New problem... the kernel is picking up what might be a second LUN and throwing a lot of errors. If this LUN is real and intentional I have no idea what purpose it would be for. It is not accessible in a usual way with dd... # camcontrol devl -v scbus3 on umass-sim0 bus 0: at scbus3 target 0 lun 0 (da0,pass2) at scbus3 target 0 lun 1 (da1,pass3) # ls /dev/*da* /dev/da0/dev/da0s1 /dev/da1 # dd if=/dev/da1 of=/dev/null dd: /dev/da1: Device not configured [Update: This has both soldered flash and microSD slot, the second LUN may be the SD slot. Will test...] Also the kernel does not print USB 'port' number except on disconnect... kernel: umass0: at uhub3, port 5, addr 2 (disconnected) It needs to print a corresponding 'connected' line on connect, or perhaps add the 'port' in here... kernel: umass0: on usbus3 Here's the full LUN / port issue log... Hi, There is a quirk to force a single LUN: usbconfig -d X.Y add_quirk UQ_MSC_NO_GETMAXLUN --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
> Is there a way to actively probe out for a device from a usb port? > [The other ports act the same way... a usbstick is recognized, > this device isn't.] The problem was bad cable mating... power pair connected but data pair did not. Cutting back some plastic shroud let USB seat further in and fixed it. Mountable and files accessible now. New problem... the kernel is picking up what might be a second LUN and throwing a lot of errors. If this LUN is real and intentional I have no idea what purpose it would be for. It is not accessible in a usual way with dd... # camcontrol devl -v scbus3 on umass-sim0 bus 0: at scbus3 target 0 lun 0 (da0,pass2) at scbus3 target 0 lun 1 (da1,pass3) # ls /dev/*da* /dev/da0/dev/da0s1 /dev/da1 # dd if=/dev/da1 of=/dev/null dd: /dev/da1: Device not configured [Update: This has both soldered flash and microSD slot, the second LUN may be the SD slot. Will test...] Also the kernel does not print USB 'port' number except on disconnect... kernel: umass0: at uhub3, port 5, addr 2 (disconnected) It needs to print a corresponding 'connected' line on connect, or perhaps add the 'port' in here... kernel: umass0: on usbus3 Here's the full LUN / port issue log... k: ugen3.2: at usbus3 k: umass0: on usbus3 k: umass0: SCSI over Bulk-Only; quirks = 0x4000 k: umass0:3:0:-1: Attached to scbus3 k: (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? k: pass2 at umass-sim0 bus 0 scbus3 target 0 lun 0 k: pass2: Removable Direct Access SCSI-0 device k: pass2: Serial Number 0123456789ABCDEF k: pass2: 40.000MB/s transfers k: GEOM: new disk da0 k: da0 at umass-sim0 bus 0 scbus3 target 0 lun 0 k: da0: Removable Direct Access SCSI-0 device k: da0: Serial Number 0123456789ABCDEF k: da0: 40.000MB/s transfers k: da0: 3770MB (7722483 512 byte sectors: 255H 63S/T 480C) k: da0: quirks=0x2 k: da0: Delete methods: k: (probe0:umass-sim0:0:0:1): Down reving Protocol Version from 2 to 0? k: (probe0:umass-sim0:0:0:1): SCSI status error k: (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 00 20 00 00 00 00 k: (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error k: (probe0:umass-sim0:0:0:1): SCSI status: Check Condition k: (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) k: (probe0:umass-sim0:0:0:1): Error 6, Unretryable error k: pass3 at umass-sim0 bus 0 scbus3 target 0 lun 1 k: pass3: Removable Direct Access SCSI-0 device k: pass3: Serial Number 0123456789ABCDEF k: pass3: 40.000MB/s transfers k: (da1:umass-sim0:0:0:1): SCSI status error k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00 k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error k: da1 at umass-sim0 bus 0 scbus3 target 0 lun 1 k: da1: Removable Direct Access SCSI-0 device k: da1: Serial Number 0123456789ABCDEF k: da1: 40.000MB/s transfers k: da1: Attempt to query device size failed: NOT READY, Medium not present k: da1: quirks=0x2 k: da1: Delete methods: k: GEOM: new disk da1 k: (da1:umass-sim0:0:0:1): SCSI status error k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00 k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error k: Opened disk da1 -> 6 k: (da1:umass-sim0:0:0:1): SCSI status error k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00 k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error k: Opened disk da1 -> 6 k: ugen3.2: at usbus3 (disconnected) k: umass0: at uhub3, port 5, addr 2 (disconnected) k: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 0 refs k: (da0:umass-sim0:0:0:0): removing device entry k: (pass2:umass-sim0:0:0:0): lost device k: (pass2:umass-sim0:0:0:0): removing device entry k: (da1:umass-sim0:0:0:1): lost device - 0 outstanding, 0 refs k: (da1:umass-sim0:0:0:1): removing device entry k: (pass3:umass-sim0:0:0:1): lost device k: (pass3:umass-sim0:0:0:1): removing device entry ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
> Can you send output from "pciconf -lv" maybe there is a USB controller not > recognized? dmesg and pciconf have them all, the device is always plugged in ehci0. [The other ports act the same way... usbstick recognized, this device isn't.] I should probably try under windows. Is there a way to actively probe out for a device from a usb port? uhci0: port 0xd800-0xd81f irq 16 at device 29.0 on pci0 usbus0 on uhci0 uhci1: port 0xd000-0xd01f irq 19 at device 29.1 on pci0 usbus1 on uhci1 uhci2: port 0xd400-0xd41f irq 18 at device 29.2 on pci0 usbus2 on uhci2 ehci0: mem 0xee08-0xee0803ff irq 23 at device 29.7 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 uhub0: on usbus0 uhub1: on usbus1 uhub2: on usbus2 uhub3: on usbus3 uhci0@pci0:0:29:0: class=0x0c0300 card=0x01471028 chip=0x24c28086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *1' class = serial bus subclass = USB uhci1@pci0:0:29:1: class=0x0c0300 card=0x01471028 chip=0x24c48086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *2' class = serial bus subclass = USB uhci2@pci0:0:29:2: class=0x0c0300 card=0x01471028 chip=0x24c78086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *3' class = serial bus subclass = USB ehci0@pci0:0:29:7: class=0x0c0320 card=0x01471028 chip=0x24cd8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller' class = serial bus subclass = USB ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
On 08/31/14 23:38, grarpamp wrote: Please send output from: usbconfig -d X.Y dump_device_desc dump_curr_config_desc regarding your device. Nothing happens in verbose dmesg when I plug in the device, other than the device itself turns on. If I plug in another device, such as a USB memory stick to the same port, the stick is accessible. I believe this device is supposed to present as mass storage since similar devices in its class do appear. Anyway, the below output is the same regardless of whether or not the device is plugged in (I used -u 3 to list the entire bus in the case when memory stick is in)... usbdump -v -i usbus3 -f 2 [nothing with device, dumps with memstick] Hi, Can you send output from "pciconf -lv" maybe there is a USB controller not recognized? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
> Please send output from: > usbconfig -d X.Y dump_device_desc dump_curr_config_desc > regarding your device. Nothing happens in verbose dmesg when I plug in the device, other than the device itself turns on. If I plug in another device, such as a USB memory stick to the same port, the stick is accessible. I believe this device is supposed to present as mass storage since similar devices in its class do appear. Anyway, the below output is the same regardless of whether or not the device is plugged in (I used -u 3 to list the entire bus in the case when memory stick is in)... usbdump -v -i usbus3 -f 2 [nothing with device, dumps with memstick] usbconfig -u 3 dump_device_desc dump_curr_config_desc ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x idProduct = 0x bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x bmAttributes = 0x0040 bMaxPower = 0x Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x bAlternateSetting = 0x bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x bInterfaceProtocol = 0x iInterface = 0x Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x bSynchAddress = 0x ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: USB storage device not recognized
On 08/30/14 20:42, grarpamp wrote: The GENERIC 8 STABLE r269631 i386 kernel on a Pentium 4 Prescott ICH4 era motherboard does nothing when a Sony ICD-PX333 is plugged in. I believe it should present as mass storage. Other mass storage devices such as cameras etc work ok in the same USB port. How can I debug this or send info to you for debugging? ehci0: Thx. Hi, Please send output from: usbconfig -d X.Y dump_device_desc dump_curr_config_desc regarding your device. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
USB storage device not recognized
The GENERIC 8 STABLE r269631 i386 kernel on a Pentium 4 Prescott ICH4 era motherboard does nothing when a Sony ICD-PX333 is plugged in. I believe it should present as mass storage. Other mass storage devices such as cameras etc work ok in the same USB port. How can I debug this or send info to you for debugging? ehci0: Thx. ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"