2002-01-07 01:14:33

by Dylan Egan

[permalink] [raw]
Subject: 2.4.17 - hanging due to usb

Hi,

I am currently trying to install my usb-storage device to use with 2.4.17.
I have my usb device connected and switched on so when i do insmod usb-uhci
or insmod uhci it automatically picks it up and goes to install it but a
few seconds after its done that, linux just freezes up and i can't do
anything except reboot via the reboot switch (keyboard does not work). My
usb is using a shared irq with onboard sound so i disabled sound in the
BIOS and retried, only to find it failed again. I dont have enough time to
check for any errors so i can't figure out the problem and when i check the
logs there seems to be nothing out of the ordinary.

Using VIA KT266 mobo chipset....

Regards,

Dylan


2002-01-07 01:35:26

by Greg KH

[permalink] [raw]
Subject: Re: 2.4.17 - hanging due to usb

On Mon, Jan 07, 2002 at 12:13:55PM +1100, Dylan Egan wrote:
> Hi,
>
> I am currently trying to install my usb-storage device to use with 2.4.17.

Which kind of usb-storage device?

> I have my usb device connected and switched on so when i do insmod usb-uhci
> or insmod uhci it automatically picks it up and goes to install it but a
> few seconds after its done that, linux just freezes up and i can't do
> anything except reboot via the reboot switch (keyboard does not work). My
> usb is using a shared irq with onboard sound so i disabled sound in the
> BIOS and retried, only to find it failed again. I dont have enough time to
> check for any errors so i can't figure out the problem and when i check the
> logs there seems to be nothing out of the ordinary.

There is no oops message?
Has this usb-storage device ever worked on any previous kernel version?
Do any other types of USB devices work with Linux on this machine?

thanks,

greg k-h

2002-01-07 02:53:16

by Greg KH

[permalink] [raw]
Subject: Re: 2.4.17 - hanging due to usb

On Mon, Jan 07, 2002 at 01:25:39PM +1100, Dylan Egan wrote:
>
> >Which kind of usb-storage device?
>
> ScanLogic USBIDE.... it works in windows :(

Doesn't mean too much :)

> >There is no oops message?
>
> Nope
>
> >Has this usb-storage device ever worked on any previous kernel version?
>
> Wouldnt know just got it

Can you not load the usb-storage driver, load the usbcore module, and
the USB host driver that you are using, and point hotplug to somewhere
else:
echo /bin/true > /proc/sys/kernel/hotplug

Then plug in your device, and send the output of /proc/bus/usb/devices
to the list (and the linux-usb-devel list, which is a better place for
this :)

> >Do any other types of USB devices work with Linux on this machine?
>
> Tried a mouse........ the cursor came up but it wouldnt move around

Did you set it up properly? See the Linux USB Guide at
http://www.linux-usb.org/ for info on how to do it.

thanks,

greg k-h

2002-01-07 05:44:23

by Dylan Egan

[permalink] [raw]
Subject: Re: 2.4.17 - hanging due to usb


>Can you not load the usb-storage driver, load the usbcore module, and
>the USB host driver that you are using, and point hotplug to somewhere
>else:
> echo /bin/true > /proc/sys/kernel/hotplug
>
>Then plug in your device, and send the output of /proc/bus/usb/devices
>to the list (and the linux-usb-devel list, which is a better place for
>this :)

I only got this extra bit of infomation from the way you said for me to do it.
When i loaded usbcore this time it said cant get major 180 for usb....
Ok i loaded it as you said it all went find but it never gave me anything
when i went to do "cat /proc/bus/usb/devices".
Also this is the most information i can get when it is initialzing the usb
device(insmod usb-storage):

Using /lib/modules/2.4.17/kernel/drivers/usb/storage/usb-storage.o
usb.c: registered new driver usb-storage
scsi0: SCSI Emulation for USB Mass Storage devices
usb-uhci.c: ENXIO 800000200, flags 0,urb ccaeb440, burb ccaeb4c0
usb-uhci.c: interrupt, status 3, frame #1758
usb.c USB disconnect on device 2
hub.c USB new device connect on bus3/2, assigned device number 3
Manufactuar: ScanLogic USBIDE
Product: ScanLogic USBIDE
usb-storage:host_reset() requested but not implemented
scsi: device set offline - command error recover failed; host0 channel 0 id
0 lun 0

i had to write this out i hope its perfect to what it said

Regards,

Dylan

2002-01-07 07:11:58

by Dylan Egan

[permalink] [raw]
Subject: Re: 2.4.17 - hanging due to usb

Ok read this... more info..... :

usb.c: unable to get major 180 for usb devices
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.268 $ time 13:10:52 Jan 7 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF c4b76e80, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI Root Hub
SerialNumber: d000
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c4b76e80
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb-uhci.c: USB UHCI at I/O 0xcc00, IRQ 10
usb-uhci.c: Detected 2 ports
hub.c: port 1 connection change
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 enable change, status 100
hub.c: port 2 enable change, status 100
usb.c: new USB bus registered, assigned bus number 2
usb.c: kmalloc IF c4b76c80, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI Root Hub
SerialNumber: cc00
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface c4b76c80
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb-uhci.c: USB UHCI at I/O 0xc800, IRQ 10
usb-uhci.c: Detected 2 ports
hub.c: port 1 connection change
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 3, 12 Mb/s
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
hub.c: USB new device connect on bus2/2, assigned device number 2
usb.c: new USB bus registered, assigned bus number 3
usb.c: kmalloc IF c4b76ac0, numif 1
usb.c: new device strings: Mfr=0, Product=1, SerialNumber=0
usb.c: kmalloc IF c4b76980, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB UHCI Root Hub
SerialNumber: c800
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 2ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: RR
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: USB device number 2 default language ID 0x409
Product: USB Host To Host Bridge
usb.c: unhandled interfaces on device
usb.c: USB device 2 (vend/prod 0x5e3/0x502) is not claimed by any active
driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 05e3:0502
MaxPacketSize0 = 8
NumConfigurations = 1
Device version = 1.80
Device Class:SubClass:Protocol = 00:00:00
Per-interface classes
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0027
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 80
MaxPower = 8mA

Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 03
bInterface Class:SubClass:Protocol = ff:00:00
iInterface = 01
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 83 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0008
bInterval = 10
usb.c: kusbd: /sbin/hotplug add 2
usb.c: kusbd policy returned 0xfffffffe
hub.c: port 1 enable change, status 100
usb.c: hub driver claimed interface c4b76980
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
hub.c: port 1 connection change
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 2 connection change
hub.c: port 2, portstatus 101, change 3, 12 Mb/s
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
hub.c: USB new device connect on bus3/2, assigned device number 2
usb.c: kmalloc IF c4b76880, numif 1
usb.c: new device strings: Mfr=1, Product=1, SerialNumber=0
usb.c: USB device number 2 default language ID 0x409
Manufacturer: ScanLogic USBIDE
Product: ScanLogic USBIDE
usb.c: unhandled interfaces on device
usb.c: USB device 2 (vend/prod 0x4ce/0x2) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.10
Vendor:Product = 04ce:0002
MaxPacketSize0 = 8
NumConfigurations = 1
Device version = 2.60
Device Class:SubClass:Protocol = 00:00:00
Per-interface classes
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0020
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40
MaxPower = 0mA

Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 02
bInterface Class:SubClass:Protocol = 08:06:50
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
usb.c: kusbd: /sbin/hotplug add 2
usb.c: kusbd policy returned 0xfffffffe
hub.c: port 1 enable change, status 100
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 52
usb-storage: Array length appears to be: 54
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xcff64154 Out: 0xcff64140 Int: 0x00000000
(Period 0)
usb-storage: New GUID 04ce00020000000000000000
usb-storage: GetMaxLUN command result is 1, data is 0
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: *** thread sleeping.
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 ff 00 00 00 75 04 1a c0
usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 255/255
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x600350 R 159 Stat 0x0
usb-storage: Bulk logical error
usb-storage: Bulk reset requested

and more.... :

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=c800
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=04ce ProdID=0002 Rev= 2.60
S: Manufacturer=ScanLogic USBIDE
S: Product=ScanLogic USBIDE
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=cc00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=05e3 ProdID=0502 Rev= 1.80
S: Product=USB Host To Host Bridge
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 8mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl= 16ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=d000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms



2002-01-07 18:41:58

by Greg KH

[permalink] [raw]
Subject: Re: 2.4.17 - hanging due to usb

On Mon, Jan 07, 2002 at 04:43:47PM +1100, Dylan Egan wrote:
>
> >Can you not load the usb-storage driver, load the usbcore module, and
> >the USB host driver that you are using, and point hotplug to somewhere
> >else:
> > echo /bin/true > /proc/sys/kernel/hotplug
> >
> >Then plug in your device, and send the output of /proc/bus/usb/devices
> >to the list (and the linux-usb-devel list, which is a better place for
> >this :)
>
> I only got this extra bit of infomation from the way you said for me to do
> it.
> When i loaded usbcore this time it said cant get major 180 for usb....
> Ok i loaded it as you said it all went find but it never gave me anything
> when i went to do "cat /proc/bus/usb/devices".

Oops, forgot to tell you to mount usbdevfs. Try these steps then:

insmod usbcore
mount -t usbdevfs none /proc/bus/usb
insmod usb-uhci
{plug in device}
cat /proc/bus/usb/devices


thanks,

greg k-h

2002-01-07 18:55:49

by Leif Sawyer

[permalink] [raw]
Subject: RE: 2.4.17 - hanging due to usb

Dylan,

It looks like you're using an H45 technologies USB->IDE adapter (or equiv).
At least, that's the exact same vendor/product that i've got on mine.

This doesn't work with any 2.4 kernel right now. There's no
information for this device in drivers/usb/storage/unusual_devs.h

There's been some work on the usb-storage.c file, which may help
out once it's completed.

in the mean time, you can add these lines to
drivers/usb/storage/unusual_devs.h
manually, and get a little closer to using this. (I'm going to use this
interface with my MSN companion. w00t!)

This is from memory, but around line 90, add:

UNUSUAL_DEV( 0x04ce, 0x0002, 0x0200, 0x0260,
"ScanLogic",
"H45/ScanLogic USB-IDE",
US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY),

Leif

> -----Original Message-----
> From: Dylan Egan [mailto:[email protected]]
> Sent: Sunday, January 06, 2002 10:12 PM
> To: Greg KH; [email protected];
> [email protected]
> Subject: Re: 2.4.17 - hanging due to usb
>
>
> T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
> D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=04ce ProdID=0002 Rev= 2.60
> S: Manufacturer=ScanLogic USBIDE
> S: Product=ScanLogic USBIDE
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
> I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
> E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms
> T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
> B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0