Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160589 - gentoo-sources-2.6.19-r3 - modprobe uhci-hcd FATAL: Error inserting uhci_hcd: Cannot allocate memory
Summary: gentoo-sources-2.6.19-r3 - modprobe uhci-hcd FATAL: Error inserting uhci_hcd:...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-06 23:27 UTC by Safak Oekmen
Modified: 2007-01-07 03:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg output (bugreportdmesg,15.72 KB, text/plain)
2007-01-06 23:27 UTC, Safak Oekmen
Details
output .config kernel configuration (bugreportkernelconfig,41.55 KB, text/plain)
2007-01-06 23:28 UTC, Safak Oekmen
Details
output lsmod (bugreportlsmod,3.77 KB, text/plain)
2007-01-06 23:28 UTC, Safak Oekmen
Details
output cat /proc/slabinfo (bugreportslabinfo,15.99 KB, text/plain)
2007-01-06 23:29 UTC, Safak Oekmen
Details
output strace modprobe uhci-hcd (bugreportstrace,4.51 KB, text/plain)
2007-01-06 23:30 UTC, Safak Oekmen
Details
output lspci (bugreportlspci,1.77 KB, text/plain)
2007-01-06 23:33 UTC, Safak Oekmen
Details

Note You need to log in before you can comment on or make changes to this bug.
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.