kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: haojian.zhuang@gmail.com (Haojian Zhuang)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How logs will come to UART serial console?
Date: Tue, 17 May 2011 23:09:19 +0800	[thread overview]
Message-ID: <BANLkTimGFu_MJRZog7vNbOPefMrVt+r4Mg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinW5TEsr03Y1Dmw-mXnxP6ji3zmSg@mail.gmail.com>

On Tue, May 17, 2011 at 3:52 PM, sandeep kumar
<coolsandyforyou@gmail.com> wrote:
> Hi ,
> Here is my question.
> when we put 'printk's in kernel code the logs will go to the log_buffer.(i
> observed that from implementation)
> But when UART is enabled(in the bootloader), the same printk logs?are going
> to the serial console.
> As per my study printk doesnot implementing anything that writes to the UART
> console.
>
> Now here are?my questions,
> how this is being achieved??Where this is implemented?(which file)
>
console_unlock() in kernel/printk.c

> Where wil be the parsing of the cmdline string sent from the bootloader is
> done?
>
>
> Thanking you,
> sandeep kumar.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>

  reply	other threads:[~2011-05-17 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17  7:52 How logs will come to UART serial console? sandeep kumar
2011-05-17 15:09 ` Haojian Zhuang [this message]
2011-05-17 16:09 ` Dave Hylands
  -- strict thread matches above, loose matches on Subject: below --
2011-05-18 18:49 Haphazard H

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTimGFu_MJRZog7vNbOPefMrVt+r4Mg@mail.gmail.com \
    --to=haojian.zhuang@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).