Enable the Hidden Notification LED on the Google Nexus 6!

LED notification lights have existed on Android devices since the very beginnings … more

MX Player Ready to Rock on Lollipop

A good video player should be reliable and free. One of the XDA Community Apps, MX Player, meets both of … more

How to Disable Data Encryption on Nexus 6

In late September, Google decided to step on NSA’s toes and turn on encryption by default in … more

DJI Phantom 2 Vision+ Review – XDA TV

The holidays will be here in no time, so why not start thinking about gifts now? Youll be ahead … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Compiling kernel modules...

OP ZaneKaminski

9th April 2012, 12:01 AM   |  #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
9th April 2012, 12:58 AM   |  #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, 01: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, 02:40 AM   |  #4  
Hashcode's Avatar
Recognized Developer
Thanks Meter: 22,500
 
3,233 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, 06:20 PM   |  #5  
Q9Nap's Avatar
Senior Member
Thanks Meter: 522
 
610 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, 06: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 ]
15th April 2012, 12:09 AM   |  #7  
Q9Nap's Avatar
Senior Member
Thanks Meter: 522
 
610 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, 11:55 PM   |  #8  
Q9Nap's Avatar
Senior Member
Thanks Meter: 522
 
610 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