Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160589

Summary: gentoo-sources-2.6.19-r3 - modprobe uhci-hcd FATAL: Error inserting uhci_hcd: Cannot allocate memory
Product: Gentoo Linux Reporter: Safak Oekmen <safak.oekmen>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dmesg output
output .config kernel configuration
output lsmod
output cat /proc/slabinfo
output strace modprobe uhci-hcd
output lspci

Description Safak Oekmen 2007-01-06 23:27:07 UTC
Trying to geht bluetooth working on my ibm x40: http://www.thinkwiki.org/wiki/How_to_setup_Bluetooth, Second Chapter: Configuring the Kernel. Could not modprobe uhci-hcd.

My configuration:
+++dmesg output:
+++lsmod output:
+++cat /proc/slabinfo output:
+++strace modprobe uhci-hcd output:
+++lspci output:
+++kernel .config output:

Reproducible: Always

Steps to Reproduce:

Actual Results:  
 # modprobe uhci-hcd 
FATAL: Error inserting uhci_hcd (/lib/modules/2.6.18-gentoo-r6/kernel/drivers/usb/host/uhci-hcd.ko): Cannot allocate memory

returned: 1



I will use a ~x86 gentoo-source 2.6.19-r3 HTH
Comment 1 Safak Oekmen 2007-01-06 23:27:55 UTC
Created attachment 105723 [details]
dmesg output
Comment 2 Safak Oekmen 2007-01-06 23:28:34 UTC
Created attachment 105725 [details]
output .config kernel configuration
Comment 3 Safak Oekmen 2007-01-06 23:28:55 UTC
Created attachment 105727 [details]
output lsmod
Comment 4 Safak Oekmen 2007-01-06 23:29:23 UTC
Created attachment 105729 [details]
output cat /proc/slabinfo
Comment 5 Safak Oekmen 2007-01-06 23:30:11 UTC
Created attachment 105731 [details]
output strace modprobe uhci-hcd
Comment 6 Safak Oekmen 2007-01-06 23:33:28 UTC
Created attachment 105733 [details]
output lspci
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-01-07 00:17:22 UTC
You have UHCI built into your kernel *and* you are trying to load it as a module.
Comment 8 Safak Oekmen 2007-01-07 03:23:57 UTC
using kernel 2.6.19-r3 module could be loaded.
Comment 9 Safak Oekmen 2007-01-07 03:25:30 UTC
Meaning, I merged the new kernel and loaded my old .config. Nothing changed except for the kernel.

(In reply to comment #8)
> using kernel 2.6.19-r3 module could be loaded.
> 

Comment 10 Daniel Drake (RETIRED) gentoo-dev 2007-01-07 03:47:11 UTC
Please post new dmesg, both before and after you attempt to load the module. Also post the output of "ls -l /usr/src/linux/arch/i386/boot/bzImage"
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2007-01-07 03:51:18 UTC
Oh wait, misread what you said. So, 2.6.18 failed and 2.6.19 works. Actually it has nothing to do with versions. Here is one way which you can produce this error on any kernel:

Configure kernel with UHCI built-in
Compile kernel bzImage and modules
Install modules
Mount /boot, copy kernel over to /boot
Reboot into new kernel
Tweak kernel configuration to build UHCI as module
FORGET to recompile kernel bzImage, or forget to put in /boot or similar user error
Compile kernel modules
Install modules
Reboot into new kernel (actually this is not new at all, its the same kernel image as previously since you made a mistake earlier)
Attempt to load UHCI module --> boom

You must have done something at least comparable to the above on 2.6.18. You can clearly see in your dmesg logs that uhci is loaded before the root filesystem is even mounted, hence it must be built in.