How to compile a kernel module to Andr oid Linux Kernel 锛

by Neo » Tue, 04 Aug 2009 10:10:07 GMT


Sponsored Links
 


Why do you have to write a Makefile for the compiling the kernel, it
is already there in kernel sources. So go there and just do a "make"
after setting the cross-compiler option.
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to compile a kernel module to Andr oid Linux Kernel 锛

by lei » Wed, 05 Aug 2009 08:37:34 GMT


 ARCH=ARM






--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


How to compile a kernel module to Andr oid Linux Kernel 锛

by basteon » Wed, 05 Aug 2009 14:40:02 GMT


 se it...
may be very helpful add this script to android kernel building how-to ;)
#!/bin/sh
#######
#Actually, I getting it by this way...
#cd android
#repo init -u git://android.git.kernel.org/platform/manifest.git
#repo sync
#######
#But, if you want to get only tools, you must try this...
# git clone git://android.git.kernel.org/platform/prebuilt.git

#where your android tools
export CROSSTOOLS=/usr/src/android/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1
export PATH=$CROSSTOOLS/bin:$PATH

export CROSS_TARGET=arm-eabi

export CC="${CROSS_TARGET}-gcc"
export CXX="${CROSS_TARGET}-g++"
export AR="${CROSS_TARGET}-ar"
export AS="${CROSS_TARGET}-as"
export LD="${CROSS_TARGET}-ld"
export RANLIB="${CROSS_TARGET}-ranlib"
export READELF="${CROSS_TARGET}-readelf"
export STRIP="${CROSS_TARGET}-strip"

On 05/08/2009, lei <lei.g...@gmail.com> wrote:

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to compile a kernel module to Andr oid Linux Kernel 锛

by 姘告尟 鐢 » Thu, 06 Aug 2009 08:14:57 GMT


 hanks,guys!
With your help,the problem was solved.
And here is the steps:
Without writing a Makefile for the module.
You just need to :
#cp $(YOUR_MODULE_FILES) $(YOUR_ANDROID_DIR)/kernel/drivers/char/
next,you should:
## set kernel config
#make ARCH=arm CROSS_COMPILE=arm-eabi- qsd8650_defconfig
#make -j4 ARCH=arm CROSS_COMPILE=arm-eabi- modules
then ,you get the result!

On 8 109 basteon <bast...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to compile a kernel module to Andr oid Linux Kernel 锛

by rk » Thu, 20 Aug 2009 07:22:37 GMT


 i Guys,

I am not able to compile the kernel which I have with the source code/
downloaded from the git repo. Here is my problem thread. Can some one
help me

http://groups.google.com/group/android-kernel/browse_thread/thread/9b0975d78a28112


Thanks
Rk

On Aug 6, 1:14pm, <neu...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to compile a kernel module to Andr oid Linux Kernel 锛

by Harish » Fri, 04 Sep 2009 19:16:12 GMT


 o write a kernel module which placed external to core kernel
please go through the below website

http://tldp.org/LDP/lkmpg/2.6/html/x181.html

Regards
Harish
On Aug 20, 12:22pm, rk <raj.10...@gmail.com> wrote:

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Official update for G1 Andriod developer phone (ADP) stock firmware

Hi Jean, thank you for replying, i appreciate that is must be
extremely annoying having to answer the same question over and over
which is part of the reason i raised my points.

When i posted this topic i tried a few different search terms and
managed to find 3 topics that eventually went on to discuss the ADP1.1
official update, they were:

1. Do you have an ADP1? Have you received the holiday update OTA?

2. How to prevent the default Web Page Not Available screen to show on Webview if my website is down?

Can Webview tell me that I didn't get a HTTP 200 OK HTTP response
code?

I really don't want to display the Android Web Page Not Available
screen inside my app.
--~--~---------~--~----~------------~-------~--~----~

3. Content Provider Syntax Help ... Media by Album

4. UK developers listing currency?

5. Populating a database efficiently

6. After install ADT0.9,failed to launch APP as no VM compatible with android 1.5

7. *** Why 1 G1 can see Paid Apps in the Android Market and Another Not? ***