[Fwd: usb-ohci and ehci-hcd]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Forwarded Message-----
From: Brandon W. Saxe <brandon20va@xxxxxxxxx>
To: novalug@xxxxxxx
Subject: usb-ohci and ehci-hcd
Date: Sun, 23 May 2004 21:45:56 -0400

Hi all,

I'm running Fedora Core 1 on a P3 1ghz Intel Board.

I recently bought a Maxtor USB 2.0 hard drive to use for backups and to
put all my media files on. I had speed problems with it at first, then
realized my mobo is USB 1.0. So I got a USB 2.0 controller and then the
drive wouldn't work at all. It turns out the card I got is a ohci based
board (for usb1 compatibility) and for usb 2 i need the ehci-hcd driver.

Well, after modprobing usb-ohci and ehci-hcd, I got my drive to work at
USB 2.0 speeds. GREAT! I thought.... Set up the drives in /etc/fstab as
/dev/sda1 mounted at  /backup
/dev/sda2 mounted at /storage

Upon reboot, I kept getting error messages with the drive check and I
had to remove the mount flag at boot from /etc/fstab to be able to get
past emergency mode.

I figure that this has to do with the fact that for some reason Fedora
only loads usb-uhci upon boot. Why is this? Where is the proper place to
force it to load? I looked at /etc/rc.d/rc.sysinit where it loads the
USB host controller:

# Initialize USB controller and HID devices
update_boot_stage RCusb
usb=0
if ! strstr "$cmdline" nousb ; then
  if ! LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
    aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print $3
}'`
    if [ -n "$aliases" -a "$aliases" != "off" ]; then
      modprobe usbcore
      for alias in $aliases ; do 
        [ "$alias" = "off" ] && continue
        action $"Initializing USB controller ($alias): " modprobe $alias
      done
      [ $? -eq 0 -a -n "$aliases" ] && usb=1
    fi
  fi
  if LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
    usb=1
  fi
fi

Should I hardcode something somewhere in here or can I have duplicate
aliases for usb-controller in /etc/modules.conf ?

Like this:
alias usb-controller usb-uhci
alias usb-controller usb-ohci
alias usb-controller ehci-hcd

OR should I do something with that "post-install" stuff in
modules.conf?  Or maybe ? "add below" usbcore somehow? How do I force it
to load all controller chips in an elegant way?

I'm not a shell scripter and certainly no expert on /etc/modules.conf,
either. I just know basics.

TIA!

Brandon
-- 
Brandon W. Saxe <brandon20va@xxxxxxxxx>



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux