init debugging

347 views
Skip to first unread message

Mohan Parthasarathy

unread,
Dec 10, 2008, 5:32:42 PM12/10/08
to android...@googlegroups.com
Hello,

Is there any way to put some "echo" like statements in the init.rc file so that it is easy to see the progress of init ? From the keywords list, i could not see any.

thanks
mohan

Yang, Xiaopeng

unread,
Dec 10, 2008, 10:07:32 PM12/10/08
to android...@googlegroups.com
Maybe you can try:

write /dev/kmsg "bla bla ..."

Xiaopeng

Mohan Parthasarathy 写道:

Shamohu2008

unread,
Dec 11, 2008, 11:24:35 AM12/11/08
to android-porting
Hi,
I try with write /dev/kmsg. not working.
Then write /dev/__kmsg__, still NG
Then, directly add: error1, error2,... in the init.rc.
/init
There are some prompts: unknow keyword "error1", ...

After this, I check source code in system/core/init.c, and add some
trace using ERROR(__ARG__).
You can now see in the console the trace of init running.

On 12月11日, 上午11时07分, "Yang, Xiaopeng" <xiaopeng.y...@windriver.com>
wrote:
> > mohan- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Dima Zavin

unread,
Dec 12, 2008, 4:56:54 AM12/12/08
to android...@googlegroups.com
You can try changing LOG_DEFAULT_LEVEL to 6 @ init.h:36 and then rebuilding init.

--Dima
Reply all
Reply to author
Forward
0 new messages