View previous topic :: View next topic |
Author |
Message |
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Tue Jan 18, 2005 6:54 pm Post subject: USB mp3 player not recognized |
|
|
Hi,
I'm having troubles getting a external mp3 player (which behaves like an external hard drive) detected.
I am running kernel 2.6.10-ikke4 (which is a rather clean patchset, containing reiser4, vesavb-tng and some bug fixes).
I have hotplug emerged and running, and am using udev for my device node management.
The most important config sections from my .config look like:
Code: |
# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# USB support
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# USB Device Class drivers
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_BLK_DEV_IDESCSI=y
#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
|
The output of dmesg when pluggin in the drive:
Code: |
usb 1-2: new high speed USB device using ehci_hcd and address 3
|
That is all, so it isn't being recognized as mass storage device.
My /proc/bus/usb/devices looks like:
Code: |
T: Bus=04 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.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3
S: SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
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.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc=106/900 us (12%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=045e ProdID=0095 Rev= 4.19
S: Manufacturer=Microsoft
S: Product=Microsoft IntelliMouse® Explorer
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 ehci_hcd
S: Product=Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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= 2 Ivl=256ms
|
Any ideas? The device is working fine under slax (a slackware live cd, featuring kernel 2.4.27) |
|
Back to top |
|
|
feld Guru
Joined: 29 Aug 2004 Posts: 593 Location: USA
|
Posted: Tue Jan 18, 2005 7:01 pm Post subject: |
|
|
do it the NEW usb flash drive / usb storage way and maybe it will work.
Enable:
Device Drivers -> Block Devices -> Low Performance USB Block driver
now when you connect it, it should be @
/dev/uba1
Put it in your fstab if u want a mount point for it.
good luck!
-Feld _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
|
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Tue Jan 18, 2005 7:20 pm Post subject: |
|
|
It is not a low performance drive, it has a high speed 30gb harddrive, so for now I'll keep trying to do it the classical way. I'm going to try with an other kernel now and double check all my config options, and see where I get. |
|
Back to top |
|
|
jamesshuang Tux's lil' helper
Joined: 08 Aug 2002 Posts: 120
|
Posted: Tue Jan 18, 2005 7:23 pm Post subject: |
|
|
Perhaps try modularizing the USB stuff, and try loading, and unloading the usbstorage module? |
|
Back to top |
|
|
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Tue Jan 18, 2005 7:34 pm Post subject: |
|
|
OK, that's what I'm doing now. Compiling now the latest gentoo-dev-sources, should be ready within 20 minutes or something... |
|
Back to top |
|
|
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Tue Jan 18, 2005 8:07 pm Post subject: |
|
|
No luck yet: when compiled in as modules, even my usbmouse doesn't get detected after modprobing usb-ehci and usbhid. Could it be a problem with udev or hotplug?
What's strange also, is that when I'm using my kernel with everything compiled in statically, the usb drive isn't detected at boot-up, it only shows up in dmesg when I pull the cable out and put it back in.
This is my dmesg |grep -i usb output:
Code: |
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ehci_hcd 0000:00:1d.7: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Contro ller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: USB 2.0 initialized, EHCI 1.00, driver 26 Oct 2004
hub 1-0:1.0: USB hub found
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1d.0: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
Initializing USB Mass Storage driver...
usb 2-1: new low speed USB device using uhci_hcd and address 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
input: USB HID v1.11 Mouse [Microsoft Microsoft IntelliMouse® Explorer] on usb-0 000:00:1d.0-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usb 1-2: new high speed USB device using ehci_hcd and address 3
drivers/usb/input/hid-input.c: event field not found
|
|
|
Back to top |
|
|
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Tue Jan 18, 2005 10:32 pm Post subject: |
|
|
It turns out to be a problem with ehci. First, I noticed my mouse doesn't work when only ehci_hcd and usbhid are loaded. By loading the uhci_hcd module, the mouse works. Then, I unloaded every usb module and loaded only uhci_hcd and usb-storage, and the mp3 player showed up as /dev/sda (and was registeres as a uhci device, resulting in slow transfer speed).
When I have only uhci loaded, I get:
Code: |
darkstar root # lsmod
Module Size Used by
usbhid 23808 0
uhci_hcd 30480 0
usbcore 104952 3 usbhid,uhci_hcd
nvidia 4812980 12
darkstar root # cat /proc/bus/usb/devices
T: Bus=04 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.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3
S: SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc=106/900 us (12%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0e79 ProdID=1102 Rev= 0.00
S: Manufacturer=ARCHOS
S: Product=JBM-100 USB2.0 Adapter
S: SerialNumber=031206F788F6
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=045e ProdID=0095 Rev= 4.19
S: Manufacturer=Microsoft
S: Product=Microsoft IntelliMouse® Explorer
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
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.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 uhci_hcd
S: Product=Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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= 2 Ivl=255ms
|
When I'm only using the EHCI module, I get:
Code: |
darkstar root # lsmod
Module Size Used by
usb_storage 51712 0
usbhid 23808 0
ehci_hcd 28164 0
usbcore 104952 4 usb_storage,usbhid,ehci_hcd
nvidia 4812980 12
darkstar root # cat /proc/bus/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.10-ikke4 ehci_hcd
S: Product=Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller
S: SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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= 2 Ivl=256ms
|
So it seems that the ehci-hcd driver simply doesn't work on my motherboard , while I really have EHCI USB2 ports! (they work on windows, anyway ) |
|
Back to top |
|
|
Atle Apprentice
Joined: 16 Sep 2004 Posts: 179
|
Posted: Tue Jan 18, 2005 10:45 pm Post subject: |
|
|
feld wrote: | do it the NEW usb flash drive / usb storage way and maybe it will work.
Enable:
Device Drivers -> Block Devices -> Low Performance USB Block driver
now when you connect it, it should be @
/dev/uba1
Put it in your fstab if u want a mount point for it.
|
When I did this on my new kernel, my USB device did not show on fdisk -l. I had to disable this in the kernel to make it appear as a scsi drive again. |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Tue Jan 18, 2005 11:37 pm Post subject: |
|
|
ehci only supports usb2 devices. your mouse is not likely to be usb2 (the bandwidth is not needed) and it looks like your mp3 player is not usb2 either.
usb2 is backwards compatible with usb1.1 by the means of providing two controllers on the same port (ehci and uhci). the idea is that you load both uhci and ehci so that you can support both types of devices. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
Bamboe n00b
Joined: 13 Nov 2002 Posts: 47 Location: Kontich (Belgium)
|
Posted: Wed Jan 19, 2005 9:28 am Post subject: |
|
|
You're right, I figured that out too. But the strange thing is that it disappears from /proc/bus/usb/devices as of the moment I load ehci-hcd. (while it is present when only uhci-ecd is loaded)
It seems that the mp3 player (an Archos AV340 with 40gb hdd) is really an USB2 device according to it's specifications and the dmesg output:
Code: |
usb 1-2: new high speed USB device using ehci_hcd and address 3
|
Maybe it's just not fully USB2 compliant or something. Under win2k sp4, transfer speeds are low too (about 1 mb/sec). I have no other usb2 devices, so I can't test if it's a problem with the device, my kernel or my usb controller. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|