Stephen J. Gowdy wrote:
> I guess you're not interested in performance then?
OK, let me back up a little bit, please. My point is that SCSI emulation did
not work for me with the Apacer. Everything worked correctly with SCSI
emulation with 2.6.8.1 (still on Debian/sarge), and then when I have
re-compiled 2.6.9.1, I think I have not missed anything (see attached
output from lsmod). Apparently the device is correctly recognized (see
output from lsusb), but there is nothing in /proc/scsi/scsi and mount -t
vfat /dev/sda /mnt/bizu loads SCSI modules (the output of lsmod was
captured after attempted mount), but it fails with '/dev/sda is not a valid
block device'. In this situation I have not found anything helpful on
Google (both www.google.com and groups.google.com) so I settled
for /dev/uba solution which at least worked. However, it is really slow and
when I routinely transfer tens of megabytes with this stick, it takes
really a lot of time to make to update my Debian from the USB stick, so
after all I would like to get SCSI working (if it is faster and it allows
USB 2.0).
Is it possible to run USB storage with 2.6.9.1 over SCSI emulation? How to
make kernel using ehci_hcd instead of uhci_hcd?
Thanks for any suggestion,
Matej
--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
A conclusion is simply the place where someone got tired of thinking.
Module Size Used by
sd_mod 15312 0
scsi_mod 117100 1 sd_mod
vfat 14592 0
fat 45856 1 vfat
ub 17628 0
r128 109188 2
8250 21888 0
serial_core 23520 1 8250
ipv6 259680 14
3c509 14516 0
snd_ens1370 17896 1
snd_rawmidi 24900 1 snd_ens1370
snd_seq_device 7976 1 snd_rawmidi
snd_pcm_oss 54056 0
snd_mixer_oss 20288 1 snd_pcm_oss
snd_pcm 98792 2 snd_ens1370,snd_pcm_oss
snd_timer 25796 1 snd_pcm
snd_page_alloc 9992 2 snd_ens1370,snd_pcm
snd_ak4531_codec 7680 1 snd_ens1370
snd 56836 11
snd_ens1370,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_ak4531_codec
soundcore 9824 1 snd
uhci_hcd 33644 0
usbcore 135044 4 ub,uhci_hcd
piix 12928 0 [permanent]
intel_agp 22528 1
agpgart 34504 2 intel_agp
evdev 9248 0
af_packet 22408 0
rtc 12600 0
unix 28564 403
Bus 001 Device 002: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0 (256MB)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1005 Apacer Technology, Inc.
idProduct 0xb113 Handy Steno 2.0 (256MB)
bcdDevice 1.00
iManufacturer 0
iProduct 1 USB Flash Drive
iSerial 2 070B000120E0780
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.9.1blahoslav uhci_hcd
iProduct 2 Intel Corp. 82371AB/EB/MB PIIX4 USB
iSerial 1 0000:00:07.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0x01
Nov 19 22:12:59 blahoslav kernel: apm: BIOS version 1.2 Flags 0x07 (Driver
version 1.16ac)
Nov 19 22:12:59 blahoslav kernel: apm: disabled on user request.
Nov 19 22:13:05 blahoslav kernel: ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11
(level, low) -> IRQ 11
Nov 19 22:13:05 blahoslav kernel: [drm] Initialized r128 2.5.0 20030725 on
minor 0: ATI Technologies Inc Rage 128 RF/SG AGP
Nov 19 22:13:05 blahoslav kernel: agpgart: Found an AGP 1.0 compliant device at
0000:00:00.0.
Nov 19 22:13:05 blahoslav kernel: agpgart: Putting AGP V2 device at
0000:00:00.0 into 1x mode
Nov 19 22:13:05 blahoslav kernel: agpgart: Putting AGP V2 device at
0000:01:00.0 into 1x mode
Nov 19 22:20:25 blahoslav kernel: apm: BIOS version 1.2 Flags 0x07 (Driver
version 1.16ac)
Nov 19 22:20:25 blahoslav kernel: apm: disabled on user request.
Nov 19 22:32:50 blahoslav -- MARK --
Nov 19 22:47:15 blahoslav kernel: usb 1-2: new full speed USB device using
address 2
Nov 19 22:47:15 blahoslav kernel: usb 1-2: Product: USB Flash Drive
Nov 19 22:47:15 blahoslav kernel: usb 1-2: SerialNumber: 070B000120E0780
Nov 19 22:47:17 blahoslav kernel: ub: sizeof ub_scsi_cmd 60 ub_dev 924
Nov 19 22:47:18 blahoslav kernel: uba: device 2 capacity nsec 253949 bsize 512
Nov 19 22:47:18 blahoslav kernel: uba: was not changed
Nov 19 22:47:18 blahoslav kernel: uba: unknown partition table
Nov 19 22:47:18 blahoslav kernel: usbcore: registered new driver ub
Nov 19 22:47:20 blahoslav usb.agent[2774]: ub: loaded successfully
Nov 19 22:32:50 blahoslav -- MARK --
Nov 19 22:47:15 blahoslav kernel: usb 1-2: new full speed USB device using
address 2
Nov 19 22:47:15 blahoslav kernel: usb 1-2: Product: USB Flash Drive
Nov 19 22:47:15 blahoslav kernel: usb 1-2: SerialNumber: 070B000120E0780
Nov 19 22:47:17 blahoslav kernel: ub: sizeof ub_scsi_cmd 60 ub_dev 924
Nov 19 22:47:18 blahoslav kernel: uba: device 2 capacity nsec 253949 bsize 512
Nov 19 22:47:18 blahoslav kernel: uba: was not changed
Nov 19 22:47:18 blahoslav kernel: uba: unknown partition table
Nov 19 22:47:18 blahoslav kernel: usbcore: registered new driver ub
Nov 19 22:47:20 blahoslav usb.agent[2774]: ub: loaded successfully
Nov 19 22:48:21 blahoslav kernel: SCSI subsystem initialized