Toutou Linux slow to detect USB flash drive

Using applications, configuring, problems
Post Reply
Message
Author
lgentis
Posts: 3
Joined: Tue 30 Apr 2013, 08:48

Toutou Linux slow to detect USB flash drive

#1 Post by lgentis »

Hello all,

I just installed Toutou Linux 4.3.1 on an old HP Omnibook XE3 (anno 2001)
Kernel 2.6.30.5

Works fine with 300 Mo RAM, essentially for PPT viewing.

The problem :
when I insert an USB flash drive BEFORE computer start, it is immediately detected, and its icon is on the desktop ; it can yet be mounted via right clic.
But when I insert an USB flash drive AFTER computer start, either it is not detected, either it is but after several minutes.

tail -f /var/log/messages returns :
(none) user.err kernel: hub 1-0:1.0: unable to enumerate USB device on port 1
(several times)
then this line appears :
(none) user.info kernel: usb 1-1: new full speed USB device using uhci_hcd and address 46
and a few seconds later, flash disk is detected.

My USB drive version is 2.0 and I think my USB port version is 1.0

I googled a lot, and it appears that this kernel has ehci_hcd feature built-in, and uhci_hcd module is automatically loaded on start.

Do I have to disable uhci_hcd , or somewhat ?

Thanks in advance

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

No idea .

Puppy 431 already loads usb drivers in /etc/rc.d/rc.sysinit .

The Puppy code when usb_storage is compiled as module wanted to split internal drives and external drives . That's why usb modules are filtered at the main loading kernel modules part .

If usb_storage is not loaded at bootup, the udevd must load it when inserting any USB drives .

Probably fire up bootmanager and make it load usb-storage at bootup .
NOTE : bootmanager filters out already loaded modules .

Code: Select all

modprobe -vr usb-storage
bootmanager

The rc.sysinit code is also not perfect in 4 up to 5.3 series . If you have a hard poweroff, files in /tmp remain . /sbin/pup_event_backend_modprobe - the script called by udevd - would try to grep in /tmp files if modules are already loaded . If files in /tmp say so, it would not load them .

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

This computer may only have USB 1.1. Whether that is the cause I don't know, I'm just mentioning it. :)

lgentis
Posts: 3
Joined: Tue 30 Apr 2013, 08:48

#4 Post by lgentis »

As said Flash, this computer probably have only USB 1.1

Effectively, usb-storage was not loaded ; so I tried :

Code:
modprobe -vr usb-storage
bootmanager

then adding usb-storage loading at startup, but even so, problem persists.

It seems that kernel tries (and tries, and tries,...) to détect USB drive using "hub" driver, and this driver fails.

After some minutes (too long), kernel falls back to "usb" driver, and yet USB drive is detected

I've joined a file containing an extract of my /var/log/messages when I insert USB drive after startup and dmesg output when computer starts with USB drive plugged in
Attachments
dmesg.zip
(5.04 KiB) Downloaded 86 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post by Karl Godt »

I googled a lot, and it appears that this kernel has ehci_hcd feature built-in,
The ehci_hcd , uhci_hcd and ohci_hcd drivers are modules in Puppy up to kernel 2.6.39/3.X

For the dmesg output I have no idea what the driver is trying to do .

May help to load ehci_hcd also in bootmanager maybe . But better put it into rc.sysinit before the elspci -l part starts .

Don't ask me where to find rc.sysinit and the elspci -l part -> rox & geany .

lgentis
Posts: 3
Joined: Tue 30 Apr 2013, 08:48

#6 Post by lgentis »

There's no ehci_hcd module to load in 2.6.30 kernel, it's built in.

It takes an average time of 2 minutes to detect USB drive.

I think I'll recommend my user to plug his USB drivr bfore starting the computer.

Thanks all for your help, Dankeschön für Hilfe

Lucien

Post Reply