Porting beginner
2008-10-11 01:56:16 UTC
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 ?
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 ?