5,597,397 Members 30,799 Now Online
XDA Developers Android and Mobile Development Forum

Compiling kernel modules...

Tip us?
 
ZaneKaminski
Old
#1  
Member - OP
Thanks Meter 8
Posts: 47
Join Date: Sep 2010
Default Compiling kernel modules...

Hey all. So I was looking at this cpu frequency governor for the razr:
http://forum.xda-developers.com/show....php?t=1367255

I was wondering how I could get this working on our devices, so, just for curiosity's sake, I copied it to the phone and ran insmod on it. It did a quick cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors and found the new governor listed, so I opened up SetCPU and set it as the governor. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor told me, however, that I was still on mot_hotplug, so I switched to ondemand and then back to the eprj governor... still told me I'm on ondemand.

I figure that the razr's and droid 3's kernel modules are not binary-compatible, so I'm gonna need to recompile the module. How do I go about doing this?

Thanks.

-Zane Kaminski
 
saintlikesniper
Old
#2  
Senior Member
Thanks Meter 6
Posts: 103
Join Date: Nov 2010
I understand what your getting at but we can't flash kernels best you can do is port kernel modules

Sent from my XT862 using XDA
 
ZaneKaminski
Old
#3  
Member - OP
Thanks Meter 8
Posts: 47
Join Date: Sep 2010
Quote:
Originally Posted by saintlikesniper View Post
I understand what your getting at but we can't flash kernels best you can do is port kernel modules

Sent from my XT862 using XDA
Yeah... I wanna compile this module for the Droid 3.
 
Hashcode
Old
#4  
Hashcode's Avatar
Recognized Developer
Thanks Meter 19643
Posts: 2,915
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by ZaneKaminski View Post
Yeah... I wanna compile this module for the Droid 3.
The source for the current 890 kernel is on Sourceforge.net under the Bionic's GPL software page.

Sent from my DROID3 using XDA
 
Q9Nap
Old
#5  
Q9Nap's Avatar
Senior Member
Thanks Meter 280
Posts: 404
Join Date: Feb 2009

 
DONATE TO ME
Would it be possible to build a kernel module to add loop device support? Would like to be able to chroot Ubuntu.

Sent from my DROID3 using Tapatalk 2
 
eww245
Old
#6  
Senior Member
Thanks Meter 78
Posts: 486
Join Date: Aug 2008
Location: Throop
Quote:
Originally Posted by Q9Nap View Post
Would it be possible to build a kernel module to add loop device support? Would like to be able to chroot Ubuntu.

Sent from my DROID3 using Tapatalk 2
loop devices are already supported. If your using linux installer from the market just ignore the warinngs. To manully mount a loop device.
Code:
# mount loop.img directory
If for some reason that doesn't work use losetup.
Code:
# losetup /dev/block/loop7 loop.img
# mount -t auto /dev/block/loop7 directory
Droid 3 - CM7 Safely Strapped
#OPMOSH
Acer a100 ICS 015 - rooted deodexed
Backup your data with adb

Retired Sorry Bill!
ThrottleLauncher Plugins
Weather.com
GoogleTranslator and Dictionary
CallLog@

[RHOD500]
XDAndroid FRX06/WM6.5 stock
The Following User Says Thank You to eww245 For This Useful Post: [ Click to Expand ]
 
Q9Nap
Old
#7  
Q9Nap's Avatar
Senior Member
Thanks Meter 280
Posts: 404
Join Date: Feb 2009

 
DONATE TO ME
Quote:
Originally Posted by eww245 View Post
loop devices are already supported. If your using linux installer from the market just ignore the warinngs. To manully mount a loop device.
Code:
# mount loop.img directory
If for some reason that doesn't work use losetup.
Code:
# losetup /dev/block/loop7 loop.img
# mount -t auto /dev/block/loop7 directory
Still have questions about getting Linux installer working, started a thread here

http://forum.xda-developers.com/show...php?p=24855920

To avoid clogging up this thread any further, any help would be appreciated.

Sent from my DROID3 using Tapatalk 2
 
Q9Nap
Old
#8  
Q9Nap's Avatar
Senior Member
Thanks Meter 280
Posts: 404
Join Date: Feb 2009

 
DONATE TO ME
i'm in the process of setting up a build environment for kernel modules and have the 5.6.890 kernel source. couple of questions:

does anyone have links to any good info on how to build android kernel modules? google isn't being very helpful.

would it be possible to get modules built with the 5.6.890 source working with the 5.7.906 kernel?

thanks in advance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Clean Up Your Logcat Code with Lib Cleaner

Some of you may think that writing code is the hardest part of development. It’s not, as the … more

Tweak Your Xperia Device’s Camera App Yourself

We’ve come to expect nearly perfect cameraperformancein our modern day … more