You are not logged in.

#1 2010-12-31 13:37:07

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Force a USB device to use OHCI

Hi, I have some problems with EHCI on my motherboard. it's the motherboard since it's a problem on every distro i tried.
I have a wireless-device wich conects yo EHCI and a USB-HD.
problem is that the devices disconect sometimes.

I want to force the wireless to use OHCI and I found this script: http://moserei.de/index.php/96/force-a- … omment-121
but I have problem runing it, since usb-directory doesn't exist here in /proc/bus..why is that?

[studio@myhost bin]$ sudo ./force_ohci.sh "0846:4260"
cat: /proc/bus/usb/devices: file or directory not found
./force_ohci.sh: line 16: 0 +  : syntax error: operand expected (error token is "+  ")

can anybody help out?

Last edited by capoeira (2010-12-31 13:37:40)

Offline

#2 2011-01-01 02:48:46

Daniel_F
Member
From: Brazil
Registered: 2010-12-28
Posts: 69

Re: Force a USB device to use OHCI

That's because you don't have usbfs mounted.

Run:

sudo mount -t usbfs usbfs /proc/bus/usb

and then try your script.

Offline

#3 2011-01-01 15:46:35

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: Force a USB device to use OHCI

valeu cara,

BUT

[studio@myhost bin]$ sudo mount -t usbfs usbfs /proc/bus/usb
Senha:
mount: o ponto de montagem /proc/bus/usb não existe

and /proc/bus is write protected even for root. why is that? can I create that directory?

Offline

#4 2011-01-01 16:14:43

Daniel_F
Member
From: Brazil
Registered: 2010-12-28
Posts: 69

Re: Force a USB device to use OHCI

Hmmm....   I tried it here and it worked  !

The /proc being read-only is normal. It's a virtual file-system.

I'll investigate it more later (sorry, not today !)

As a workaroud, if your motherboard has problems with EHCI then you won't be using it for anything so maybe adding

!ehci_hcd

to the

MODULES=()

in your rc.conf to blacklist the EHCI driver works.

BTW, please post the output of

# cat /etc/mtab

and

# lsmod

Offline

#5 2011-01-01 16:33:45

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: Force a USB device to use OHCI

Daniel_F wrote:

Hmmm....   I tried it here and it worked  !

hum, could be the liqourix-kernel I use?! will try out the regular kernel later


Daniel_F wrote:

As a workaroud, if your motherboard has problems with EHCI then you won't be using it for anything so maybe adding

unfortunatly this is no solution as i have a external HD. I could unable USB2 in bios, too...there is an option...but i need it


Daniel_F wrote:

BTW, please post the output of

# cat /etc/mtab
[studio@myhost ~]$ cat /etc/mtab
proc /proc proc rw,relatime
sys /sys sysfs rw,relatime
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=124825,mode=755
/dev/disk/by-uuid/d15efb1a-a129-4e35-91a4-b0bd085a1def / ext4 rw,noatime,barrier=1,data=ordered
devpts /dev/pts devpts rw 0 0
shm /dev/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda2 /home ext4 rw,noatime 0 0
/dev/sdb2 /home/studio/USB ext3 rw,noatime 0 0
Daniel_F wrote:

and

# lsmod
[studio@myhost ~]$ lsmod
Module                  Size  Used by
snd_seq_dummy           1310  0 
snd_seq_oss            26204  0 
snd_seq_midi_event      5911  1 snd_seq_oss
snd_seq                46157  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_usb_audio          84792  2 
snd_pcm                69218  2 snd_usb_audio
snd_timer              17879  2 snd_seq,snd_pcm
snd_page_alloc          7016  1 snd_pcm
snd_hwdep               5176  1 snd_usb_audio
snd_usbmidi_lib        16378  1 snd_usb_audio
snd_rawmidi            18884  1 snd_usbmidi_lib
snd_seq_device          5526  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd                    53726  12 snd_seq_oss,snd_seq,snd_usb_audio,snd_pcm,snd_timer,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq_device
soundcore               6588  1 snd
ipv6                  269847  8 
af_packet              17226  2 
ext3                  117855  1 
jbd                    45645  1 ext3
arc4                    1125  2 
ecb                     1651  2 
rtl8187                53128  0                                                                        
mac80211              183412  1 rtl8187                                                                
cfg80211              139444  2 rtl8187,mac80211                                                       
usb_storage            38877  2                                                                        
rfkill                 15550  1 cfg80211                                                               
eeprom_93cx6            1305  1 rtl8187                                                                
ppdev                   5247  0                                                                        
ohci_hcd               21110  0                                                                        
ssb                    43127  1 ohci_hcd                                                               
fan                     2711  0                                                                        
mmc_core               63403  1 ssb                                                                    
sis_agp                 3795  1                                                                        
parport_pc             29734  1                                                                        
floppy                 51715  0                                                                        
pcmcia                 35050  1 ssb                                                                    
pcmcia_core            13309  1 pcmcia                                                                 
lp                      7637  0                                                                        
parport                31045  3 ppdev,parport_pc,lp
psmouse                51175  0 
agpgart                30247  1 sis_agp
led_class               2497  2 rtl8187,psmouse
shpchp                 24269  0 
thermal                10491  0 
ehci_hcd               34688  0 
processor              26042  0 
pci_hotplug            25461  1 shpchp
button                  4521  0 
sg                     19833  0 
evdev                   7003  9 
serio_raw               3822  0 
rtc_cmos                7995  0 
rtc_core               13192  1 rtc_cmos
rtc_lib                 2221  1 rtc_core
ext4                  312831  2 
mbcache                 5886  2 ext3,ext4
jbd2                   69616  1 ext4
crc16                   1343  1 ext4
sd_mod                 31240  7 
pata_acpi               2487  0 
pata_sis                8638  3 
libata                169607  2 pata_acpi,pata_sis

Offline

#6 2011-01-04 17:39:18

Daniel_F
Member
From: Brazil
Registered: 2010-12-28
Posts: 69

Re: Force a USB device to use OHCI

Did you try with the standard kernel ??

Offline

#7 2011-01-04 18:01:32

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: Force a USB device to use OHCI

Daniel_F wrote:

Did you try with the standard kernel ??

yes, with the standart kernel /proc/bus/usb gets mounted

the script doesn't seam to work though:

[studio@myhost ~]$ sudo mount -t usbfs usbfs /proc/bus/usb
Senha:
[studio@myhost ~]$ cd /usr/local/bin/
[studio@myhost bin]$ sudo ./force_ohci.sh "0846:4260"
[studio@myhost bin]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller
Bus 001 Device 003: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[studio@myhost bin]$ cat /proc/interrupts
           CPU0       
  0:         37    XT-PIC-XT        timer
  1:       1368    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  3:          0    XT-PIC-XT        ohci_hcd:usb3
  4:          1    XT-PIC-XT      
  5:          0    XT-PIC-XT        ohci_hcd:usb4
  6:          2    XT-PIC-XT        floppy
  7:        118    XT-PIC-XT        parport0
  8:          5    XT-PIC-XT        rtc0
  9:          1    XT-PIC-XT        acpi, ohci_hcd:usb2
 10:     446214    XT-PIC-XT        ehci_hcd:usb1
 12:     220362    XT-PIC-XT        i8042
 14:      54984    XT-PIC-XT        pata_sis
 15:          0    XT-PIC-XT        pata_sis
NMI:         28   Non-maskable interrupts
LOC:    1545562   Local timer interrupts
SPU:          0   Spurious interrupts
PMI:         28   Performance monitoring interrupts
PND:          0   Performance pending work
RES:          0   Rescheduling interrupts
CAL:          0   Function call interrupts
TLB:          0   TLB shootdowns                                                                                
TRM:          0   Thermal event interrupts                                                                      
THR:          0   Threshold APIC interrupts                                                                     
MCE:          0   Machine check exceptions                                                                      
MCP:         38   Machine check polls                                                                           
ERR:          0                                                                                                 
MIS:          0                                                                                                 
[studio@myhost bin]$     

Offline

#8 2011-01-05 15:17:12

Daniel_F
Member
From: Brazil
Registered: 2010-12-28
Posts: 69

Re: Force a USB device to use OHCI

So the problem you quoted in the first post is solved. 

Now is a matter of debugging the script. You need to analize it and understand what it is suposed to do. Then you'll be able to figure out why it's not doing it. But we can't do your homework for you !  cool

Offline

#9 2011-01-05 16:02:38

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: Force a USB device to use OHCI

Daniel_F wrote:

So the problem you quoted in the first post is solved. 

Now is a matter of debugging the script. You need to analize it and understand what it is suposed to do. Then you'll be able to figure out why it's not doing it. But we can't do your homework for you !  cool

lol, I didn't expect you or someone to do that. quoted post is solved, yes. but if anybody knows an other way to "Force a USB device to use OHCI" ........

Thank you, Daniel ;-)

Offline

Board footer

Powered by FluxBB