All of lore.kernel.org
 help / color / mirror / Atom feed
From: john@jjdev.com (John de la Garza)
To: kernelnewbies@lists.kernelnewbies.org
Subject: serial console in early boot
Date: Sun, 24 Aug 2014 18:02:29 -0400	[thread overview]
Message-ID: <20140824220227.GA9505@vega.jjdev.com> (raw)

I'm using qemu like this:

qemu  -nographic -kernel /home/john/dev-linux/arch/x86/boot/bzImage \
-append "console=ttyS0"

I noticed that I can do a printk in arch/x86/kernel/head64.c right
after the call to clear_bss (line 162 in x86_64_start_kernel).

I see the output of the printk on the serial console.

This seems to be before any uart/console has been initialized.  I'm curious
how the printk can make it to the serial console.

Anyone know why printk is sending output to the serial console this
early in the boot process?

I would expect that the serial line wouldn't be ready and that qemu
would behave like actual hardware.

             reply	other threads:[~2014-08-24 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-24 22:02 John de la Garza [this message]
2014-08-25  1:38 ` serial console in early boot Valdis.Kletnieks at vt.edu

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=20140824220227.GA9505@vega.jjdev.com \
    --to=john@jjdev.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.