[android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread Steve Jones
Hi there, If you want your service to boot first then as already mentioned you put it before ueventd in the on early-init section, although that probably not a good idea if you service relies on anything in /dev . you would also need to build a statically linked version and include it in your b

Re: [android-kernel] Re: Kernel Not Booting

2013-06-13 Thread Emeric VIGIER
Try to activate "early printks" in linux kernel (menu)config. Here is how . Emeric On Wed, Jun 5, 2013 at 11:32 PM, Anirudh Gargi wrote: > Hi > > It looks with the bootloader param's passed to Kernel in the "A

Re: [android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread 董钰
Thanks everybody, What I did just now is adding a new "on" section like this: on myservice class_start myservice service myservice /system/bin/myservice class myservice user root group root oneshot and adding a line in init.c like: action_for_each_trigger("myservice", a

Re: [android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread Pratik Prajapati
You might need to start your service "on boot" -- Regards, Pratik On Wed, Jun 12, 2013 at 11:34 PM, 董钰 wrote: > Thank you for reply. My service is written in native c ,and I've already > can boot my service through adding code in init.rc. But I can't make it the > first service to boot. > > > 2

Re: [android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread Durgadoss Ramanathan
You can try adding your service in init.rc inside system/core/rootdir/ in the early-init section. May be you can try adding it before 'start ueventd'. On Thu, Jun 13, 2013 at 7:33 PM, biAji wrote: > maybe modify init.c and add your service in front of all others > > > On Thu, Jun 13, 2013 at 2

Re: [android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread biAji
maybe modify init.c and add your service in front of all others On Thu, Jun 13, 2013 at 2:34 PM, 董钰 wrote: > Thank you for reply. My service is written in native c ,and I've already > can boot my service through adding code in init.rc. But I can't make it the > first service to boot. > > > 2013