Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 12:21
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Toutou Linux slow to detect USB flash drive
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
lgentis

Joined: 30 Apr 2013
Posts: 3

PostPosted: Tue 30 Apr 2013, 05:22    Post subject:  Toutou Linux slow to detect USB flash drive
Subject description: Problem with USB flash detection "on the fly"
 

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
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Tue 30 Apr 2013, 06:10    Post subject:  

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:
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 .
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10662
Location: Arizona USA

PostPosted: Tue 30 Apr 2013, 09:00    Post subject:  

This computer may only have USB 1.1. Whether that is the cause I don't know, I'm just mentioning it. Smile
Back to top
View user's profile Send private message 
lgentis

Joined: 30 Apr 2013
Posts: 3

PostPosted: Tue 30 Apr 2013, 09:45    Post subject:  

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
dmesg.zip
Description 
zip

 Download 
Filename  dmesg.zip 
Filesize  5.04 KB 
Downloaded  31 Time(s) 
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3860
Location: Kiel,Germany

PostPosted: Tue 30 Apr 2013, 15:53    Post subject:  

Quote:
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 .
Back to top
View user's profile Send private message Visit poster's website 
lgentis

Joined: 30 Apr 2013
Posts: 3

PostPosted: Thu 02 May 2013, 08:50    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0493s ][ Queries: 12 (0.0040s) ][ GZIP on ]