On Wed, 2003-08-06 at 13:25, Michael Halcrow wrote: > On Wed, Aug 06, 2003 at 10:45:04AM -0600, Jacob Fugal wrote: > > more info: I just emerged the usbutils package, and ran lsusb and it > > pointed out that /proc/bus/usb isn't really there anymore. I assume it > > should be and this is the real root of my problems. How do I get this > > back? > > Modules register the /proc filesystem handles when they initialize. > Since you do not have /prob/bus/usb in there, this indicates that the > requisite module has not initialized. > > Mike
Ok, I did a little more exploring after checking the BIOS didn't help. I find out I don't have the modules installed; lsmod is pretty sparse: # lsmod Module Size Used by Tainted: P nvidia 1542816 10 (autoclean) smbfs 40816 2 (autoclean) vfat 10988 0 (autoclean) fat 34392 0 (autoclean) [vfat] Obviously no USB stuff there. So I go grepping and grokking on google for all I can about the usb modules. Eventually I think I find them on my system at: /usr/src/linux-2.4.20-gentoo-r5/drivers/usb I cd on over and try: # insmod uhci.o uhci.o: couldn't find the kernel version the module was compiled for # insmod usbcore.o usbcore.o: couldn't find the kernel version the module was compiled for But these modules (I assume) are compiled for kernel version 2.4.20-gentoo-r5 (because of the path) and a check in /proc/version gives me: # cat /proc/version Linux version 2.4.20-gentoo-r5 ([EMAIL PROTECTED]) (gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)) #2 SMP Tue May 20 15:03:33 MDT 2003 After scratching my head a moment I check my handy dandy HOWTO[1] and see: "A common error is to try to insert an object file which is not an LKM [Loadable Kernel Module]. For example, you configure your kernel to have the USB core module bound into the base kernel instead of generated as an LKM. . . . The error message is: "usbcore.o: couldn't find the kernel version this module was compiled for" Well, that looks familiar. So my conclusion is that my kernel must have been built with USB support bound into the base kernel. Makes sense now why that .o file was in a sub directory of /usr/src/linux... However, my question is, if USB support is compiled into my kernel, why is /proc/bus/usb still not there? The hardware is there and visible to the kernel[2] and support is compiled into the kernel, so what's mission? Jacob [1] http://tldp.org/HOWTO/Module-HOWTO/x163.html [2] # cat /proc/devices Character devices: ... 180 usb ... # cat /proc/ioports ... d000-d01f : VIA Technologies, Inc. USB (#2) d000-d01f : usb-uhci d400-d41f : VIA Technologies, Inc. USB d400-d41f : usb-uhci ... kip usb # cat /proc/pci PCI devices found: ... Bus 0, device 4, function 2: USB Controller: VIA Technologies, Inc. USB (rev 16). IRQ 10. Master Capable. Latency=32. I/O at 0xd400 [0xd41f]. Bus 0, device 4, function 3: USB Controller: VIA Technologies, Inc. USB (#2) (rev 16). IRQ 10. Master Capable. Latency=32. I/O at 0xd000 [0xd01f]. ... -- ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
