View Single Post
Posts: 176 | Thanked: 190 times | Joined on Jun 2011 @ Italy
#38
My next guide will be about drivers compilation from sources but I can't write it yet because I'm going to finish my studies in the end of April and I don't have much spare time to do that sadly
As I told in a previous post:
Originally Posted by blackjack4it View Post
If with "a small part" you mean a driver that you wants to let nitdroid use it you have two ways to do that:
1) compile inside the kernel
2) compile that driver as a module (and load it with the commands insmod)
for both choices you can find a lot of tutorials by googling..for example, to compile a driver as a module here there is a little guide:
http://android-jotting.blogspot.it/2...driver-as.html
So if you compile a driver as a module you can:
1) push it to the device using adb utility
2) load it with the command "insmod <completepathof .ko driver>"
3) debug it by looking at his kernel messages with the command "dmesg"

Note that in most cases loading the driver and dmesg is not enough, you will have to adapt some pieces of Android code to let it use it correctly

This is what I've understood for now, but I need to go deeper to write a guide