Discussion:
Build error when adding ASHMEM support
Porting beginner
2008-10-11 01:56:16 UTC
Permalink
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=7c93d1ee2eba929ed9496d58e473265b470aca8eto
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 ?
Markus
2008-10-14 09:26:42 UTC
Permalink
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
Post by Porting beginner
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...
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
Porting beginner
2008-10-15 00:48:00 UTC
Permalink
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.
Post by Markus
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
Post by Porting beginner
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.
http://git.android.com/?p=kernel.git;a=commit;h=7c93d1ee2eba929ed9496...
Post by Porting beginner
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
Post by Porting beginner
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Android Internals" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to android-internals+***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---
Markus
2008-10-15 09:11:09 UTC
Permalink
Hi,

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

bye
Markus
Post by Porting beginner
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.
Post by Markus
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
Post by Porting beginner
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.
http://git.android.com/?p=kernel.git;a=commit;h=7c93d1ee2eba929ed9496...
Post by Porting beginner
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
Post by Porting beginner
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
Loading...