View previous topic :: View next topic |
Author |
Message |
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Fri Oct 21, 2005 2:53 pm Post subject: [USB] I'm becoming MAD with my USB... GRRRRRr |
|
|
Hi everybody,
after having asked the question on the french and the italian forum without success, I finally come here.
Here's the problem:
When I try to mount my usb stick or smth else (usb), I've these messages.
Code: | bulker ~ # dmesg
usb 2-2: new full speed USB device using uhci_hcd and address 3
bulker ~ # uname -r
2.6.12-gentoo-r10
bulker ~ # eix udev -c
[ N] app-text/uudeview (no): uu, xx, base64, binhex decoder
[ I] sys-fs/udev (070-r1): Linux dynamic and persistent device naming support (aka userspace devfs)
Found 2 matches
bulker ~ # lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 005: ID 04e8:9826 Samsung Electronics Co., Ltd
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000 |
Moreover, the /dev/sda1 disappeared ?!?!?! Normally, I did mount -t vfat /dev/sda1 /mnt/usb, but I cannot .
Code: | bulker ~ # ls /dev/sda*
/dev/sda10 /dev/sda12 /dev/sda14 /dev/sda2 /dev/sda4 /dev/sda6 /dev/sda8
/dev/sda11 /dev/sda13 /dev/sda15 /dev/sda3 /dev/sda5 /dev/sda7 /dev/sda9 |
Finally, here are parts of my .config file (I'm in the USB group):
Code: | # fgrep USB /usr/src/linux/.config
CONFIG_USB_IRDA=m
CONFIG_BT_HCIUSB=m
CONFIG_BT_HCIUSB_SCO=y
# CONFIG_BT_HCIBFUSB is not set
# USB-based Watchdog Cards
# CONFIG_USBPCWATCHDOG is not set
# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=m
# 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
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set
# USB Device Class drivers
# CONFIG_USB_AUDIO is not set
# USB Bluetooth TTY can only be used with disabled Bluetooth subsystem
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=m
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# USB Input Devices
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
# USB HID Boot Protocol drivers
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_EGALAX is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# USB Multimedia devices
# CONFIG_USB_DABUSB is not set
# Video4Linux support is needed for USB Multimedia device support
# USB Network Adapters
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_ZD1201 is not set
CONFIG_USB_MON=m
# USB port drivers
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGETKIT is not set
# CONFIG_USB_PHIDGETSERVO is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_TEST is not set
# USB ATM/DSL drivers
# USB Gadget Support
# CONFIG_USB_GADGET is not set |
And
Code: | # more /usr/src/linux/.config | grep -i scsi
CONFIG_BLK_DEV_IDESCSI=y
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
# SCSI support type (disk, tape, CD-ROM)
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# SCSI Transport Attributes
CONFIG_SCSI_SPI_ATTRS=m
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# SCSI low-level drivers
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
CONFIG_SCSI_AHA152X=m
CONFIG_SCSI_AHA1542=m
CONFIG_SCSI_AHA1740=m
CONFIG_SCSI_AACRAID=m
CONFIG_SCSI_AIC7XXX=m
CONFIG_SCSI_AIC7XXX_OLD=m
CONFIG_SCSI_AIC79XX=m
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_IN2000 is not set
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_AHCI=m
CONFIG_SCSI_SATA_SVW=m
CONFIG_SCSI_ATA_PIIX=m
# CONFIG_SCSI_SATA_NV is not set
CONFIG_SCSI_SATA_PROMISE=m
# CONFIG_SCSI_SATA_QSTOR is not set
# CONFIG_SCSI_SATA_SX4 is not set
CONFIG_SCSI_SATA_SIL=m
# CONFIG_SCSI_SATA_SIS is not set
# CONFIG_SCSI_SATA_ULI is not set
CONFIG_SCSI_SATA_VIA=m
# CONFIG_SCSI_SATA_VITESSE is not set
CONFIG_SCSI_BUSLOGIC=m
# CONFIG_SCSI_OMIT_FLASHPOINT is not set
CONFIG_SCSI_DMX3191D=y
CONFIG_SCSI_DTC3280=m
CONFIG_SCSI_EATA=m
# CONFIG_SCSI_EATA_TAGGED_QUEUE is not set
# CONFIG_SCSI_EATA_LINKED_COMMANDS is not set
CONFIG_SCSI_EATA_MAX_TAGS=16
CONFIG_SCSI_FUTURE_DOMAIN=m
CONFIG_SCSI_GDTH=m
CONFIG_SCSI_GENERIC_NCR5380=m
CONFIG_SCSI_GENERIC_NCR5380_MMIO=m
# CONFIG_SCSI_GENERIC_NCR53C400 is not set
CONFIG_SCSI_IPS=m
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
CONFIG_SCSI_NCR53C406A=m
CONFIG_SCSI_SYM53C8XX_2=m
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
# CONFIG_SCSI_SYM53C8XX_IOMAPPED is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
CONFIG_SCSI_QLA2XXX=y
# CONFIG_SCSI_QLA21XX is not set
# CONFIG_SCSI_QLA22XX is not set
# CONFIG_SCSI_QLA2300 is not set
# CONFIG_SCSI_QLA2322 is not set
# CONFIG_SCSI_QLA6312 is not set
# CONFIG_SCSI_QLA24XX is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SIM710 is not set
CONFIG_SCSI_SYM53C416=m
CONFIG_SCSI_DC395x=m
CONFIG_SCSI_DC390T=m
# CONFIG_SCSI_T128 is not set
CONFIG_SCSI_U14_34F=m
# CONFIG_SCSI_U14_34F_TAGGED_QUEUE is not set
# CONFIG_SCSI_U14_34F_LINKED_COMMANDS is not set
CONFIG_SCSI_U14_34F_MAX_TAGS=8
CONFIG_SCSI_ULTRASTOR=m
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
# PCMCIA SCSI adapter support
# CONFIG_PCMCIA_NINJA_SCSI is not set
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
CONFIG_I2O_SCSI=y
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information |
It becomes to be very boring, I can not neither use my camera nor my usb stick and others usb-devices. Please, help me
Thank you
Eric
PS: I'm on FVWM (no gnome plugins) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Fri Oct 21, 2005 3:43 pm Post subject: |
|
|
bulki,
You have built both the uhcd-hcd and ohci-hcd modules as modules, which is OK.
Use lspci and lsmod to ensure that only the one you require is loaded. If both are loaded, remove both and then reload the correct one, so the USB root hub is correctly initalised. You must only use the right module.
Your SCSI grep does not show if you have Code: | CONFIG_BLK_DEV_SD=y | or not.
Thats the high level SCSI disk driver. =m is OK as long as the module sd is loaded. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Fri Oct 21, 2005 4:56 pm Post subject: |
|
|
the sd module is "sd_mod" and you must also ensure that usb-storage is loaded. (to avoid these problems in future, build components such as these directly into the kernel rather than as modules) _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Fri Oct 21, 2005 5:08 pm Post subject: |
|
|
Hi,
thank you for your quick reply.
You were right, I had both module loaded. So, here's what I did:
Code: |
bulker ~ # rmmod ohci_hcd
bulker ~ # rmmod uhcd_hcd
bulker ~ # modprobe uhci_hcd
bulker ~ # lsmod | grep uhci
uhci_hcd 30608 0
usbcore 106492 2 uhci_hcd
bulker ~ # dmesg
USB Universal Host Controller Interface driver v2.3
ACPI: PCI Interrupt 0000:00:1d.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: Intel Corporation 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 1
uhci_hcd 0000:00:1d.0: irq 11, io base 0x00001800
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: Intel Corporation 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 2
uhci_hcd 0000:00:1d.1: irq 11, io base 0x00001820
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.2[C] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: Intel Corporation 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 3
uhci_hcd 0000:00:1d.2: irq 11, io base 0x00001840
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
(I plug the USB stick)
bulker ~ # dmesg
usb 2-2: new full speed USB device using uhci_hcd and address 2 |
If I do the same for ohci, I obtain:
Code: | ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
|
and I've still no /dev/sda1
I've CONFIG_BLK_DEV_SD=y compiled in my kernel...
I'm a bit "lost"...
Thank you... |
|
Back to top |
|
|
die_vms_die Apprentice
Joined: 16 Nov 2002 Posts: 189 Location: MS
|
Posted: Sat Oct 22, 2005 5:45 am Post subject: |
|
|
uhci and ohci are different usb 1.1 implentations.
Does your computer have usb 2.0 and the drive usb 2.0.
I would suggest loading ehci-hcd.
A simple test would be emerging coldplug and "/etc/init.d/coldplug start".
That should load up the correct modules. After which you could put them in /etc/modules.autoload.d/kernel-2.6
It would appear to me that uhci_hcd is the correct usb 1.1 driver for you system. |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Sat Oct 22, 2005 12:17 pm Post subject: |
|
|
To sum up, here's what I have:
Code: | bulkangel@bulker ~ $ eix -c hotplug
[ I] sys-apps/hotplug (20040923-r1): USB and PCI hotplug scripts
bulkangel@bulker ~ $ eix coldplug
* sys-apps/coldplug
Available versions: 20040920
Installed: 20040920
Homepage: http://linux-hotplug.sourceforge.net
Description: coldplug init.d program to load modules at bootime
bulkangel@bulker ~ $ lsmod
Module Size Used by
fglrx 240764 7
wlan_wep 5888 1
iptable_nat 21332 0
ipt_limit 2048 2
ipt_LOG 6400 1
ipt_ULOG 6404 6
ipt_state 1664 3
iptable_filter 2432 1
iptable_mangle 2304 0
ip_tables 20608 7 iptable_nat,ipt_limit,ipt_LOG,ipt_ULOG,ipt_state,iptable_filter,iptable_mangle
ohci_hcd 19076 0
ath_pci 53408 0
ath_rate_onoe 7432 1 ath_pci
wlan 107356 4 wlan_wep,ath_pci,ath_rate_onoe
ath_hal 146896 2 ath_pci
yenta_socket 22924 4
rsrc_nonstatic 12160 1 yenta_socket
radeonfb 87872 0
snd_intel8x0m 15556 0
snd_intel8x0 29888 0
snd_ac97_codec 83708 2 snd_intel8x0m,snd_intel8x0
ehci_hcd 31624 0
uhci_hcd 30608 0
tsdev 6080 0
evdev 7680 1
usbcore 106492 4 ohci_hcd,ehci_hcd,uhci_hcd
hostap_cs 57368 0
hostap 116360 1 hostap_cs
pcmcia 31520 5 hostap_cs
pcmcia_core 35472 3 yenta_socket,rsrc_nonstatic,pcmcia
firmware_class 7808 1 pcmcia
bulker ~ # rc-update show
alsasound | default mini
aumix |
bluetooth |
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | boot
consolefont | boot
cpufreqd | default mini
crypto-loop |
cupsd |
dcron |
domainname | default mini
esound |
famd |
gkrellmd |
gpm |
hdparm | default
hostapd |
hostname | boot
hotplug | boot
iptables | default
keymaps | boot
kismet |
local | default nonetwork
localmount | boot
metalog | default mini
modules | boot
msfweb |
mysql |
nas |
nessusd |
net.eth0 |
net.lo | boot
net.wlan0 |
netmount | default
nscd |
ntop |
numlock |
pcmcia | default
portmap |
privoxy |
rmnologin | boot
rsyncd |
serial | boot
snort |
splash | default
sshd |
syndaemon |
tor |
ulogd | default
urandom | boot
vixie-cron |
webmin |
wlan |
wpa_supplicant |
xdm |
|
And I've a USB 2 on my laptop...
Thank you very much
Eric |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Sat Oct 22, 2005 12:44 pm Post subject: |
|
|
bulki,
Code: | usbcore 106492 4 ohci_hcd,ehci_hcd,uhci_hcd |
Shows that you still have ohci_hcd loaded, which is not for you.
usb-storage is missing, unless its built into the kernel. I don't thing you can do that, since your root hub drivers are modules.
sr_mod, the SCSI disk module is also not listed but you say thats a built in, so thats ok.
What does Code: | grep STORAGE /usr/src/linux/.config | say about CONFIG_USB_STORAGE ?
A previous post says Code: | CONFIG_USB_STORAGE=m | but its not loaded.
Does it work if you do Code: | modprobe usb-storage | before you plug in your storage device ?
Late news. It appears that sys-fs/udev-070 is broken for many people - it does not create the /dev/sd... nodes
sys-fs/udev-070-r1 and later are OK. Check your version and update if required. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Sun Oct 23, 2005 1:29 pm Post subject: |
|
|
NeddySeagoon wrote: |
[code]
Does it work if you do [code]modprobe usb-storage[/code]before you plug in your storage device ?
|
Yep !!! It WORKS ... I'm very grateful, Thank you ...
Why doesn't it load with cold/hotplug ?? Bup...
Eric |
|
Back to top |
|
|
die_vms_die Apprentice
Joined: 16 Nov 2002 Posts: 189 Location: MS
|
Posted: Sun Oct 23, 2005 9:18 pm Post subject: |
|
|
Why doesn't it load with cold/hotplug ?? Bup...
On my comp. Hotplug doesn't load ohci_hcd or ehci_hcd. Coldplug will.
I've got those in /etc/modules.autoload.d/kernel-2.6.
Did you Code: | rc-update add hotplug default | .
With hotplug running, scsi_mod, sd_mod, and usb_storage storage modules are loaded after plugging in drive. |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Mon Oct 24, 2005 9:10 am Post subject: |
|
|
die_vms_die wrote: | Why doesn't it load with cold/hotplug ?? Bup...
On my comp. Hotplug doesn't load ohci_hcd or ehci_hcd. Coldplug will.
I've got those in /etc/modules.autoload.d/kernel-2.6.
Did you Code: | rc-update add hotplug default | .
With hotplug running, scsi_mod, sd_mod, and usb_storage storage modules are loaded after plugging in drive. |
Of course I've added hotplog to the bootlevel...
It doesn't matter, I'll add it manually to /etc/modules.autoload.d/kernel-2.6 ...
Thank you...
Bulki |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Mon Oct 24, 2005 5:18 pm Post subject: |
|
|
die_vms_die,
Hotplug is a null script now and has been for a while.
There is a Hot Plug support kernel option (not hot pluggable PCI, thats different). Its required for USB, Firewire. Cardbus and PCMCIA devices that come and go while the system is running.
Try Code: | grep HOT /usr/src/linux/.config
CONFIG_HOTPLUG=y
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set | The first one is what you need. Its a kernel rebuild to fix. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
die_vms_die Apprentice
Joined: 16 Nov 2002 Posts: 189 Location: MS
|
Posted: Mon Oct 24, 2005 6:45 pm Post subject: |
|
|
Thanks for the information.
I looked at the script.
I'm not the one having trouble.
My kernel is working just fine.
Guess I can dump hotplug script. |
|
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
|
|