HI,

the key is to use the tool diff to create a patch from a clean kernel
and the Android kernel (same kernel versions!), remove all stuff from
the patch file that you will not need (qemu and goldfish related
things, yaffs2 things only if your freescale kernel provides already
yaffs2 - and you need this only, if you want to use it).
Then apply your patch with the tool patch. You will get a report,
which things were applied by the automated mechanism, and which things
went wrong. Those which went wrong are left for manual patching: Jump
to that point in your patch and try to apply it to the kernel source.
If files are missing, you can try to skip them, but sometimes this
code is left in other files. Sometimes you have to guess, how to
adjust the Android code to your kernel.
I managed to use a kernel without the fair scheduler, so you can skip
it.

Most stuff is portable, I used for a long while kernel 2.6.19.2 as
base. Just use diff and patch as base of your work, a kernel is too
big for manual patching. You could also get the kernel 2.6.24 on the
freescale homepage, makes things easier.

Please check the internet for the usage of patch and diff, you will
find plenty of tutorials.

bye
Markus

On 9 Sep., 10:11, deepak singal <[EMAIL PROTECTED]> wrote:
> sorry for last incomplete post
>
> Hi Markus,
>
> Thanks for reply
> We are trying to port Android on ARM11(imx31) using following think:
>
> --->android-sdk-linux_x86-0.9_beta root file system
> --->linux-2.6.25-android-0.9_r1.tar.gz android kernel patch
> --->linux-2.6.22.6 kernel (Get the Linux Source from freescale LTIB)
> ----> android file system in SD-card (ext2 file system)
>
> i would like to know how can change the below files or driver for
> android:
>
> kernel/power/process.c
> kernel/printk.c
> drivers/input/evdev.c
> fs/proc/proc_misc.c
> fs/proc/task_mmu.c
> include/net/tcp.h
> kernel/sched_fair.c     (not present in linux-2.6.22.6)
> mm/filemap.c
>
> Lots of difference between 2.6.22 and 2.6.25 kernel(means not possible
> to apply manually all the android changes into linux-2.6.22 kernel)
>
> Any help will be highly appreciated. Thanks in Advance.
>
> Thanks & Regards,
> Deepak Singal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Internals" group.
To post to this group, send email to android-internals@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to