Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Recompiling the kernel cyanogen 2.6.34 and loading modules problems


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 acs

acs
  • Members
  • 4 posts

Posted 20 July 2010 - 05:36 PM

Hi guys,

I am recompiling the 2.6.34 cyanogen kernel in order to activate the ertm experimental feature in l2cap layer. I copy the config file from the Nexus One with CM6 installed in order to build a identical kernel but with ertm activated.

I am using fastboot to load the new kernel.

Everything goes well but the new kernel is unable to complete the process of loading the bcm4329.ko module. Executing lsmod says:

bcm4329 238095 1 - Loading 0xbf000000

Trying to insmod manually the module:

<4>[  138.772552] dhd_module_init: sdio_register_driver timeout

I have the same problem with a HTC Magic and the wlan.ko module.

<6>[  145.241790] TIWLAN: Driver loading
...
<6>[  148.025421] TIWLAN: Driver initialized (rc 0)
...

but the loading of the driver is not finished and ...
# lsmod
wlan 773871 1 - Loading 0xbf000000


It seems something in the loading module chain is failing. Any tip about that?

Thank you!

#2 freerunner

freerunner
  • Members
  • 102 posts

Posted 22 July 2010 - 02:40 AM

Did you push the kernel modules (that were built automatically with the kernel) to your phone?

#3 acs

acs
  • Members
  • 4 posts

Posted 22 July 2010 - 10:57 AM

View Postfreerunner, on 22 July 2010 - 02:40 AM, said:

Did you push the kernel modules (that were built automatically with the kernel) to your phone?

Yes, indeed, I have used the new kernel (the one I have compiled) modules with the all working kernel (the one which comes with cyanogen 6.0rc1 ROM), and they work. So the problem is not with the modules, but with the kernel system for loading modules.

#4 freerunner

freerunner
  • Members
  • 102 posts

Posted 22 July 2010 - 01:44 PM

Correct me if I am wrong, but I thought erfm could be enabled via the /sys-interface, even on stock kernel?!

#5 acs

acs
  • Members
  • 4 posts

Posted 23 July 2010 - 05:51 AM

View Postfreerunner, on 22 July 2010 - 01:44 PM, said:

Correct me if I am wrong, but I thought erfm could be enabled via the /sys-interface, even on stock kernel?!


Hmmm, it could be. You can activate it using a module param when you load the module if you have l2cap as a module, so maybe you can do that. I am not 100% sure about that.

Finally I have created a boot.img and  flash it and the kernel now works perfectly with the modules and the wifi is working. So it seems that using "fastboot boot kernel" is not as robust as flashing the kernel.