Porting Android to older kernel version?

12 views
Skip to first unread message

Alvin Cao

unread,
Mar 16, 2008, 11:23:26 PM3/16/08
to Android Internals
Hi folks,

Some Android specific modules(located in drivers/android) seem to
depend on kernel 2.6.23 API's and structs. They won't compile on older
kernels. But we have problems running 2.6.23 so I'm trying to port
Android to 2.6.21, with which we have no problem. I've heard about a
successful bootup of Android on 2.6.14 and 2.6.21. Is there any
feasible way to figure out what should be patched to make Android
modules compile and function correctly on older kernel? If you are
making effort to do the same thing, would you please share your
experience? Thank you in advance.

Best Regards,
Alvin Cao

kojiran

unread,
Mar 17, 2008, 3:29:14 AM3/17/08
to Android Internals
Hi.

You should port low memory killer and Open Binder.

Please refer to the following links.
http://d.hatena.ne.jp/bs-android/20080310
This blog shows porting Android to 2.6.18 on Armadillo-500.
Patch file is http://brilliant.android.googlepages.com/android4-linux-2.6.18at3.tar.bz2
I think that the source of
drivers/binder/binder.c
drivers/misc/lowmemorykiller/lowmemorykiller.c
in this patch serves as a reference.

Best Regards.

Anil Sasidharan

unread,
Mar 17, 2008, 4:18:15 AM3/17/08
to android-...@googlegroups.com
Hi,

If your trying to port the latest SDK m5-rc14, then
drivers/binder is obsolete, the binder module has been moved to
drivers/android/binder.c. Also the low-memory-killer is optional.

Essentially you need to port the following modules.

1. Power
2. Alarm
3. Binder
4. Log

Also there are couple of kernel files modified to support Android
(like futex.c, process.c, fork.c etc)

Warm Regards,
Anil


2008/3/17 kojiran <koj...@gmail.com>:

Alvin Cao

unread,
Mar 17, 2008, 11:11:15 PM3/17/08
to Android Internals
Thank you, Anil.

Yes, my SDK is m5-rc14. I'm reviewing relevant files(futex.c,
process.c, fork.c etc). But I can't guarantee I understand all of
them. Is there a working patch against older kernels available? At
least it can be used as a reference.

Best Regards,
Alvin Cao

On Mar 17, 4:18 pm, "Anil Sasidharan" <anil...@gmail.com> wrote:
> Hi,
>
> If your trying to port the latest SDK m5-rc14, then
> drivers/binder is obsolete, the binder module has been moved to
> drivers/android/binder.c. Also the low-memory-killer is optional.
>
> Essentially you need to port the following modules.
>
> 1. Power
> 2. Alarm
> 3. Binder
> 4. Log
>
> Also there are couple of kernel files modified to support Android
> (like futex.c, process.c, fork.c etc)
>
> Warm Regards,
> Anil
>
> 2008/3/17 kojiran <koji...@gmail.com>:
>
>
>
> > Hi.
>
> > You should port low memory killer and Open Binder.
>
> > Please refer to the following links.
> > http://d.hatena.ne.jp/bs-android/20080310
> > This blog shows porting Android to 2.6.18 on Armadillo-500.
> > Patch file ishttp://brilliant.android.googlepages.com/android4-linux-2.6.18at3.tar...

ruckuus

unread,
Mar 18, 2008, 10:53:09 PM3/18/08
to Android Internals
Hi,
i have the same problem. i am using 2.6.19.2 kernel version.
i have been doing some patches to upgrade its version then
i plan to patch it against android.diff As there are much board
related
problems to do upgrades, there will take long times to finish it.
thank you for inspiring.
-ruckuus-
Reply all
Reply to author
Forward
0 new messages