* What is a console? and Why it is always associated with UART?
@ 2012-01-10 6:37 sandeep kumar
2012-01-10 6:59 ` Dave Hylands
0 siblings, 1 reply; 3+ messages in thread
From: sandeep kumar @ 2012-01-10 6:37 UTC (permalink / raw)
To: kernelnewbies
Hi All,
I want to know "What is a console? and Why it is always associated with
UART?"
What is a serial console??
Can there be a USB console??
I am getting to read these words associatedly..
Please help me understand them individually...
--
With regards,
Sandeep Kumar Anantapalli,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120110/9d4c9925/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* What is a console? and Why it is always associated with UART?
2012-01-10 6:37 What is a console? and Why it is always associated with UART? sandeep kumar
@ 2012-01-10 6:59 ` Dave Hylands
2012-01-25 5:31 ` Peter Teoh
0 siblings, 1 reply; 3+ messages in thread
From: Dave Hylands @ 2012-01-10 6:59 UTC (permalink / raw)
To: kernelnewbies
Hi sandeep,
On Mon, Jan 9, 2012 at 10:37 PM, sandeep kumar
<coolsandyforyou@gmail.com> wrote:
> Hi All,
>
> I want to know "What is a console?
A console is where the output from printk goes.
> and Why it is always associated with
> UART?"
While console's may often be associated with a UART (typical for
embedded systems) there is no need or requirement for them to be
associated with a console. You can regitser a console to send the
output wherever you like.
> What is a serial console??
A serial console is a console driver (registered via register_console)
which sends the output to a serial port, typically also allowing the
serial port to be used as a tty interface.
> Can there be a USB console??
Sure. I don't know if a driver for this exists yet, but if it doesn't
you can always write one.
There is already something called a netconsole (see
Documentation/networking/netconsole.txt). This is an example of a
console which isn't associated with a serial port.
There is also a framebuffer console (See Documentation/fb/fbcon.txt)
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* What is a console? and Why it is always associated with UART?
2012-01-10 6:59 ` Dave Hylands
@ 2012-01-25 5:31 ` Peter Teoh
0 siblings, 0 replies; 3+ messages in thread
From: Peter Teoh @ 2012-01-25 5:31 UTC (permalink / raw)
To: kernelnewbies
Hi Dave And Sandeep,
Hope I can contribute and sorry for the interruption of conversation :-(.
On Tue, Jan 10, 2012 at 2:59 PM, Dave Hylands <dhylands@gmail.com> wrote:
> Hi sandeep,
>
> On Mon, Jan 9, 2012 at 10:37 PM, sandeep kumar
> <coolsandyforyou@gmail.com> wrote:
> > Hi All,
> >
> > I want to know "What is a console?
>
> A console is where the output from printk goes.
>
> > and Why it is always associated with
> > UART?"
>
Yes, console is output and UART is the hardware device input port.....it
can be implemented hardware wise by many different devices, but all of them
will speak the UART protocol:
http://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter
and the hardware devices' source codes are in
drivers/tty/serial/8250_xxxxx.c for examples (xxxx for different devices).
>
> While console's may often be associated with a UART (typical for
> embedded systems) there is no need or requirement for them to be
> associated with a console. You can regitser a console to send the
> output wherever you like.
>
> > What is a serial console??
>
> A serial console is a console driver (registered via register_console)
> which sends the output to a serial port, typically also allowing the
> serial port to be used as a tty interface.
>
> > Can there be a USB console??
>
> Sure. I don't know if a driver for this exists yet, but if it doesn't
> you can always write one.
>
>
According to the diagram of the book "Essential Linux Device Drivers" page
175, both the output of serial_core.c and usb-serial.c (which implements
the serial signals coming in from the USB interface) are directed to
n_tty.c (which essentially goes to the serial console output). So answer
is NO, current architecture has the tty console linked to both UART and
USB-Serial interface. (a FTDI software driver
drivers/usb/serial/ftdi_sio.c is needed to convert the USB signal back to
the serial packets structure).
> There is already something called a netconsole (see
> Documentation/networking/netconsole.txt). This is an example of a
> console which isn't associated with a serial port.
>
> There is also a framebuffer console (See Documentation/fb/fbcon.txt)
>
> --
> Dave Hylands
> Shuswap, BC, Canada
> http://www.davehylands.com
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
Happy Hacking.....
--
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120125/0384882e/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-25 5:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 6:37 What is a console? and Why it is always associated with UART? sandeep kumar
2012-01-10 6:59 ` Dave Hylands
2012-01-25 5:31 ` Peter Teoh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).