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. MyLocationOverlay monopolizing location updates?

Can anyone confirm the following observation:
An enabled MyLocationOverlay seems to monopolize location updates (on
the device (G1), emulator seems not affected). This means that
location listeners registered with the location manager do not fire
any longer as soon as a MyLocationOverlay is enabled?
Or am I doing something wrong?
JP

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

2. Regarding video file playback in android emulator

Dear all,

I am new to android, I downloaded android source code from the
http://source.android.com/  built it. I also downloaded the android SDK for
my development platform (I am using Ubuntu).

I made the development environment up . I can playback some audio files in
the music player. But i am wondering how to play back the video files.
because i cant see any media player in the android emulator to playback mp4
or 3gp files.

Is there anyway to check the out put logs of the of the media player
(Application and middleware) ? any setting needs to be done ? Please
clarify.

Regards
Girish

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

3. how to write a file on SD card in android?

4. Reuse of AndroidManifest.xml

5. any payment API for Android?

6. Where can I buy unlocked G1 in US?

7. Announce: Klocwork Source Code Analysis Solution for Android Application Developers