Hi Wing,
"binder" is a linux miscellaneous module / driver, so the kernel will create
a virtual "file" entry for the device. The applications that need to use the
Binder IPC service then call open("/dev/binder", ...) to get a handle to the
binder service, and then issue ioctl(...) calls to pass data to and from the
Binder service.
If you Linux kernel does not have the binder driver, then the call to
open("/dev/binder",...) will fail and return an error. At this point,
anything that relies on the Binder IPC mechanism will fail and likely exit.
Service Manager is 100% dependent on Binder, so it doesn't surprise me that
it would fail 4 times in a row if the Binder driver were not available.
You shouldn't see any files in the /dev directory at the point of building
Android because this is where the files that represent the "devices" will be
created by the linux kernel once the system is up and running.
Cheers,
Nigel
On Fri, Sep 16, 2011 at 8:07 PM, 麥wing <[email protected]> wrote:
> Hi, Niguel
>
> Thanks for your reply.
>
> You give me some ideas about the flow of running.
> After I 'make' the OS(Gingerbread), the 'out/target/product/devkit8000/
> android_rootfs/dev' folder is empty. Do you think that it is normal?
>
> If it is normal, "/dev/binder' is generated after Plugging uImage &
> ubifs.img into devkit8000,it means that the '/dev/binder' can not be
> generated?
>
> Regards,
>
> Wing
>
> On Sep 16, 4:51 am, Nigel Sheridan-Smith <[email protected]> wrote:
> > Hi Wing,
> >
> > That definitely sounds like your problem - Service Manager will not start
> > without the Binder linux driver, since it relies on Binder IPC. It is the
> > "naming service" that maps names to binder interfaces / pointers. Hence,
> it
> > would fail to start 4 times in a row, since the call to
> open("/dev/binder",
> > ...) would fail.
> >
> > Cheers,
> >
> > Nigel
> >
> > On Thu, Sep 15, 2011 at 6:28 PM, 麥wing <[email protected]> wrote:
> > > Hi,all
> >
> > > I found one website talking about these problems
> > >http://www.eoeandroid.com/thread-31215-1-1.html(chinese webpage)
> >
> > > The author said that enable the setting of kernel(using 'make
> > > menuconfig')
> > > ->device driver
> > > ->staging drivers
> > > ->android
> > > ->android binder ipc driver
> >
> > > Do you have any comments?
> >
> > > Regards,
> >
> > > On Sep 14, 12:11 pm, 麥wing <[email protected]> wrote:
> > > > hi,lakehousetech
> >
> > > > Thank you for your reply.
> > > > I use ./adb devices, it cannot find devkit8000 devices.
> > > > And I do not know how to use last_lmsg, I only set loglevel 8 in
> > > > init.rc for seeing more information.
> >
> > > > On Sep 12, 11:07 am, lakehousetech <[email protected]> wrote:
> >
> > > > > What logs other than last_kmsg can be checked since adb hasn't
> started?
> >
> > > > > Chris
> >
> > > --
> > > unsubscribe: [email protected]
> > > website:http://groups.google.com/group/android-porting
> >
> >
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting