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 Thu 24 Apr 2014, 02:09
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Speed up USB-Harddisks
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 31 Oct 2005, 22:40    Post subject:  Speed up USB-Harddisks  

I just bought a 200 Gig- USB 2.0 Harddisk (Trekstor Datastation maxi y.uh ;140 Euro).

As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).

Plugged it in, attached the harddisk.
Startet MUT, and the harddisk was visible and could be mounted (great, Mandrake-Linux 9.2 does not recognize the USB 2.0-Port).

Then I copied a large file: awfull slow.
So I ran the "usbview"-Tool.

It tells me something about ohci and 12 MBit.
Well, USB 2.0 supports 480 MBit.

Watching the booklet, in the specifications it sais:
"the device consists of two openhost Controller Interfaces (ohci), and one Enhanced Host Controller Interface (ehci)".

So I looked for a module:
ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz

Ah great, right what I need.

modprobe ehci-hcd
and *whoooosch* it is fast as hell Smile

You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0

Mark
Back to top
View user's profile Send private message Visit poster's website 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Mon 31 Oct 2005, 23:46    Post subject:  

Would this effect the boot-from-USB time? I noticed that my VIA board that supports USB 2.0 takes just as long to boot Puppy from a USB 1.1 pen drive as a 2.0 drive.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 01 Nov 2005, 14:23    Post subject:  

I think so.

But I did not have a look, where to add that in the startup-scripts (You would have to create a new image.gz containing this command I think)

Mark
Back to top
View user's profile Send private message Visit poster's website 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Tue 01 Nov 2005, 19:26    Post subject:  

I think that would be a very good thing to add. It would make Puppy much more attractive as a USB boot option.
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 01 Nov 2005, 21:47    Post subject:  

You should add that to the "suggestions"-board.

Mark
Back to top
View user's profile Send private message Visit poster's website 
aahhaaa


Joined: 06 Oct 2005
Posts: 341
Location: Lower Michigan, North America

PostPosted: Tue 01 Nov 2005, 21:59    Post subject:  

dvw86 wrote:
Would this effect the boot-from-USB time? I noticed that my VIA board that supports USB 2.0 takes just as long to boot Puppy from a USB 1.1 pen drive as a 2.0 drive.


don't know if this applies to your VIA Board, but mine has USB options in the BIOS...
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Tue 01 Nov 2005, 22:03    Post subject:  

MU wrote:

You should add that to the "suggestions"-board.

Done
http://www.murga.org/%7Epuppy/viewtopic.php?t=3361&highlight=

aahhaaa wrote:

don't know if this applies to your VIA Board, but mine has USB options in the BIOS...

I'll take a look, but DSL at 50MB boots much faster than Puppy does from the same pen drive.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 02 Nov 2005, 03:55    Post subject:  

Guys,
the capability is there in Puppy, it is up to you to provide information.
Look at:

/lib/libhardware/usb.db

You need to provide chip numbers and what module is required.

You can get the chip numbers from "Control panel -> Hardware probe".
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 02 Nov 2005, 04:38    Post subject:  

ok, this is strange.

it is mentioned in /lib/libhardware/usb
1033|0035|usb-ohci|NEC Corp|USB
1033|00e0|ehci-hcd|NEC Corp|PCI to USB Enhanced Host Controller


The following shows, that it is detected as USB-2 EHCI Device, but with slow speed. just when I run modprobe manually, it uses fullspeed.

first the results, when I do not run modprobe ehci-hcd

------------
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)

===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci

MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) detected.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.
--------
USB-View:
--------
USB2.0 Hub
Speed: 12Mb/s (full)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b

Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA

Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1

Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 255ms

----------------
----------------
Now the result when I do run modprobe ehci-hcd
-----
===== query_pci_devices =====
1033: e0 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
1033: 35 (12,3) 0 [ (null) - (null) ] (null)
===== parse_pci_devices =====
1033: e0 (12,3) 11 [ NEC Corp - PCI to USB Enhanced Host Controller ] USB ehci-hcd
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci
1033: 35 (12,3) 11 [ NEC Corp - USB ] USB usb-ohci

MODULES:
USB ehci-hcd: NEC Corp PCI to USB Enhanced Host Controller (1033: e0) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
USB usb-ohci: NEC Corp USB (1033: 35) running.
CARDBUS yenta_socket: ENE Technology Inc CB1410 CardBus Controller (1524:1410) running.

--------
USB-View:
--------
USB2.0 Hub
Speed: 480Mb/s (high)
Number of Ports: 4
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 05e3
Product Id: 0605
Revision Number: 6.0b

Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 100mA

Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1

Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 1
Interval: 256ms
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 02 Nov 2005, 04:56    Post subject:  

I made the last posting with the Harddisk attached.
The Harddisk has an integrated USB-Hub.

If i unattach it, I get the same results, but usbview shows something different.

Without the modprobe, the USB-2 Adapter is not visible.
After modprobe, it is visible as
PCI device 1033:00e0
(in the former message it was named USB2.0 Hub)

Maybe the bootscripts check for ehci first, before they check for pcmcia?
So it has no effect?

----
PCI device 1033:00e0
Manufacturer: Linux 2.4.29 ehci_hcd
Serial Number: 02:00.2
Speed: 480Mb/s (high)
Number of Ports: 3
Bandwidth allocated: 0 / 800 (0%)
Total number of interrupt requests: 0
Total number of isochronous requests: 0
USB Version: 2.00
Device Class: 09(hub )
Device Subclass: 00
Device Protocol: 01
Maximum Default Endpoint Size: 8
Number of Configurations: 1

Config Number: 1
Number of Interfaces: 1
Attributes: 40
MaxPower Needed: 0mA

Interface Number: 0
Name: hub
Alternate Number: 0
Class: 09(hub )
Sub Class: 0
Protocol: 0
Number of Endpoints: 1

Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 2
Interval: 256ms
Back to top
View user's profile Send private message Visit poster's website 
BlackAdder


Joined: 22 May 2005
Posts: 382

PostPosted: Wed 02 Nov 2005, 05:28    Post subject: USB 2.0 Speedup  

I Can confirm Mark's results, at least in terms of the speedup happening after a manual modprobe ehci-hcd.
Was pondering a hacked version of /etc/rc.d/rc.modules, just before the comment:
Code:
#reckon we will always want to access usb memory devices...
 #modprobe usb-storage

adding something like:
Code:
scanmodule | grep "ehci" > /dev/null
if [ $? -eq 0 ]; then
   modprobe ehci-hcd
fi

Really hackish I guess, but right at the limit of my script ability.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 02 Nov 2005, 07:58    Post subject:  

I'm wary of playing with the detection code right now, just before
releasing 1.0.6...

dmesg | grep "ehci"

might also do it.

we need to remaster the CD with a code modification that does detect the
ehci.
I'm puzzled though, scanmodule is supposed to identify that chipset then
load the ehci driver. I don't know why the chip is unavailable to scanmodule
before ehci is loaded.
Back to top
View user's profile Send private message Visit poster's website 
ChechenPuppy


Joined: 15 May 2006
Posts: 19

PostPosted: Tue 16 May 2006, 03:54    Post subject:  

BarryK wrote:
Guys,
the capability is there in Puppy, it is up to you to provide information.
Look at:

/lib/libhardware/usb.db

You need to provide chip numbers and what module is required.

You can get the chip numbers from "Control panel -> Hardware probe".


May the proper additions to this file also help to enable booting from the external USB CDROM.

How can I find the "chip number" then?
Back to top
View user's profile Send private message 
ChechenPuppy


Joined: 15 May 2006
Posts: 19

PostPosted: Thu 18 May 2006, 23:40    Post subject: Re: Speed up USB-Harddisks  

MU wrote:


modprobe ehci-hcd
and *whoooosch* it is fast as hell Smile


It's interesting. Would you please tell how fast it is now, and how many rpm-s has your external disk?
Back to top
View user's profile Send private message 
HansKooiman

Joined: 03 Jul 2006
Posts: 10
Location: Netherlands

PostPosted: Sun 03 Sep 2006, 21:10    Post subject: Re: Speed up USB-Harddisks  

Thanks Mark, very good idea, I'll look for cheap pcmcia-usb2.0. Hans

[As my Notebook just has an USB 1.1 -port, I also bought a PCMCIA to USB 2.0-adapter (Sitecom USB 2.0 PC Card CB-003V2 ;30 Euro).

ls /lib/modules/2.4.29/usb/host
ehci-hcd.o.gz uhci.o.gz usb-ohci.o.gz usb-uhci.o.gz

Ah great, right what I need: modprobe ehci-hcd and *whoooosch* it is fast as hell Smile You should add that command to the bootprocess, for example to /etc/rc.d/rc.local0 Mark]
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0751s ][ Queries: 11 (0.0035s) ][ GZIP on ]