Hi.

> binder/* files which I'm not able to solve correctly:

-       transaction_cache = kmem_cache_create("binder_transaction_t",
sizeof(binder_transaction_t)+pad, 0, cache_flags,
transaction_slab_xtor);
-       if (!transaction_cache) return -ENOMEM;
-       thread_cache = kmem_cache_create("binder_thread_t",
sizeof(binder_thread_t)+pad, 0, cache_flags, thread_slab_xtor);
-       if (!thread_cache) return -ENOMEM;
-       node_cache = kmem_cache_create("binder_node_t", sizeof(binder_node_t)
+pad, 0, cache_flags, node_slab_xtor);
-       if (!node_cache) return -ENOMEM;
-       local_mapping_cache = kmem_cache_create("local_mapping_t",
sizeof(local_mapping_t)+pad, 0, cache_flags, local_mapping_slab_xtor);
-       if (!local_mapping_cache) return -ENOMEM;
-       reverse_mapping_cache = kmem_cache_create("reverse_mapping_t",
sizeof(reverse_mapping_t)+pad, 0, cache_flags,
reverse_mapping_slab_xtor);
-       if (!reverse_mapping_cache) return -ENOMEM;
-       range_map_cache = kmem_cache_create("range_map_t",
sizeof(range_map_t)+pad, 0, cache_flags, range_map_slab_xtor);
+       transaction_cache = kmem_cache_create("binder_transaction_t",
sizeof(binder_transaction_t)+pad, 0, cache_flags,
transaction_slab_xtor, transaction_slab_xtor);
+       if (!transaction_cache) return -ENOMEM;
+       thread_cache = kmem_cache_create("binder_thread_t",
sizeof(binder_thread_t)+pad, 0, cache_flags, thread_slab_xtor,
thread_slab_xtor);
+       if (!thread_cache) return -ENOMEM;
+       node_cache = kmem_cache_create("binder_node_t", sizeof(binder_node_t)
+pad, 0, cache_flags, node_slab_xtor, node_slab_xtor);
+       if (!node_cache) return -ENOMEM;
+       local_mapping_cache = kmem_cache_create("local_mapping_t",
sizeof(local_mapping_t)+pad, 0, cache_flags, local_mapping_slab_xtor,
local_mapping_slab_xtor);
+       if (!local_mapping_cache) return -ENOMEM;
+       reverse_mapping_cache = kmem_cache_create("reverse_mapping_t",
sizeof(reverse_mapping_t)+pad, 0, cache_flags,
reverse_mapping_slab_xtor, reverse_mapping_slab_xtor);
+       if (!reverse_mapping_cache) return -ENOMEM;
+       range_map_cache = kmem_cache_create("range_map_t",
sizeof(range_map_t)+pad, 0, cache_flags, range_map_slab_xtor,
range_map_slab_xtor);

You may fix compilation errors with this patch.
In the case of me, I applied this patch and Android worked in 2.6.18
kernels.

On 4月3日, 午前9:04, sim0nx <[EMAIL PROTECTED]> wrote:
> > Yes I'm working with m3 ramdisk and data and system images (manually
> > extracted from emulator).
> > I have as well the m5 environment ready for testing, but have worked
> > on m3 the last days because of the fb problems.
> > Anyway I got the same bus error problem on m5.
>
> I've applied your patch (from the second mail) and booted with the new
> kernel, using a m5 environment (don't have the m3 one at hand).
> Android starts exactly the same as before and freezes at the same
> place, the display stays blank.
> I'm wondering if that could be because of me using the m5 env. ?
>
> Also I'm using the m5 binder.c file as there are some errors with the
> binder/* files which I'm not able to solve correctly:
> drivers/binder/binder.c: In function 'create_pools':
> drivers/binder/binder.c:346: error: too few arguments to function
> 'kmem_cache_create'
> drivers/binder/binder.c:348: error: too few arguments to function
> 'kmem_cache_create'
> drivers/binder/binder.c:350: error: too few arguments to function
> 'kmem_cache_create'
> drivers/binder/binder.c:352: error: too few arguments to function
> 'kmem_cache_create'
> drivers/binder/binder.c:354: error: too few arguments to function
> 'kmem_cache_create'
> drivers/binder/binder.c:356: error: too few arguments to function
> 'kmem_cache_create'
>
> I don't think that is a problem as android reports having successfully
> opened binder.
>
> > BTW I'm working with a multi boot manager and boot Maemo from MMC,
> > then I open a ssh session to get a terminal even when UI on target is
> > gone, then I stop Maemo's UI (hildon, x-server, etc) and start android
> > (which resides on the same mmc).
>
> I boot the maemo using the flasher.
> I've disabled certain programs so only Xomap and the applet-bar
> starts.
> Once the wireless connection is up, I ssh into the maemo and kill the
> rest (dbus, hald, Xomap,...).
> Android is on a ext2 formatted miniSD card.
> So I just mount proc + sysfs, followed by chrooting + starting
> android.
>
> Should be pretty much the same as you do it :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Internals" group.
To post to this group, send email to [email protected]
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