Post Reply

Compiling kernel modules...

OP ZaneKaminski

8th April 2012, 11:01 PM   |  #1  
OP Member
Thanks Meter: 8
 
47 posts
Join Date:Joined: Sep 2010
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
8th April 2012, 11:58 PM   |  #2  
Senior Member
Thanks Meter: 6
 
109 posts
Join Date:Joined: 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
9th April 2012, 12:07 AM   |  #3  
OP Member
Thanks Meter: 8
 
47 posts
Join Date:Joined: Sep 2010
Quote:
Originally Posted by saintlikesniper

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.
9th April 2012, 01:40 AM   |  #4  
Hashcode's Avatar
Recognized Developer
Thanks Meter: 22,446
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Quote:
Originally Posted by ZaneKaminski

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
13th April 2012, 05:20 PM   |  #5  
Q9Nap's Avatar
Senior Member
Thanks Meter: 482
 
585 posts
Join Date:Joined: 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
13th April 2012, 05:38 PM   |  #6  
Senior Member
Throop
Thanks Meter: 78
 
486 posts
Join Date:Joined: Aug 2008
More
Quote:
Originally Posted by Q9Nap

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
The Following User Says Thank You to eww245 For This Useful Post: [ View ]
14th April 2012, 11:09 PM   |  #7  
Q9Nap's Avatar
Senior Member
Thanks Meter: 482
 
585 posts
Join Date:Joined: Feb 2009
Donate to Me
Quote:
Originally Posted by eww245

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
18th April 2012, 10:55 PM   |  #8  
Q9Nap's Avatar
Senior Member
Thanks Meter: 482
 
585 posts
Join Date:Joined: 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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes