android ndk - compiling a driver -


i require convert linux driver android. can me kernel twiking ? there change driver makefile ? source files of kernel ? can use insmod/mknod in adb shell load driver dynamically ?

any hint welcomed...

noam

lots of questions...

yes, need change makefiles in kernel. example, if driver source in drivers/net, you'll need change makefile there builds sources.

you need add new configuration option in kconfig file build process knows if needs build sources, if needs built module, etc. you'll need run 'make oldconfig' or similar include new option in kernel .config.

kernel sources available in same way android sources (see http://source.android.com); have add .repo/local_manifest.xml file such as:

<?xml version="1.0" encoding="utf-8"?> <manifest>  <project path="kernel" name="kernel/omap" revision="refs/heads/android-omap-2.6.29"/> </manifest> 

and yes, if build driver module can use insmod/rmmod insert/remove running kernel.

hth!


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -