Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-27 Thread Jesse Guardiani
Jesse Guardiani wrote:

 This is interesting:
 
 
 [17:[EMAIL PROTECTED]:[~]# camcontrol devlist
 USB 2.0 Storage Device 0100  at scbus1 target 0 lun 0 (da0,pass0)
 
 [17:[EMAIL PROTECTED]:[~]# camcontrol inquiry 1:0:0
 pass0: USB 2.0 Storage Device 0100 Fixed Direct Access SCSI-0 device
 pass0: Serial Number
 pass0: 1.000MB/s transfers
 
 
 So it looks like it's just not recognizing the file system on da0.
 Perhaps I should try `camcontrol format`? It would probably take for ever
 to format a 32Gb disk over a 1M link, but I could leave it on over
 night...
 
 I originally formatted this disk by putting it in my primary drive sled
 in my laptop and running a partitioning program...

I just upgraded to FreeBSD 5.2-BETA and this drive works now! Apparently
something in the umass driver has changed for the better since 5.1-RELEASE
and 4.8-RELEASE (the systems I tested the drive on that didn't work).

Woo hoo!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


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


USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread Jesse Guardiani
Howdy list,

I'm running FreeBSD 5.1-RELEASE. I just bought a generic
USB 1.1/2.0/firewire external drive enclosure for my 32gb
Travelstar 2.0 12.5mm hard drive.

The device shows up like this:

Nov 18 14:06:16 trevarthan kernel: umass0: Acer Labs USB 2.0 Storage Device, rev 
2.00/1.03, addr 3
Nov 18 14:06:16 trevarthan kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Nov 18 14:06:17 trevarthan kernel: da0: USB 2.0 Storage Device 0100 Fixed Direct 
Access SCSI-0 device
Nov 18 14:06:17 trevarthan kernel: da0: 1.000MB/s transfers
Nov 18 14:06:17 trevarthan kernel: da0: 30520MB (62506080 512 byte sectors: 255H 63S/T 
3890C)

But `ls -al /dev/da*` reveals no slices:

crw-r-  1 root  operator4,  22 Nov 18 13:35 /dev/da0

The hard disk inside this enclosure was formatted with a 10gig
FAT32 partition. It works fine in a Coolmax Gemini 2.5 USB 2.0/1.1
drive enclosure (which shows up as IDE-ATA under Windows XP), and
it works fine in this enclosure as long as I'm running Windows XP
(but it shows up differently than the Gemini under XP: IDE-ATAPI).
It just doesn't work under FreeBSD 5.1-RELEASE or FreeBSD 4.8-RELEASE
for some reason...

I've found the following links relating to similar problems:

http://lists.freebsd.org/pipermail/freebsd-current/2003-August/008504.html

http://lists.freebsd.org/pipermail/freebsd-hardware/2003-July/000393.html

But no solutions. Has the USB code been updated since FreeBSD 5.1-RELEASE?
Is there a chance it will work if I cvsup to -CURRENT?

I contacted the gentleman from the first link above, and he said that
the only thing different about his configuration (other than hardware)
is that:

1.) He connects through a USB hub
2.) He runs -CURRENT from Nov 7th

I can't seem get my hands on a USB hub, so it looks like my only option is -CURRENT.

Does anyone have any clues to help get this drive working? I'm all for debugging
of any kind, including coding. I'm just not sure where to start.

Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


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


Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread Barney Wolff
On Mon, Nov 24, 2003 at 04:44:02PM -0500, Jesse Guardiani wrote:
 
 I'm running FreeBSD 5.1-RELEASE. I just bought a generic
 USB 1.1/2.0/firewire external drive enclosure for my 32gb
 Travelstar 2.0 12.5mm hard drive.
 
 The device shows up like this:
 
 Nov 18 14:06:16 trevarthan kernel: umass0: Acer Labs USB 2.0 Storage Device, rev 
 2.00/1.03, addr 3
 Nov 18 14:06:16 trevarthan kernel: da0 at umass-sim0 bus 0 target 0 lun 0
 Nov 18 14:06:17 trevarthan kernel: da0: USB 2.0 Storage Device 0100 Fixed Direct 
 Access SCSI-0 device
 Nov 18 14:06:17 trevarthan kernel: da0: 1.000MB/s transfers
 Nov 18 14:06:17 trevarthan kernel: da0: 30520MB (62506080 512 byte sectors: 255H 
 63S/T 3890C)
 
 But `ls -al /dev/da*` reveals no slices:

If you're using an ohci usb controller, perhaps you need a patch.
Browse the -current archives for the last week or so.

Why hasn't anything been committed?

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread Jesse Guardiani
Barney Wolff wrote:

 On Mon, Nov 24, 2003 at 04:44:02PM -0500, Jesse Guardiani wrote:
 
 I'm running FreeBSD 5.1-RELEASE. I just bought a generic
 USB 1.1/2.0/firewire external drive enclosure for my 32gb
 Travelstar 2.0 12.5mm hard drive.
 
 The device shows up like this:
 
 Nov 18 14:06:16 trevarthan kernel: umass0: Acer Labs USB 2.0 Storage
 Device, rev 2.00/1.03, addr 3 Nov 18 14:06:16 trevarthan kernel: da0 at
 umass-sim0 bus 0 target 0 lun 0 Nov 18 14:06:17 trevarthan kernel: da0:
 USB 2.0 Storage Device 0100 Fixed Direct Access SCSI-0 device Nov 18
 14:06:17 trevarthan kernel: da0: 1.000MB/s transfers Nov 18 14:06:17
 trevarthan kernel: da0: 30520MB (62506080 512 byte sectors: 255H 63S/T
 3890C)
 
 But `ls -al /dev/da*` reveals no slices:
 
 If you're using an ohci usb controller, perhaps you need a patch.
 Browse the -current archives for the last week or so.

Sorry, I didn't realize that might be important.

Pretty sure it's UHCI:

[17:[EMAIL PROTECTED]:[~]% usbdevs
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
 addr 2: USB Receiver, Logitech
addr 1: UHCI root hub, Intel


And from dmesg.boot:

uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 9 at 
device 29.0 on pci0
usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at 
device 29.1 on pci0
usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801CA/CAM (ICH3) USB controller USB-C port 0x1840-0x185f irq 9 at 
device 29.2 on pci0
usb2: Intel 82801CA/CAM (ICH3) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


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


Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Barney Wolff [EMAIL PROTECTED] writes:
: Why hasn't anything been committed?

Code freeze?

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


Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread Jesse Guardiani
This is interesting:


[17:[EMAIL PROTECTED]:[~]# camcontrol devlist
USB 2.0 Storage Device 0100  at scbus1 target 0 lun 0 (da0,pass0)

[17:[EMAIL PROTECTED]:[~]# camcontrol inquiry 1:0:0
pass0: USB 2.0 Storage Device 0100 Fixed Direct Access SCSI-0 device
pass0: Serial Number
pass0: 1.000MB/s transfers


So it looks like it's just not recognizing the file system on da0.
Perhaps I should try `camcontrol format`? It would probably take for ever
to format a 32Gb disk over a 1M link, but I could leave it on over night...

I originally formatted this disk by putting it in my primary drive sled
in my laptop and running a partitioning program...

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


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


Re: USB 1.0 IDE to ATAPI drive enclosure failure

2003-11-24 Thread Barney Wolff
On Mon, Nov 24, 2003 at 03:35:42PM -0700, M. Warner Losh wrote:
 : Why hasn't anything been committed?
 
 Code freeze?

I understand the concept, but I haven't seen any reports of people
claiming that OHCI works for other than mice/keyboards without
the following patch (from Brian F. Feldman [EMAIL PROTECTED]):
--- ohci.c  12 Nov 2003 01:40:11 -  1.138
+++ ohci.c  22 Nov 2003 03:28:42 -
@@ -569,7 +569,7 @@
cur-td.td_cbp = htole32(dataphys);
cur-nexttd = next;
cur-td.td_nexttd = htole32(next-physaddr);
-   cur-td.td_be = htole32(DMAADDR(dma, curlen - 1));
+   cur-td.td_be = htole32(DMAADDR(dma, offset + curlen - 1));
cur-len = curlen;
cur-flags = OHCI_ADD_LEN;
cur-xfer = xfer;

It cured my problems with a Sony DSC F707.  Maybe most people with
OHCI controllers haven't had problems, but if so they've been quietly
satisfied.

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]