Bug 120911 - usb-controller fails to load for kernels after about release 290
usb-controller fails to load for kernels after about release 290
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2004-04-15 01:35 EDT by Bob Arendt
Modified: 2014-03-16 22:44 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-16 03:50:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bob Arendt 2004-04-15 01:35:56 EDT
This appears to be the same problem described by Ralf Ertzinger
in Bug 120626, but not necessarily the same problem as the original

I can't access USB devices after boot with the latest 2.6.5-1.319smp
kernel (and a of couple earlier versions).

It appears that problem is near line 197 in /etc/rc.d/rc.sysinit:
196 if ! strstr "$cmdline" nousb && ! strstr "$cmdline" nomodules ; then
197   if ! LC_ALL=C fgrep -q "usb" /proc/devices 2>/dev/null ; then
198     aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ {
print $3
198  }'`
199     if [ -n "$aliases" -a "$aliases" != "off" ]; then
200       modprobe usbcore
201       for alias in $aliases ; do 
202         [ "$alias" = "off" ] && continue
203         action $"Initializing USB controller ($alias): " modprobe
204       done
 .. and so on ..

Line 197 is checking if usb is loaded.  It appears that usbcore is now
built into the kernel (for keyboards & such?), so the test succeeds.
**BUT** this bypasses the step where the usb-controller alias is
checked and loaded, so module uhci-hcd (in my case) is never loaded.
jpilot, usbfs, and all the other usb stuff fails to function.

This section of rc.sysinit should probably check that the usb
device exists, skip the "modprobe usbcore", and procede to
load the aliases.

My quick (ugly) hack to rc.sysinit is to comment out
lines 197, 200, and 207
Comment 1 Bill Nottingham 2004-04-16 03:50:24 EDT
Fixed in 7.50-1

Note You need to log in before you can comment on or make changes to this bug.