To Jie,
You are right that when Android boots up, you will see the logo
screen, instead of the Linux console output. I guess this is what you
mean by the "tty". What Vishnu said is you won't get the kernel
messages on the LCD, but you can get it from a host PC to which you
have connected the Android device.
When you specify the "console=<serial tty device>" in the kernel
command line (BoardConfig.mk), printk will send kernel messages to the
tty device -- if it supports the "console" functionality (not all tty
devices do; they have to call "register_console" in the driver).
By default, just by setting console=<serial tty device> won't directly
display the kernel messages, you will need to connect the device to
the host PC (depends on the serial device, it could be a serial cable,
or USB cable), and then find the serial device on the host PC (e.g.,
ttyS0 or ttyUSB1), then you can use "cat" to get the messages.
For a quick start, I would suggest that you try "console=tty0", and
the kernel messages will be dumped to the screen, and of course, if
you only need the kernel, but not the framework for debugging, you can
comment out "service zygote" in system/core/rootdir/init.rc to prevent
the whole system from booting up. Good luck.
Thanks,
Danke
On Jul 14, 2:21 am, Vishnu Pratap Singh <
vishu13...@gmail.com> wrote:
> set BOARD_KERNEL_CMDLINE to no_console_suspend=1 console=<Serial TTY device>
> <Baud rate of serial port> <loglevel=8>
>
> Regards
>
> On Wed, Jul 14, 2010 at 2:38 PM, Vishnu Pratap Singh
> <
vishu13...@gmail.com>wrote:
>
>
>
>
>
> > Dear Jie,
>
> > Can you make clear, how you are going to boot prompt, are you using jig box
> > for getting boot prompt or serial logs ?
>
> >> > >> > > unsubscribe:
android-kerne...@googlegroups.com<android-kernel%2Bunsubscribe@go
oglegroups.com>
> >> <
android-kernel%2Bunsu...@googlegroups.com<android-kernel%252Bunsubscri
b...@googlegroups.com>
>
> >> > >> <
android-kernel%2Bunsu...@googlegroups.com<android-kernel%252Bunsubscri
b...@googlegroups.com>
> >> <
android-kernel%252Buns...@googlegroups.com<android-kernel%25252Bunsub
scr...@googlegroups.com>
>
> >> > >> > > website:
http://groups.google.com/group/android-kernel
>
> >> > >> --
> >> > >> unsubscribe:
android-kerne...@googlegroups.com<android-kernel%2Bunsubscribe@go
oglegroups.com>
> >> <
android-kernel%2Bunsu...@googlegroups.com<android-kernel%252Bunsubscri
b...@googlegroups.com>
> >> unsubscribe:
android-kerne...@googlegroups.com<android-kernel%2Bunsubscribe@go
oglegroups.com>