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. kemampuan data dan voice bersamaan di HTC Incredible

Hi, numpang tanya ya

htc incredible itu sebenernya CDMA apa GSM sih ya?
kalo saya liat di gsmarena.com koq cdma yah?

nah, kalau misalnya bener CDMA, berarti kan gak bisa dalam waktu
bersamaan data dan voice jalan yah?

berarti kalau pake ni hp... misalnya lagi YM an.. apa lagi download
file ato youtube gitu... trus saya terima telfon... semuanya jadi
keputus yah? bener ga?

mohon infonya yah.. soalnya ane lg kepengen nitip temen beli nih dr
luar....

trims ya :)

-- 
"Indonesian Android Community [id-android]" 

2. Merubah Market Supaya Terlihat Semua ( Menjadi T-Mobile)

Yth
Para suhu semua
tanya sesuai subject untuk HTC Hero .... mohon maaf kalo tidak sesuai yang
dimaksud....

Thanks for u'r Attention....

IDCS

-- 
"Indonesian Android Community [id-android]" 

3. DB Cursor gets reset?

4. setting theme for an activity

5. (WTA) Root HTC desire without goldcard

6. EditTextPreference Properties

7. Surface flinger Postframe buffer control