Hi,
Now I have got the console prompt in my development board. During
Android init flow, console dev file(/dev/ttyS2) is opened and closed before
"on init" trigger happened. While running "console" service the same console
is again opened and "/system/bin/sh" is running on this console.
But in my development board nothing is printed after console dev
file(/dev/ttyS2) has been closed. So I have commented closing console
dev file steps in code(system/core/init/init.c). Now I am getting console
prompt in /dev/ttyS2. *But Clear reason don't know*.
Anybody faced above issue?
modified code snippet (system/core/init/init.c)
=====================================
if (console[0]) {
snprintf(tmp, sizeof(tmp), "/dev/%s", console);
console_name = strdup(tmp);
}
fd = open(console_name, O_RDWR);
if (fd >= 0)
have_console = 1;
* //close(fd);*
With Regards
J.Balakrishnan
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting