Build error when adding ASHMEM support

20 views
Skip to first unread message

Porting beginner

unread,
Oct 10, 2008, 9:56:16 PM10/10/08
to android-...@googlegroups.com
Hi,

I have linux 2.6.23 and used linux-2.6.26-android-m5rc14 as reference to port
android changes.

I am able to port all code, BINDER, LOGGER, LOW_MEMORY_KILL successfully.
Power and ASHMEM related code is not there with 2.6.23.

When I am starting init , I am getting segmentation fault.

When I debug using strace, found that it may ASHMEM support from kernel.
So I tried to port ashmem code: http://git.android.com/?p=kernel.git;a=commit;h=7c93d1ee2eba929ed9496d58e473265b470aca8e to my kernel (2.6.23).

When I am trying to compile my 2.6.23 with these changes its failing with error related to shmem_zero_setup functions declaration.

I am see the new code added from 2.6.25 ( to my 2.6.23 ), there is extern of shmem_zero_setup function, old function had only one arg where
other new one has two args so old code from ( mm/mmap) still using this function with one arg and new ( in mm/tinyshmem.c) using
with two args.

Whats should I do to overcome this problem ?

Thanks

Markus

unread,
Oct 14, 2008, 5:26:42 AM10/14/08
to Android Internals
Hi,

are you using m5 kernel with Android 0.9 or 1.0? They are not
compatible, you should use kernel 0.9 or 1.0 (which are equal).

bye
Markus

On 11 Okt., 03:56, "Porting beginner" <porting.begin...@gmail.com>
wrote:
> Hi,
>
> I have linux 2.6.23 and used linux-2.6.26-android-m5rc14 as reference to
> port
> android changes.
>
> I am able to port all code, BINDER, LOGGER, LOW_MEMORY_KILL successfully.
> Power and ASHMEM related code is not there with 2.6.23.
>
> When I am starting init , I am getting segmentation fault.
>
> When I debug using strace, found that it may ASHMEM support from kernel.
> So I tried to port ashmem code:http://git.android.com/?p=kernel.git;a=commit;h=7c93d1ee2eba929ed9496...

Porting beginner

unread,
Oct 14, 2008, 8:48:00 PM10/14/08
to android-...@googlegroups.com

I am using m5-rc14 kernel, which Android I should use to over come this problem ?
My SoC kernel is based on 2.6.23 so right now I want to use m5-rc14 ( linux 2.6.23 based android ) only.

Thanks again.

Markus

unread,
Oct 15, 2008, 5:11:09 AM10/15/08
to Android Internals
Hi,

you should use Android m5-rc14, newer versions will not work without
updating the kernel to a new release.

bye
Markus

On 15 Okt., 02:48, "Porting beginner" <porting.begin...@gmail.com>
wrote:
> I am using m5-rc14 kernel, which Android I should use to over come this
> problem ?
> My SoC kernel is based on 2.6.23 so right now I want to use m5-rc14 ( linux
> 2.6.23 based android ) only.
>
> Thanks again.
>
Reply all
Reply to author
Forward
0 new messages